Profile Picture

How to get the default bar frequency of the running system?

Posted By felixtjung 6 Years Ago

How to get the default bar frequency of the running system?

Message
Posted Thursday March 24 2011
This might be a basic question, but I have searched everywhere with no luck. Sad

I just want to know how to get the bar frequency of the running trading system at the moment.

Could someone post the example on how to do it?

Thanks,
Felix
Posted Friday March 25 2011
Use the SystemData.BarFrequency property. To figure out the length, cast it to a TimeFrequency and look at its BarLength property.

Thanks,
Daniel
Posted Sunday March 27 2011
Thanks a heap. That works like charm. Just curious why SystemData.BarFrequency doesn't return TimeFrequency at the first place? Just curious.


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems