
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'm coding an EA using pending orders. At a given time, I could have 2 or 3 buy orders opened and a pending sell order. The level where the pending sell order should be opened is used as a stoploss for all the opened buy orders.
The problem is that it tries to open the sell order before the buy orders are closed and it gives an error because hedging is not allowed.
Is there a solution for this problem?