At the programming level it seems quite clear (CalculateOnBarClose=true!). I'm aware that it's impossible to define precisely the bar close - it has to be a point in real time but that's why I'm asking this here.
I also noticed via the backtest results that the CalculateOnBarClose event does not seem to trigger before the bar close event and the trade is registered as belonging to the next bar.
The area of concern for me is around the market close not so much the bar close. Will it be down to my chosen broker whether to accept the order command if the automated trading script triggers after the bar, and the market, is closed?
Thanks!

Comment