- You are selecting the third order every time.
- Go through the loop and count open and pending orders. Only after, can you decide if you need to open a new pending.
William Roeder #:
- You are selecting the third order every time.
- Go through the loop and count open and pending orders. Only after, can you decide if you need to open a new pending.
Thank you very much for your help.
Can you please making the loop to count open and pending orders?

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 everyone,
I am trying to create simple EA that opens a buy limit when a sell order or buy order is triggered. But that EA opens thousands of buy stop orders at same time.
Can anyone help me to fix the code to open just one stop order.
Thanks in advance.