PENDING ORDERS FROM TRIGGERED PENDING ORDERS
-
Hello, please I want my EA to open a pending order in opposite directions when ever any pending order from my initial position gets triggered, how do I go about it?
-
@Ben-Romewel You need to do this in the 'on trade' tab:

-
@l-andorrà thanks a lot sir, but i would also want the stops to be moveable, example if its a sell stop, it should only move upwards and a buy stop should also only move downwards following the current market price how do i go about it?
-
@l-andorrà sir only one pending order shows up from my initial trade, but when the pending orders itself triggers it doesn't set anymore pending orders, please what do I do
-
On your first question, do you mean using a trailing stop. You can do that normally using that block in the 'on tick' tab. On your second question, can you please share the link to your project to see the reason why it doesn't work?
-
yes for example, I'm already having a buy trade that has a pending order then when the order gets triggered it should have its own pending sell order, and vice versa.
-
Then you can do exactly what i shared in my previous post. You just need to do both structures separately: one for buys and the other one for sells.
-
@l-andorrà it only just initiates a pending order when my initial trade is placed, when that pending order gets hit, it doesn't initiate another pending order, which is what I'm trying to do.
Example:
I have a trade (Buy) it places a SELL STOP ORDER, when the SELL STOP ORDER gets filled it's supposed to place another BUY STOP ORDER but it doesn't. -
It should. Could you please share the link to your project?
-
@l-andorrà alright sir, this is the link. shared/PNj2wxM1d
-
@l-andorrà alright sir, that's the link to the project.
https://fxdreema.com/shared/jfY2y182c -
This looks like it should work, are you expecting this to open trades activated on another chart? Create a test project doing this without using different groups and fewer blocks, test on backtest and say whether it works or not.
-
@jstap I need the buy and sell to be in different groups.
The initial pending order from the primary trade places but when it's been triggered, no other pending order follows the sequence.
Eg.
Group 1 start with a buy trade and places a sell stop order when the sell stop order triggers it should place a buy stop, so on and on till the whole trade in the sequence starting with an initial buy trade gets to a cumulative profit of $0.33 thats what I'm trying to do. -
Wasn't my point, was to check it works without groups, then add groups. This way you can eliminate most possible problems.
-
@jstap https://fxdreema.com/shared/ASlT706me
that's the link, its still not working. it only places the pending stop order but when the pending stop order gets triggered it does place anyone, after the triggered one. -
Although MT5 is not my foray it is set up so it should place a fresh pending every time an order becomes a trade
-
@jstap please, how do I fix this issue?
-
I do not know that would work on MT4
-
@jstap thanks alot, just tried it out on MT4 and it work!.
-
Yes, a few times things only work on MT4, you could try asking the admin.