I'm a little confused as to where the orders are placed after a trade. If using CalculateonBarClose=true, the orders SHOULD be placed at the open price of the next bar since the close price has passed when the bar is evaulated. Is there a difference between backtesting and intra-day charting. I just want to make sure of the following example.
For example:
When backtesting a strategy, does the EnterLong() function print the trade price at the Open of the next bar and draw the arrow on the next bar or the Current bar?
Then, when running that same strategy on real-time data intraday, will the order be drawn/printed at the same Open price on the next bar after receiving the signal?
I have noticed an instance where my backtest chart and real-time chart print different trade prices for the same bar, same signal, same strategy.
I can clarify if needed, but thanks in advance for your help!
Rick
Comment