I am using the AddOn Framework sample code as basis for my add on.
I am using the DoGetBars function to fetch a dozen of bars of historical data (daily bars). I then use GetDayBar on the bars object to access the data.
However, the documentation says GetDayBar should only be used for getting historical bars and not the current bar.
Is there another method I can use in an addon to get reliable OHL information of the current bar, similar e.g. to what CurrentDayOHL() does in the Indicator realm?
Any help or information would be much appreciated; Also, if possible, it would be useful to understand why the use of GetDayBar() works for historical but not current bars.
Many thanks,
Libor
Comment