For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

Why does switching commission scheme margin=False to True, impacts PositionsValue analyzer



  • Switching margin to True in commission scheme switch positionsvalue analyzer, the values are not calculated as price * position, but directly as position.



  • Actually, it seems PositionsValue is reporting the position of each asset in size rather than in value (size * price). Any idea why is that?



  • PositionsValue is an indicator that returns the market value at each bar for each datas line, as well as cash.

    Can you please provide the code you are using and your unexpected output so we can analyze why you are getting the results you are? Thanks.


Log in to reply
 

});