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.
If you are looking for a broker with good leverage, spreads and product range and want to help out our channel try OX Securities. We do receive commission from this broker.
Demo Account: https://orchardforex.com/demoaccount
Live Account: https://orchardforex.com/liveaccount
Links:
Playlist for this series: • Introduction series writing experts...
NewBar function: • How to run MQL4 or MQL5 code only one...
Web and download: https://orchardforex.com/mql4mql5ex...