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