To have my indicator data series have valid values at the start of a simulation, I have been using:
CODE:
Please log in to see this code.
and then Synchronize() on all data series.
How I am using multiple intraday time scales, via SetScaleCompressed() and RestoreScale(). It appears that these only work with Bars, and not with "allData" as described above. Is there a way to do both a) multiple time scales and b) have my data start at the start of the simulation?
If that is not possible, how can I determine the first valid/existing bar of a data series? If I can do that that then I can suppress my trading rules until all of my data series have valid bars.
Thanks,
Ron