anuj71:
Hello, what should i use along with OrderSelect?
If am using return; i am getting new warning function must return a value.
OrderSelect is bool so you should return true or false.
anuj71: what should i use along with OrderSelect?
None of the above. You keep going. Any number of other orders could close in your loop.
for(int i=OrdersTotal()-1, i >= 0, --i) if( OrderSelect(i, SELECT_BY_POS) && OrderMagic() == MagicNumber && symbol ){ // do whatever }

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, what should i use along with OrderSelect?
If am using return; i am getting new warning function must return a value.