4H pending orders
-
Very simple Ea I try.
Pending order, 4H candle high +3pip buystop and low -3pip sellstop.
I have two problems:- If due to the closeness of the price, only one order is placed, because the other cannot be placed. What should be done to do neither??
- If none of the pending orders of the previous candle opens, delete them when the candle closes and place the new ones.
Can anyone give me some advice?
-
@clubdio I will try to answer the best I can considering the available info.
-
That's up to you. Would you like the trade to be open regardless the pending order was not programmed. Then maybe opening a market execution instead?
-
You said none of the pending orders is executed. But what about if just one of them is? Should the other be deleted too?
-
-
Sorry, I wasn't clear enough.
I want two pending orders for every 4H candle.
Candle high +2 pips and low -2 pips should be placed pending order.
1: If there is no buy for some reason, there should be no sell either!
2: If one pending order is opened, the other is delete immediately. -
@clubdio Then you can try this:
https://fxdreema.com/shared/Xs9lmk02d
Please notice that there blocks in two different tabs, 'on tick' and 'on trade'.
-
Thank you very much.
That's it, I was close, but still not good.
It's a small thing, but now it's perfect.
Thanks again! -
@clubdio You're welcome.