Adding trade times on EA

 
Hi, please help me by adding trade times on EA, i want my EA to stop placing trades at 10 PM GMT +2 and start placing trades at 1 AM GMT +2. i have the source code but i have no idea how to do it, please help.
 

Forum on trading, automated trading systems and testing trading strategies

Please fix this indicator or EA

Sergey Golubev, 2017.03.24 07:23

And this is my other suggestion (which came from tsd 2010 and from tsd 2008):

----------------

Just to remind:

Coders (any coder) are coding for free:

  • if it is interesting for them personally, or
  • if it is interesting for many members of this forum.

----------------

and Freelance section of the forum should be used in most of the cases.

---------------

... or upload source code and the coders may help.

 
 
wilfredphiri:  flappy bird

Hi, please help me by adding trade times on EA, i want my EA to stop placing trades at 10 PM GMT +2 and start placing trades at 1 AM GMT +2. i have the source code but i have no idea how to do it, please help.

Please send me the source code you have so I can help you.

Flappy Bird
Flappy Bird
  • reviews: 4037
  • flappy-bird.co
Flappy Bird is an addicting one-button game and is totally free-to-play. Click continuously and get the bird to fly as far as you can!
 

Hi

You can send the code and ask coders.
But you can also try on your own to add a proper function which blocks or allows trading in chosen times. This function needs to be added before the function which open trades.
It might look something like this:

input double TimeStart1 = 1, TimeEnd1 = 22;

bool isAllowedTrading(){

   MqlDateTime curTime;

   TimeToStruct(TimeCurrent(), curTime); //current server time

   double hod = curTime.hour  // Hour of the day.

   if(TimeStart1 <= hod && hod < TimeEnd1){

      return(true); //allowed trading

   }

   else return(false);

}

Best Regards

 
wilfredphiri:
Hi, please help me by adding trade times on EA, i want my EA to stop placing trades at 10 PM GMT +2 and start placing trades at 1 AM GMT +2. i have the source code but i have no idea how to do it, please help.

Send us your code so we can assist, if it is worth it, and you have showed effort in writing it and its not too much work, we will code it for you.

Reason: