Combine 2 exponential moving averages as a trend filter and fractals to set breakout levels
The fast and slow exponential moving averages are used to determine the overall directional trend, only trade buy when fast is above slow and only trade sell when fast is below slow.
The fractals are then used to set breakout levels with a buy stop or sell stop being placed at the high or low of the most recent fractal.
Stop orders that have not been filled are cancelled at the next trigger.
Trades are exited on take profit or stop loss.
If you have a suggestion or request for a future tutorial you can leave details in our Topic Requests forum or vote for existing requests. Make sure the requests are clear and if you refer to a strategy somewhere leave a link to the strategy
The code is available on GitHub: