Sorry to bother you with additional requests/complaints.
Now broker value is calculated as cash + open position and gives bursts of values when leverage isused. With this bursts all the drawdown calcs, sharpe (I think all the stats calculated based on equity) are incorrect. Usually the broker value in case of leverage is cash(=0) + open position - loan. In this case only gains/losses are added to broker value for open positions, not the full cost of position.
is there any way to fulfill such approach (apply loan on the broker value for open positions) in the bt in the baseline code?
Here is the link to picture https://yadi.sk/i/oLQA7-P235ZyDh
It is not shown in the post.