This is probably a simple question but for some reason, in eSignal, I find this very confusing.
If I calculate a custom value, say "X", for each bar, what is the proper code to check the value of "X" for a preceding bar?
The reason I'm confused is that, for example, to check the value of a close 3 days ago, I use close(3) (or is it close(-3)?). However, to check the value of the RSI three days ago, I have to use .getValue(-3).
What am I missing here?
If I calculate a custom value, say "X", for each bar, what is the proper code to check the value of "X" for a preceding bar?
The reason I'm confused is that, for example, to check the value of a close 3 days ago, I use close(3) (or is it close(-3)?). However, to check the value of the RSI three days ago, I have to use .getValue(-3).
What am I missing here?
Comment