Hi,
I just want a simple moving average cross over system I can backtest. I wrote the following code but it doesn't enter or exit the trade when I actually want it to, it just it a few candles after. Can someone please correct my coding for me? I'm guessing it's where I have entered my enter and exit conditions?
I just want a simple moving average cross over system I can backtest. I wrote the following code but it doesn't enter or exit the trade when I actually want it to, it just it a few candles after. Can someone please correct my coding for me? I'm guessing it's where I have entered my enter and exit conditions?