Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
How to calculate n days ago RSI(3)?
It should be RSI( ? , 3) , but I have to create a numericseries from Low[3] to Low[5]. Am I right? But how to calculate that numericseries?
Thanks,
Raymond
Can you help answer these questions from other members on NexusFi?
the correct answer will depend on the time frame you are working on.
In general you can back reference variables or functions similar to what you can do with some reserved words for accessing previous bar's values.
Having said that you could store the value of the RSI function in a variable and use the variable for accessing previous bar's values.
Now vRSI[3] would provide the value of the RSI three bars ago.
Alternative you can back reference the function directly or use it with Close[3] as price, but the above appears to be more versatile especially when you intend to use multiple different lock backs within the same code.