But i mean: i implemented a very simple crossover strategy, kind of MACD.
When i backtest my strategy, the issue is that the signal is given on the entry of the candle which makes the cross. But to be exact, the signal should be given on the close of the candle which makes the cross, or on the open of the next candle. And i dont mange how to do so. (it seems to be that way on your chart).
I hope i am clear enough :)
I found my problem, i set an offset on the plot of my MAs but it isnt taken account for the crossover function. Is there a way to add an offset straight when using the sma function or in the crossover function?
Thanks for the help mate