One more question about MarginVal. According to the manual, during backtest MarginVal remains constant until the trade closes. In live trading situation could be different because brokers adapt MarginVal based on the asset price (i.e. IB). So, margin call conditions change as well. I assume I need to calculate manually MarginVal or MarginTotal during backtest to simulate broker's margin call conditions.
Could you please advise what variable to calculate and how? Thanks



Last edited by kujo; 12/19/17 16:33.