- Get Profit
- file write
- To show comment
Hi can some body tell me how to close the orders when a new comes means when a buy comes it close all orders related to sell and when sell comes closes all the order related to buy?
sir thanks for your reply but sir i already using orderclose function .sir i have written this code but the problem it is closing only one order correspond to the new order but i have close all sell orders when ever new order comes of buy.
You will shortly be supplied with some links re counting down when using OrderTotal()
I don't have the links, so am unable to save someone else the bother
for(int i=OrdersTotal()-1;i>=0;i--)
sir thanks for your reply but sir i already using orderclose function .sir i have written this code but the problem it is closing only one order correspond to the new order but i have close all sell orders when ever new order comes of buy.
You will shortly be supplied with some links re counting down when using OrderTotal()
I don't have the links, so am unable to save someone else the bother
Loops and Closing or Deleting Orders

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use