Metatrade 5 - modify an EA for TP SL Trailing

Job ID: 32759421

Budget: €8 – €30 EUR

The EA attached will find new open orders with TP or SL equals to zero and will set TP or SP with 50 pips for example above or below the current price. I need someone to:

1) modify it as: if EA finds new open orders (wich means pendings who have trigered) with TP or SL equal to zero, then copy the SAME TP/SL as open orders with TP/SL already set (same currency of course, with same TP/SL all of them)
2) close all pending orders from SAME CURRENCY once they have reached TP/SL (so if i have buy eur/usd, sell aud/cad and buy usd/jpy and eur/usd hit the TP then EA will close all pendings only for eur/usd)
Related categories: Metatrader MQL4