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 Documentation on MQL5: Trade Functions / OrderSelect](/i/community/logo_mql5_small.png)
Documentation on MQL5: Trade Functions / OrderSelect
- www.mql5.com
Trade Functions / OrderSelect - Reference on algorithmic/automated trading language for MetaTrader 5
![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
Hello,
I am trying to solve "return value of "orderSelect" should be checked" from the following code.