Leopardos:
My orders not closing at 5 o'clock , why ?
If you have more than one Order open . . .
total=OrdersTotal(); if(total>1) return(0);
return(0) exits from start()
Any idea how to make it close on time preventing multiple trades in the same second? without it I get 20 trades in the same second when 00:00 hit ...
I would appreciate your help .. Thanks
Leopardos:
Count the number of Orders that the EA has placed, you can even check the time they were placed and use this information to decide if you want to place another Order before you actually place it.
Any idea how to make it close on time preventing multiple trades in the same second? without it I get 20 trades in the same second when 00:00 hit ...
![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
My orders not closing at 5 o'clock , why ?
Thanks