It's a bool value.
if(OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES)==true){ /* do something here for true */ }
When in doubt, read the documentation.
Documentation on MQL5: Trade Functions / OrderSelect
- www.mql5.com
Trade Functions / OrderSelect - Reference on algorithmic/automated trading language for MetaTrader 5
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
Hello,
I am trying to solve "return value of "orderSelect" should be checked" from the following code.