Add 2 Stop Loss Features to an existing well running EA At the moment thats situation: My ZIGZAG EA trades Breaktous of the ZIGZAG signals Buys if price breaks High of last ZIGZAG leg and Sell short if price breaks Low of last ZIGZAG leg. Its a Stopp and Reverse EA, that means the EA takes SL (Variable in EA is „sl“) at the opposite site of the Ordersite in the EA and is ALWAYS IN THE MARKET f.e. Breaks HIGH of ZIGZAG leg is BUY and same time EA sets his „sl“ at the LOW of the ZIGZAG leg. If Low of ZIGZAG leg is broken EA close the BUY Order and Open a SELL Order. The EA which is running without problems is to add with these functions: 1. TO add : HARD StopLoss independend of the SL which is at the moment used as Variable „sl“ in the EA These HARD StopLoss is to be set at the open of each trade for BUY Orders xx.xx PERCENT of price below the OPENORDERPRICE and for SELL Orders xx.xx PERCENT above the OPENORDERPRICE not PIPS or Points cause i want that to use for all instruments Thats to avoid to big Losses. These HARD StopLoss muss „override“ the „sl“ Variable which is uses at the moment if the price goes below these „HARD StopLoss“ in BUY or goes above these „HARD StopLoss“ in SELL orders. The EA stored the datas of the ZIGZAG Last High, Last Low, and the actual High or Low in an ARRAY. The Datas of these Array are shown in the chart at left side corner TO add: a DATA which counts the mathematicall difference between last ZIGZAG LEG AND THE ZIGZAG LEG BEFORE: I HAVE MARKED THAT IN THE CHART AS P 1 and P 2 This data (double) should shows these difference in the chart and fill it in a Variable So the data from these Variable should be stored in a Variable , (let say VAR_1) These VAR_1 should be as extern Variable to have them in the EA Also to Open a Trade this VAR_1 must have a Value = < XY (VAR_2) And these Value XY (VAR_2) should adjustable in the EA Now the function: IF these VAR_1 (Difference between High and :Low of the last ZIGZAG Legs) Level > Value VAR_2 (is above) a Level of VAR_2 which should be setable in the EA , the EA should not open any trade. This is to limit the risk of each trade by market condition NO CHANGE IN THE OPEN ORDER Management Added Picture Here an example for a Buy Trade at 23:00 P 1 and P 2 P1 is Low and the „normal sl“ the EA uses P2 is High and Open Order the EA uses IMPORTANT. 1) I need the mql4 file as well 2) The EA is my copyright - not allowed to publish it without my okay