pendin order
-
@l-andorrà
https://fxdreema.com/shared/uzrR2QjP
I cannot close the pending order when the buy goes into stop loss -
@giusepatane Fisrtly, you don't need the second 'once per bar' block below the 'buy now'. Then what you need is this on the 'on trade' chart (for sells only):

-
@l-andorrà thanks you are a genius
-
@giusepatane LOL!
Thank you. -
@l-andorrà Hi
it is possible to make the traling stop on the contrary that the take profit or the stop loss move on the contrary -
-
@giusepatane I don't fully undersand what you mean. Can you please provide mode detailed info?
-
@l-andorrà said in pendin order:
I don't fully undersand what you mean. Can you please provide mode detailed info?

-
@l-andorrà the trailing stop is set on the sell. my question is ':
is there a way that the take profit or stop loss of the bay follows the traling stop of the sell obviously at a certain distance? -
@giusepatane Yes, technically you can do that but I don't understand the logic behind it. Why are both SL supposed to be moved in a parallel range of price all the time?
-
@l-andorrà said in pendin order:
Yes, technically you can do that but I don't understand the logic behind it. Why are both SL supposed to be moved in a parallel range of price all the time?

as in the photo they move in parallel but always at a certain distance of tp -
@giusepatane Is the distance separating the TP and the SL exactly the same separating both buy and sell open price?
-
@l-andorrà said in pendin order:
Is the distance separating the TP and the SL exactly the same separating both buy and sell open price?
exactly yes
-
@giusepatane Then you can create a variable to store the distance between both prices and then use its value to move both TP and SL levels.
-
@l-andorrà said in pendin order:
Then you can create a variable to store the distance between both prices and then use its value to move both TP and SL levels.
OK thanks