Placing order on some fixed time

 

Hi, i'm a newbee. i want to place a time based order with the price on that time.pls help me providing EA.

For example, i want to buy 1 lot at 13.00hrs with TP 50 & SL 75. How to do?

Thank you.

 
You could try Time Trader from the codebase or look for other news trading code.
 
Check out these function: Hour(), Minute(), Seconds(). LinK here.
 
dineshydv:
Check out these function: Hour(), Minute(), Seconds(). LinK here.
  1. or
    #define HR2400 86400
    #define HR1300 46800 // 13 * 3600
    datetime now = TimeCurrent();
    int      tod = now % HR2400;
    if (tod >= HR1300) ...

  2. https://www.mql5.com/en/forum/127483 reports DayOfWeek() always returns 5 in tester. So I only use the TimeXXX() versions (TimeHour, etc)
 
Ickyrus:
You could try Time Trader from the codebase or look for other news trading code.

Thank you friends!! i'll test and come back soon.