![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
Many thanks, now no errors-please explain the statement , when you use exclamation mark (!) before the orderselect, does that not mean that you are not selecting any orders?
Many thanks, now no errors-please explain the statement , when you use exclamation mark (!) before the orderselect, does that not mean that you are not selecting any orders?
The ea is being tested on H1 chart but still trading more than once in 24 hours.
without the ! it means if the OrderSelect is successful
or
if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==true)
with the ! it means if the OrderSelect failed
or
without the ! it means if the OrderSelect is successful
or
if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==true)
with the ! it means if the OrderSelect failed
or
Thanks, the code now works, really appreciated Keith!!