Profile Picture

Know when the last bas is reached

Posted By remi 5 Years Ago
Message
Posted Wednesday April 18 2012
Hello,

I am building a TimeSeries based on an existing one with different values.

To accomplish that, I build on the go a List of BarData in the NewBar() method.

I would like to be able to know when I have reached the last Bar to execute a process.

How can I have this information please?

Posted Thursday April 19 2012
There isn't a way to know if the current bar is the last bar. However, you can override the Shutdown method of the MySystem class. In a simulation, it will be called after all bars have been processed, and you can use it to calculate and save any final information.

Thanks,
Daniel


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems