Changing daily variable from a constant
-
Hi @fxDreema. Everything's fine with you? How long?
I would like to know how I do to change the value of the variable daily, which in this case will be the price values described in the constants?
Link to the project: https://fxdreema.com/shared/8IedTHuXb
-
Do you mean the 'Constants' (input paraneters) or the 'Variables'? And which of them exactly?
-
@tcanuto Not sure if I get your question right, but you cannot change the value of constants. Use a variable instead!
-
@l-andorrà Yes. Because these values are the prices of Adjustments in future contracts. I write in the external parameters of each day, I need this variable to be changed for each value of the day.
-
@trader-philipps said in Changing daily variable from a constant:
Not sure if I get your question right, but you cannot change the value of constants. Use a variable instead!
That's right. I don't want to change the value of the constants, but I need those values to be in just one variable.
-
@tcanuto Do you mean you need to store all the values you enter somewhere in a list or array? Or do you need just the most recent ones?
-
@trader-philipps The latest of the day will solve the problem. I need the current day value described in the constant.
-
@tcanuto Well, I don't get the issue to be honest. You can use constants as variables or put their value in a variable.
If you have to change those values manually anyway you'd press F7 and change those values.
If you want more comfort you may use an input field on the chart and store the value in a variable.