EA required (no code hackers , code learners or coding amateurs)
https://www.mql5.com/en/articles/3133
ea has 10 baskets , each basket has multiple entries and exits using same logic.=========
10 baskets can be running at same time.
each basket starts at a different level based on either signal or basket start level. ------------
profits and losses are calculated for each basket , and basket closed if certain profits reached.----------
prefer ea to be modular , ever function should be called with magic number i.e with
magic:5000
magic+100/function1/function2/function3 / reversal distance 1/entry level 1/ uptrend/TakeProfitForPrimary1/StopLossPrimary1/ BasketTakeProfit1/DistanceBetweenTrades1/UptrendLevel1/entry and stop loss and take profit recheck/signal 1,indicator 3,
magic+200/function1/function2/function3/reversal distance 2/ entry level2 /down trend/TakeProfitForPrimary2/StopLossPrimary2/BasketTakeProfit3/DistanceBetweenTrades2/DowntrendLevel1/entry and stop loss and take profit recheck/ signal 3/ indicator 1,
magic+300/function1/function2/function3/reversal distance 2/ entry level3 /down trend/TakeProfitForPrimary2/StopLossPrimary2/BasketTakeProfit3/DistanceBetweenTrades2/DowntrendLevel1/entry and stop loss and take profit recheck/ signal 3/indicator 20,
magic+400//////////////
magic+500//////////////
magic+600//////////////
magic+700//////////////
magic+800//////////////
magic+900//////////////
magic+1000//////////////
The above should avoid this type of conflicts
EA opens a trade at basket entry level or on signal , with a stop loss and take profit target
EA logic reverses trade after every loss, ea places reverse trade with buy stop or sell stop , after 1 st trade (place trade 2 pending) , 2 nd trade etc is executed (place trade 3 pending )
input int DistanceBetweenTrades1=500;//ea reverses trade from buy to sell to buy to sell to buy to sell ec at 500 distance
If ea buy entry price is 25000, stop loss is 24950 for first entry,
if stop loss is hit reverse direction to sell at 24950, if stop loss is hit reverse at 25000 etc
DistanceBetweenTrades2
input int DistanceBetweenTrades2=1000;//ea reverses trade from buy to sell to buy to sell to buy to sell ec at 1000 distance
EA has indicator reversal switch ,
if indicator x reads +50 close shorts and reverse position to long with a stop //only one trade on signal allowed once a day
if indicator x reads -50 close longs and reverse position to short with a stop //only one trade on signal allowed once a day
input int TakeProfitForPrimary1=200;
input int TakeProfitForPrimary2=200;
input int StopLossPrimary1=500;
input int StopLossPrimary2=500;
functions required
input bool CloseAllSwitch=false;// will close all trades manually with switch
input int BasketTakeProfit1=£££££500; // close if basket profit of all open /closed trades is pounds.
input int BasketTakeProfit2=£££££1000; // close if basket profit of all open /closed trades is pounds.
input int BasketTakeProfit3=£££££1500; // close if basket profit of all open /closed trades is pounds.
input string AddToComment="";
input string StartOnMonday="01:00";// starts on monday
input bool UseCloseFriday=true;
input string FridayCloseTime="19:00";
input string StartTime="01:00";//for starting new signals/baskets
input string EndTime="23:49";//for starting new signals/baskets
input int MaximumOrderPerlevel=1;//maximum at entry level per each basket
entry and stop loss and take profit recheck function every 5 minutes// ea will check entry and stop loss is not missed
lot sizes after every loss/reversal
example trade 1 is 0.1 , trade 2 reversal is 0.1 ,trade 3 reversal is 0.2 ,
open a buy on 3 signals , if signal is sell open sell signal on ea //
input bool UseSignal1=true;
input bool UseSignal2=true;
input bool UseSignal3=true; 1 indicator mulipair
baskets start levels:10 baskets below//if basket entry level entered signal are invalid
input double UptrendLevel1=25000;
input double DowntrendLevel1=24950;
input double UptrendLevel2=24500;
input double DowntrendLevel2=24950;
input double UptrendLevel1=35000;
input double DowntrendLevel3=24750;
input double UptrendLevel4=35000;
input double DowntrendLevel4=34950;
input double DowntrendLevel=53950;
input double UptrendLevel5=25500;
input int MagicNumber1=64559;
input int MagicNumber2=65559;
input int MagicNumber3=6559;
input int MagicNumber4=674559;
input int MagicNumber5=68559;
input int MagicNumber6=69559;
input int MagicNumber7=70559;
input int MagicNumber8=71559;
input int MagicNumber9=72559;
input int MagicNumber10=73559;
code 1 indicator mulipair
input int ADXPeriod=14;
input bool UseSignal1=true;
input bool UseSignal2=true;
input string Pair1="US30(£)";
input bool OpenOppositeDirection1=false;
input string Pair2="SPX500(£)";
input bool OpenOppositeDirection2=false;
input string Pair3="NAS100(£)";
input int TriggerLevel=80;
input int PairLevel=50;
int BrandNewSignal()
{
input bool UseTrailing=false; //Use trailing pip
extern double TrailStopStart=2000; //Profit before Trailing SL in Pips
extern double TrailStop=1000; //Entry Trailing SL in Pips
input bool UseMartingale=true;
partnership collaboraion ea for mql4 files
https://www.mql5.com/en/job/85169
https://www.mql5.com/en/articles/3133
ea has 10 baskets , each basket has multiple entries and exits using same logic.=========
10 baskets can be running at same time.
each basket starts at a different level based on either signal or basket start level. ------------
profits and losses are calculated for each basket , and basket closed if certain profits reached.----------
prefer ea to be modular , ever function should be called with magic number i.e with
magic:5000
magic+100/function1/function2/function3 / reversal distance 1/entry level 1/ uptrend/TakeProfitForPrimary1/StopLossPrimary1/ BasketTakeProfit1/DistanceBetweenTrades1/UptrendLevel1/entry and stop loss and take profit recheck/signal 1,indicator 3,
magic+200/function1/function2/function3/reversal distance 2/ entry level2 /down trend/TakeProfitForPrimary2/StopLossPrimary2/BasketTakeProfit3/DistanceBetweenTrades2/DowntrendLevel1/entry and stop loss and take profit recheck/ signal 3/ indicator 1,
magic+300/function1/function2/function3/reversal distance 2/ entry level3 /down trend/TakeProfitForPrimary2/StopLossPrimary2/BasketTakeProfit3/DistanceBetweenTrades2/DowntrendLevel1/entry and stop loss and take profit recheck/ signal 3/indicator 20,
magic+400//////////////
magic+500//////////////
magic+600//////////////
magic+700//////////////
magic+800//////////////
magic+900//////////////
magic+1000//////////////
The above should avoid this type of conflicts
EA opens a trade at basket entry level or on signal , with a stop loss and take profit target
EA logic reverses trade after every loss, ea places reverse trade with buy stop or sell stop , after 1 st trade (place trade 2 pending) , 2 nd trade etc is executed (place trade 3 pending )
input int DistanceBetweenTrades1=500;//ea reverses trade from buy to sell to buy to sell to buy to sell ec at 500 distance
If ea buy entry price is 25000, stop loss is 24950 for first entry,
if stop loss is hit reverse direction to sell at 24950, if stop loss is hit reverse at 25000 etc
DistanceBetweenTrades2
input int DistanceBetweenTrades2=1000;//ea reverses trade from buy to sell to buy to sell to buy to sell ec at 1000 distance
EA has indicator reversal switch ,
if indicator x reads +50 close shorts and reverse position to long with a stop //only one trade on signal allowed once a day
if indicator x reads -50 close longs and reverse position to short with a stop //only one trade on signal allowed once a day
input int TakeProfitForPrimary1=200;
input int TakeProfitForPrimary2=200;
input int StopLossPrimary1=500;
input int StopLossPrimary2=500;
functions required
input bool CloseAllSwitch=false;// will close all trades manually with switch
input int BasketTakeProfit1=£££££500; // close if basket profit of all open /closed trades is pounds.
input int BasketTakeProfit2=£££££1000; // close if basket profit of all open /closed trades is pounds.
input int BasketTakeProfit3=£££££1500; // close if basket profit of all open /closed trades is pounds.
input string AddToComment="";
input string StartOnMonday="01:00";// starts on monday
input bool UseCloseFriday=true;
input string FridayCloseTime="19:00";
input string StartTime="01:00";//for starting new signals/baskets
input string EndTime="23:49";//for starting new signals/baskets
input int MaximumOrderPerlevel=1;//maximum at entry level per each basket
entry and stop loss and take profit recheck function every 5 minutes// ea will check entry and stop loss is not missed
lot sizes after every loss/reversal
example trade 1 is 0.1 , trade 2 reversal is 0.1 ,trade 3 reversal is 0.2 ,
open a buy on 3 signals , if signal is sell open sell signal on ea //
input bool UseSignal1=true;
input bool UseSignal2=true;
input bool UseSignal3=true; 1 indicator mulipair
baskets start levels:10 baskets below//if basket entry level entered signal are invalid
input double UptrendLevel1=25000;
input double DowntrendLevel1=24950;
input double UptrendLevel2=24500;
input double DowntrendLevel2=24950;
input double UptrendLevel1=35000;
input double DowntrendLevel3=24750;
input double UptrendLevel4=35000;
input double DowntrendLevel4=34950;
input double DowntrendLevel=53950;
input double UptrendLevel5=25500;
input int MagicNumber1=64559;
input int MagicNumber2=65559;
input int MagicNumber3=6559;
input int MagicNumber4=674559;
input int MagicNumber5=68559;
input int MagicNumber6=69559;
input int MagicNumber7=70559;
input int MagicNumber8=71559;
input int MagicNumber9=72559;
input int MagicNumber10=73559;
code 1 indicator mulipair
input int ADXPeriod=14;
input bool UseSignal1=true;
input bool UseSignal2=true;
input string Pair1="US30(£)";
input bool OpenOppositeDirection1=false;
input string Pair2="SPX500(£)";
input bool OpenOppositeDirection2=false;
input string Pair3="NAS100(£)";
input int TriggerLevel=80;
input int PairLevel=50;
int BrandNewSignal()
{
input bool UseTrailing=false; //Use trailing pip
extern double TrailStopStart=2000; //Profit before Trailing SL in Pips
extern double TrailStop=1000; //Entry Trailing SL in Pips
input bool UseMartingale=true;
partnership collaboraion ea for mql4 files
https://www.mql5.com/en/job/85169
Attached Image