Pending Order Trigger Cancels Remaining Pending Orders?
-
Just looking for an explanation as to how i'd set up a sequence by which two pending orders are set, one at the top of the last candle +5 pips as a buy stop and one at the bottom of the last candle with -5 pips as a sell stop - I have these ordering correctly it seems but i'd like to know how I can make it so when one triggers the other pending order is canceled.
Right now I have this in the On Trade section

But it seems to just cancel everything when either is triggered

-
@zereleth
Hi, I would do something like that, on tick event : https://fxdreema.com/shared/5glc7LX9d -
That logic is correct. Could you please share the whole project?
-
I think I may have been private messaging you about this but here is the whole thing https://fxdreema.com/shared/vC667kD9c
-
-
Yes, and I see you didn't implement my suggestions yet.

-
@l-andorrà Sorry for being late but I wanted to wait until the markets opened to implement the changes, i've done as you mentioned here but it is the same problem - the orders just cancel where they should trigger https://fxdreema.com/shared/iVPT9Tfec
-
Been playing around with it a lot and i'm thinking the issue is with the pending order settings to begin with, even with the other bits disabled the pending orders rarely trigger; I have no idea what i'm doing wrong. I listened to what you said about +5pips and -5pips and that works correctly, it's just not in the shared project because I wanted the orders to trigger more often in testing
-
@zereleth seb 0 said you should put it on tick event... you have it on trade event?
-
@alphaomega I do have it on trade event but i'm not sure that's the main problem at the moment, i've been looking into it and it seems that the pending orders by themselves aren't set up correctly somehow, I made this one with only the orders https://fxdreema.com/shared/0okBOaT9d but when the pending orders trigger should trigger into a trade they just cancel entirely instead; the journal and expert advisor tab on MT4 show nothing
-
Do not connect them one below the other. Juust both of them below the 'once a day' block. ON the other hand, the lot size in the sell pending is a negative value. That should pop up an erroe massage for sure. Maybe your MT4 platform is wrong.
-
@l-andorrà I took your advice, but the trades still seem to close seemingly at random immediately after being fulfilled. I'll do more testing on it, with just one pending order the orders go through normally
-
Ok. Don't hesitate to be back if you need more info.
-
@l-andorrà Wondered if you might have an idea about this? http://fxdreema.com/forum/topic/9409/orders-trigger-over-sma I'm pretty sure I have the right blocks just not sure how to correctly position them
-
I already answered there.
