function OrderTicket()
I tried playing with arrays but it seems you need to decide the array size first.
trying modifying the first line to:
int Orders[10];
if it works, try this:
trying modifying the first line to:
int Orders[10];
if it works, try this:
int Orders[]; ArrayResize(Orders,OrdersTotal());
lalilo is right. Your Orders array has zero length, because You does not specify it' size.
If You ask GetLastError() after Orders[i]=blah-blah-blah; then You get out of range error.
If You ask GetLastError() after Orders[i]=blah-blah-blah; then You get out of range error.
Thank You very, very much!!
I will go on with the development of my EA!
Best Regards!
I will go on with the development of my EA!
Best Regards!
Is this correct? In the manual we read:
"int OrderTicket()
Returns ticket number for the currently selected order.
Note: The order must be previously selected by the OrderSelect() function."
When I use in the testing mode a code:
then I get the number of ticket in the testing order. But this is the last one only.
How can I get the tickets (or the numbers) of active orders in testing mode? Can somebody help me, please?
Thanks,