else

 
extern double Elevation    = 200;
extern double Stoploss     = 150;
extern double Takeprofit   = 660;
extern double Lots         = 3;


extern string TradeSettings="Mt4 time(min-max): hours 0-23, minutes 0-59, seconds 0-59";

extern int  TradeHour6=6;
extern int  TradeMinutes6=0;


extern int  TradeHour13=13;
extern int  TradeMinutes13=0;


extern int  TradeHour15=15;
extern int  TradeMinutes15=0;


int start()
{
 if ((TradeHour6==Hour())&&(TradeMinutes6==Minute()))
   Executor6();
 }
 int Executor6()
 {
  OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid-Stoploss*Point,Bid+Takeprofit*Point,"SEMI-AUTO",0,0,CLR_NONE);
 

 }
else 


 if ((TradeHour13==Hour())&&(TradeMinute13==Minute()))
   Executor13();
  
 int Executor13()
{
   OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid-Stoploss*Point,Bid+Takeprofit*Point,"SEMI-AUTO",0,0,CLR_NONE);


 }
   else
   

   if ((TradeHour15==Hour())&&(TradeMinutes15==Minute()))Executor15();


 int Executor15()
 {
  OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid-Stoploss*Point,Bid+Takeprofit*Point,"SEMI-AUTO",0,0,CLR_NONE);


}
}
   
    

Hello,

coz im totaly beginner and knowledge less :-) please help

this should work but dont, lots of errors


my otherquestion is how to call or merge more EA's in one, if its possible

like:

int

EA123.mq4

and

EA456.mq4

thank a lot

 

Hi FilipZ,

You're double posting, don't double post, continue from the last post https://www.mql5.com/en/forum/140111

Reason: