Someone probably has the answer to this one already:
I have a strategy that calculates on bar close, and is supposed to do something at the close of each daily bar (move a buy stop level to today's close + some number so that it might trigger in a future market session)
I load up the chart at 7pm and I would think that today, Sep 14th's bar would be considered closed, but the level I'm looking at is still configured based on the day before's close instead of today's.
However, if I turn calculateonbarclose=false off, the level is correctly set to today's close / or last traded price.
This is on an equity chart where session manager has set the session to 9:30am-4pm hours.
This is making me wonder if the bar isn't actually considered closed until the next one has started printing or something - can anyone please verify when the bar is called closed?
Thanks!
Comment