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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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!!