IncludeTradeHistoryInBacktest
<< Click to Display Table of Contents >> IncludeTradeHistoryInBacktest |
Determines if the strategy will save orders, trades, and execution history. When this property is set to false you will see significant memory savings at the expense of having access to the detailed trading information.
Notes: •Since trade information is not stored you will only see entry/exit executions plotted on the chart with no connecting PnL trade lines. •This property is always defaulted to true, except when the strategy is running on the strategy tab. |
This property returns true if the strategy will include trade history; otherwise, false. Default is set to true.
Warning: This property should ONLY bet set from the OnStateChange() method during State.Configure (or State.SetDefaults when adding the script from the strategy tab) |
IncludeTradeHistoryInBacktest
protected override void OnStateChange() |