Forexbandit:
Maybe there wasn't a tick at exactly 12:30:00
I want to execute an OrderSend at exactly 12:30 and 00 seconds, but when I look in the journal, it says the trade was bought at 12:30:05. Why is there a delay? How can I execute a trade much quicker than a 5 second delay?
Forexbandit:
I want to execute an OrderSend at exactly 12:30 and 00 seconds, but when I look in the journal, it says the trade was bought at 12:30:05. Why is there a delay? How can I execute a trade much quicker than a 5 second delay?
no you don't want it
your code says
if (TimeCurrent() >= StrToTime(time))
means if time equal as or greater then
but it won't help if you made it like
if (TimeCurrent() == StrToTime(time))
the way you want
![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
I want to execute an OrderSend at exactly 12:30 and 00 seconds, but when I look in the journal, it says the trade was bought at 12:30:05. Why is there a delay? How can I execute a trade much quicker than a 5 second delay?