Hi, I'm trying to read values with OrderSelect active orders only, but when I have pending orders, the code read thei values also. Can somebody help with OrderSelect function to ignore pending order values when I have some, but I don't need their values?
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
- Last OrderType
- what is "SELECT_BY_POS " in OrderSelect()??
MT4: skip when OrderType()>1
MT5: cycle PositionsTotal() only and not OrdersTotal()
Cvetan Michev :
Hi, I'm trying to read values with OrderSelect active orders only, but when I have pending orders, the code read thei values also. Can somebody help with OrderSelect function to ignore pending order values when I have some, but I don't need their values?
Hi, I'm trying to read values with OrderSelect active orders only, but when I have pending orders, the code read thei values also. Can somebody help with OrderSelect function to ignore pending order values when I have some, but I don't need their values?
Are you coding on MT4 or MT5?
you don't need 3 accounts tho
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