I am backtesting a system that will open a position by the end of the day if to go long before the close of market. Therefor, I want to enter the position on a price that will be equal to the Close of the current bar. When I EnterLong the position is being opened only on the next bar (tomorrow). IsFirstTickOfBar does not work as well, as the historic data is day.
Any idea how to enter the position on current bar close?
Thanks
Comment