Hi there,
If you assign a variable to every specific day of the week:
If DayofWeek = 1 then
VariableX = a
elsif Dayofweek = 2 then
VariableX = b
elsif Dayofweek = 3 then
VariableX = c
elsif Dayofweek = 4 then
VariableX = d
elsif Dayofweek = 5 then
VariableX = e
Endif
will the system understand that you want to use the VariableX of the previous day if you use the “[1]“?
E.G. if we’re in DayofWeek = 3 and you use “VariableX[1]“, does the system understand that you want to use the VariableX of DayofWeek = 2?
Thanks a lot for the replies..
Yes, that’s exactly what it is.
At every NEW candle that opens, ProRealTime will make a copy of the past value as the new one for each variable. If you never change it, the original value will be retained till the code stops. If you change it, the change affects ONLY the current candle, not prior values!