Radoslav,
I tried the OCO option - two buy and sell pending orders were placed. Is it supposed to do that?
Radoslav,
I tried the OCO option - two buy and sell pending orders were placed. Is it supposed to do that?
Radoslav,
Thank you! You are awesome!
Radoslav,
Should I have the delete pending orders under "on tick"? I think I see what you mean - I tried the ea when I had the delete pending orders
"on trade" and everything got deleted. Even pending orders for other currency pairs.
Radoslav,
Well, that's a good question. I think an OCO could work on both stop and limit orders. But I'm not sure about multiple orders. Maybe it will work. I'll try it out and see what happens.
I have been experimenting a little and this seems to work:
https://fxdreema.com/shared/2wUb08h0d
The OCO seems to require being placed "on trade" rather than "on tick". OK, I learned something new!
What do you think? Any suggested improvements will be appreciated 
Radoslav,
Thank you for your quick reply. Yes, I think an OCO option would be wonderful.
You are doing a great job . Thank you so much!
Fxdreema,
I have (thanks to your help) an EA that places a buy stop above the last candle high and a sell stop below last candle's low.
Once one of the orders is filled , I want the other pending order closed, so one cancels the other.
Here is what I have:
https://fxdreema.com/shared/YTzJ06x2b
Step 7 is delete pending orders if a trade is running.
Am I doing this correctly ?
Thank you. I did find dynamic levels for stop-losses. However, it was necessary to alter the code slightly.
Fxdreema,
Is it possible to place a stop-loss order above/below the previous candle , rather than having fixed pips stop-losses?
For example , let's say I have placed a pending buy order and I want to put the stop-loss 20 pips below the previous candle. Can that be done?
Thank you,
mcmillan
Thank you so much! I also made a script that will place stops above/below the previous candle.
Fxdreema Team - you guys are great! Again, thank you.
Thank you! You are awesome! The ea is excellent.