Behavior [1] stored variable

Forums ProRealTime English forum ProOrder support Behavior [1] stored variable

Viewing 2 posts - 1 through 2 (of 2 total)
  • #169488

    Hi there,

    If you assign a variable to every specific day of the week:

    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..

    #169493

    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!

     

    1 user thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login