I set BarsRequiredToPlot to smaller values for the strategy and the indicators, but it doesn't change anything.
Is this a hard limit?
Try this, for example.
Modify the built-in SMA by adding the following code in the Configure state.
BarsRequiredToPlot = Period;
However, now add the built-in SampleMACrossOver strategy to a chart. The SMAs that are added via AddChartIndicator in that strategy do not chart below the 20th bar.
I've tried setting BarsRequiredToPlot in code to a lesser value for the strategy, but this doesn't make any difference either.
Thanks,
Comment