Set take profit when orders executed
-
Hello and thanks for the support
How can i set take profit when the pending order is executed? -
@aminzaeim You can set the TP distance here:

-
I couldn't convey the mining
I have a pending order right now and when the current market price reaches my Pending order, it executes ( convert from pending order to real trade)
after converting, i want to set my TP. ( or change my TP) -
hi you can use iftrade block then set tp
-
@aminzaeim Then what you need is a 'Fore each trade' loop. But why don't you seta TP within the pending order? That would make it far easier.
-
@h-9raste Thanks Mr.Noraste
-
@l-andorrà because when we use pending order, we will have two time positions : 1- the time of setting pending order 2 - the time of executing pending order ( changing "order" to "position" )
i use highest price in 10 previous candles as my take profit ( for buy position for example)
at the time of setting "buy limit order" , highest price in 10 previous candles would be very different from the time of "buy position".
anyway, i will use "Fore each trade" loop as you said , but unfortunately using a 'loop block' cause to miss 'optimization' in expert advisor.
abig thanks for your help -
on trade tab-purple trade created block-pink for each trade block-modify stops block
-
@jstap That's right. it works. thank you