I want to create a variable, but I can't find a possible way to do that
-
I want to create a variable, but I can't find a possible way to do that
X>1= R1
X<1=R2How do I put the name or value of a variable to use?
-
@khalids222
To create a variable you need to do this :
https://fxdreema.com/shared/qxFbyE1td
In the 3d step write the type of variable, its name, and the value it will take by default. Once created you can use this variable to load the value of something, here the price of candle 1. Once the first block passes the variable isn't equal to 0 anymore but to the price of the market. And you can use it on the next blocks. -
@seb-0 Thank you, but I did not mean this, I will explain what is required in a better way
I want to create a variable that contains negative values and a variable that contains positive values
I do not want to use it to buy and sell, but to close deals
https://fxdreema.com/shared/gRKHclJXc

I want a value for each of these conditions so that I can use it again in comparison with profits
Is the picture clear؟ -
@khalids222
From what i got,
if : BUYUNDERZERO < 0 => BUYUNDERZERO = R1
if : BUYABOVEZERO > 0 => BUYABOVEZERO = R2
Is that it ? -
@seb-0
if : BUYUNDERZERO < 0 = R1
if : BUYABOVEZERO > 0 = R2 -
@khalids222
By what you write, you are telling that R1 and R2 are both equals to 0, doesn't make lot of sense to me. -
@seb-0
I am Sorry, I did not understand your question well at the beginning, yes, the rule is correct
if : BUYUNDERZERO < 0 => BUYUNDERZERO = R1
if : BUYABOVEZERO > 0 => BUYABOVEZERO = R2 -
@khalids222
Hum like that then ? https://fxdreema.com/shared/wocIhsRE -
@seb-0
Thank you so much, that's exactly what I wanted.