Job finished
Specification
*** I will add my EA as a reference. Feel free to modify it. Note that I am primarily a trader and not a programmer!
First, I would like the EA to manage several position at the same time (3 per trade & up to 6) . Therefore, different targets (TP), but the same stoploss (SL) based on the ATR. Parameters must be variable.
Example: //Inputs
//Money Management
sinput string MoneyManagement;
input bool takebuytakesells=true; // (If I have a sell signal, while i am in buys, I want to be able to take it too)
input double TotalRiskPercentage=3;
input double p1risk=50; double Pone=TotalRiskPercentage*(p1risk/100);
input double p2risk=25; double Ptwo=TotalRiskPercentage*(p1risk/100);
input double p3risk=25; double Pthree=TotalRiskPercentage*(p1risk/100);
sinput string ATRin;
input int ATRperiod=8;
input double ATRmultiplierForStops=1,75;
input double ATRmultiplierForTP1=0.50;
input double ATRmultiplierForTP2=1;
sinput P3trail;
input TrailStep=100;
When P1 reaches its target, I want to move the stops of p2 and p3 to break even + commissions (1.5pips).
When P2 hits its target, I want p3 to trail 10 pips.
Finally, I want the EA to wait to exit the trade before taking another. (Not two buy signal at the same time)
***ATR calculation must work on all pairs.
Thanks!