I tried searching for this but couldn't find anything. Within an efs, how do I get the opening and closing times from the time template?
If that's not possible, and I need at least one complete bar for some initialization calculations, I'm assuming that I can use:
if (getFirstBarIndexOfDay() = (-1)) ...
to check when the first bar is completed. This will allow me to be sure that I am able to calculate what I need with one complete bar -- regardless of the time template (assuming intraday only and ignorning tick charts). I check for -1 in the above statement because I'm also using setComputeOnClose().
I tried isInSession() but it always returns true.
Thanks for any help.
If that's not possible, and I need at least one complete bar for some initialization calculations, I'm assuming that I can use:
if (getFirstBarIndexOfDay() = (-1)) ...
to check when the first bar is completed. This will allow me to be sure that I am able to calculate what I need with one complete bar -- regardless of the time template (assuming intraday only and ignorning tick charts). I check for -1 in the above statement because I'm also using setComputeOnClose().
I tried isInSession() but it always returns true.
Thanks for any help.