Draw only once if TP hit and not draw the SL and vice versa.
-
Hello to all.
1st picture:I am trying to create a signal and need to draw once only the TPis hit and THEN,NOT TO draw the SL.
The same to be applied continuously.2nd picture:
Also,is it possible to draw the TP when hit or the SL as picture?

picture 2

-
I guess you're using a custom indocator for it, right?
-
@l-andorrà
No.all is made by conditions. -
With commom condition blocks?
-
@l-andorrà Right
-
Can you please share your project?
-
-

-
@miro1360
Hello sir,
Thank you .
One more question:
i can not draw a trendline from the signal to the TP point or SL point.
I would very much appreciate if i had a solution for these.Thank you!
-
you mixed the input parameters in Draw Line block
search the forum for trendlines, you definitely find the answer
https://fxdreema.com/forum/search?term=trendline&in=titlesposts -
@miro1360
I have searched but the thing is that i can not define the candle where i have the signal.
That is my problem because it varies from 5 candles away to 20 or more and i am not able to solve it as i do not understand how to do it with variables. -
use variables for saving the price and candleID in the time when the object is created, update the candleID for each candle (+1), reset the variables when a new signal appears, otherwise you will have to create a search system (using loops or specific names)

-
@miro1360 said in Draw only once if TP hit and not draw the SL and vice versa.:
use variables for saving the price and candleID in the time when the object is created, update the candleID for each candle (+1), reset the variables when a new signal appears, otherwise you will have to create a search system (using loops or specific names)

Thank you very much for your kindness .I am still not able to do this as i am not a programmer and do not understand the variables(double,int,boolean etc),so it is difficult for me.If you can show me exactly a picture i would be greatful so i can understand.If it is annoying asking so much,thank you again for your help!
-
I recommend you to begin with the basics:
https://fxdreema.com/instructions/builder/constants-and-variables
https://fxdreema.com/instructions/builder/groups-and-magic-numbersWhat you want is not an easy structure to create. If you begin with it, we will help you step by step.

-
