I am trying to implement the following trading process:
- buy when MACD >0 and MACD > MACDsignal
- sell when the price is below ATR trailing stop
I think my implementation is not correct as the backtesting (here with XOM, I tried also with AAPL or SPY) gives pretty bad results compared to if I do it manually on a chart.
Any help is greatly appreciated