You'd need to set up a timer ( OnTimer() ), so that it 'ticks' every second.
Therein you'd use i.e TimeLocal() with MqlDateTime type parameter. The MqlDateTime structure is then filled accordingly and you can read out day, minute, second etc.
One possible issue I see with this, and I do not see a solution is placing the order on your end is no guarantee that the broker can fill the order right at that time to the second.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
eg:
i want to place order in 10:00:15
i tried coding for given minutes, but how to make order in exact seconds too?