I'm having issues getting correct historical/backtest results on a strategy I've developed. When running the strategy live the trade executes as intended (a pullback strategy which executes on the first candle to make a new high which gets hihglighted in pink). But when I look at the same trade on a backtest (a couple of minutes later), that trade is not captured. The backtest only seems to capture trades for which there are continuation candles after the new high is formed ( so half or more of the trades are not reflected). I have recorded a video to show this discrepancy. You will notice that in real time the strategy execute; then a minute later i simply refresh the strategy (in the strategy menu by disabling/.enabling it back) and then you will see that the trade disappears. This happens for trades where the following candle does not continue in the same direction. This makes it really difficult to backtest this strategy as half of the trades won't fire. What can I do to make sure I see everything firing in the historical data/backtest? Happy to post the code as needed.
Here is the link to the video:
1st part of the vide until 1:20 is the live trading section where the trade executes, then you will see me refresh the strategy from the options menu in order to see the the same trade in historical format but you will notice that the execution disappears.
Thank you
Ted

Comment