Gerrard Yeun Kim Holly / Publications
Forum
Close All By High WaterMark Code
Hi There I believe the supplied code in MT5 MQL5 is extremely useful as an EA to close all open orders when a certain percentile of the High Water Mark is breached. Please use this code at your leisure. Simply configure the input variable: percentofHWMtrigger, as ( percentofHWMtrigger >= 0.50) or (