Profile Picture

Know when the last bas is reached

Posted By remi 6 Years Ago
Posted Wednesday April 18 2012

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.


Similar Topics

Reading This Topic

2005-2018 © RightEdge Systems