I need to have an Expert Advisor for MetaTrader 4 (MQL4 - MetaQuotes Language 4).
Here a practical example:
want to enter long on EURUSD at [url removed, login to view] with 2 lots.
I want to set 2 take profit, TP1 is +25 pips (so [url removed, login to view]) and TP2 is +50.
I want to put stoploss at -50.
If price hit TP1, EA will close 50% (1 lot) and will move automatically stoploss at -25pips.
If price hit TP2 EA will close the second lot and thank you very much.
If price hit SL without hitting TP1 and TP2, EA will close both lots at -50.
In a few words, EA close 50% of the lots once price reach TP1 and move stoploss at the exact amount of pips of TP1. If I set TP1 at +30 and TP1 is hit, I will have Stopoloss moved at -30.