IncludeTradeHistoryInBacktest
Definition
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.
-
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.
Property Value
This property returns true if the strategy will include trade history; otherwise, false. Default is set to true.
This property should ONLY be set from the OnStateChange() method during State.Configure (or State.SetDefaults when adding the script from the strategy tab).
Syntax
IncludeTradeHistoryInBacktest

