Hi everybody
i've written this cycle code but i don't know why an error always happens:
the code:
and this is the error:
2012.12.22 11:31:17 2012.12.20 23:59 rsibolinger2 EURUSD,M1: OrderSelect returned the error of 0
could you help me please?
thanks a lot and merry christmas
That means the return of OrderSelect() is false. Try this :
for(index=OrdersTotal() - 1;index>=0;index--)
Say you have 23 trades. OrdersTotal() will return 23, and you're not counting them from 1 to 23, but from 0 to 22. So there's no position number 23, and so OrderSelect() return false.
Hi everybody
i've written this cycle code but i don't know why an error always happens:
the code:
and this is the error:
2012.12.22 11:31:17 2012.12.20 23:59 rsibolinger2 EURUSD,M1: OrderSelect returned the error of 0
could you help me please?
tks a lot phi.nuts , you are right! noiw it work!
4 raptor uk.
u are right i made a mistake when i copied the code! tks

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi everybody
i've written this cycle code but i don't know why an error always happens:
the code:
and this is the error:
2012.12.22 11:31:17 2012.12.20 23:59 rsibolinger2 EURUSD,M1: OrderSelect returned the error of 0
could you help me please?
thanks a lot and merry christmas