I use a 233T interval quite often in advanced charts and am trying to develop an efs study that will show a countdown of how many ticks are left in the current bar.
What I do is set a global variable to 233 when the current bar state is BARSTATE_NEWBAR and then decrement it each time the main() is called until a new bar. This seems to work ok, but the first bar is inaccurate because I could not find a function that returns the number of ticks in the current bar.
Does anyone know a solution or do I have to just wait for the first bar to finish?
Thanks,
Dana
What I do is set a global variable to 233 when the current bar state is BARSTATE_NEWBAR and then decrement it each time the main() is called until a new bar. This seems to work ok, but the first bar is inaccurate because I could not find a function that returns the number of ticks in the current bar.
Does anyone know a solution or do I have to just wait for the first bar to finish?
Thanks,
Dana
Comment