Crak:
Hi,
I have some trouble using the OrderSelect function:
This code always returns the following error:
Anyone has an idea on how I should write it ?
Best Regards,
Crak
without testing I think you need to change this
if(OrderSelect(Ticket, SELECT_BY_POS,MODE_TRADES)==true) to this
if(OrderSelect(Ticket, SELECT_BY_TICKET,MODE_TRADES)==true)
The ==true is redundent if(true==true) is the same as if(true).,mode_trades is also redundant as it is the default.
You can use:
if(OrderSelect(Ticket, SELECT_BY_TICKET)==true)
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
Hi,
I have some trouble using the OrderSelect function:
This code always returns the following error:
Anyone has an idea on how I should write it ?
Best Regards,
Crak