Backtrader Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. argparse
    3. Posts
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
    • Profile
    • Following 1
    • Followers 0
    • Topics 0
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by argparse

    • RE: Incorrect values in quickstart sample: shows original purchase value instead of sales value

      @alpha
      I also wonder about the discrepancy. The closing price is 26.27. The sell creation order is 26.27. But then price and cost of that order is 27.25. There could be something like slippage, but in the tutorial no slippage is being set. The value 27.25 is not in the CSV either so it's generated somehow.

      2000-01-13, Close, 26.27
      2000-01-13, SELL CREATE, 26.27
      2000-01-14, SELL EXECUTED, Price: 27.25, Cost: 27.25, Comm 0.03  ## Note the change in Cost here!
      
      posted in General Code/Help
      argparse
      argparse
    • 1 / 1