Part four in an introduction to writing expert advisors for MT4 and MT5.
Part 3 added a trailing stop based on a fixed points input. This part shows how to change that to a more dynamic value based on a multiple of ATR.
The code for this tutorial is available on github: https://github.com/OrchardForexTutorials/220917_formula_trailing_stop
If you are looking for a broker for MT5 or MT4 consider supporting our channel by using our broker by following one of these links.
Live: https://orchardforex.com/live-account/
Demo: https://orchardforex.com/demo-account/
Discord: https://discord.gg/fuyJW55kx5
Twitter: https://twitter.com/OrchardForex
Telegram: https://t.me/orchardforex