The strategy seems to be working okay when trading tick data in MarketReplay and is opening the trades in and around the open price when a new bar is formed. Problem is that the Trade markers are plotting on the wrong bar.
I have attached a screenshot to show you the problem. If a new trade is open at the open of the bar, should the blue sideways triangle and the up arrow not show up on the bar that the trade is opening at? But it doesn't, it is plotting both on the previous bar that just closed making it look like it went long at the open price of the correct bar but somewhere in the middle of the previous bar.
If you visually move the markers one bar to the right it would be correct and you can see that the sideways triangle aligns with the open price and the up arrow indicates a trade on the correct bar.
Any ideas why this is happening? In real time it doesn't plot the arrows until the trade is closed and then it plots it as shown. The close trade markers are showing up correctly, only the open trade markers are off.
Any insight would be appreciated.
Comment