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
I'm tring to use orderclose/ordermodify. I think before use that, I need to use orderselect. I have this code:
if (condition1)
{OrderSend(OP_BUY...)
}
for(int i=OrdersTotal();i>0;) // this is for select order if there are orders opened
{
OrderSelect(OrdersTotal(), SELECT_BY_POS,MODE_TRADES);
}
if (condition2)
{
OrderClose(...)
}
What's wrong in this code?
Thanks a lot
trader201