NexusFi: Find Your Edge


Home Menu

 





How to calculate RSI(3) n days ago ?


Discussion in TradeStation

Updated
    1. trending_up 1,236 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
hgchcw
Hong Kong + Hong Kong
 
Posts: 18 since Feb 2019
Thanks Given: 9
Thanks Received: 0

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


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Kharg Island at 6%, Regime Fall at 1.5% -- The Black Swa …
Prediction Markets & Event Contracts
Trump Truth Social Fires Hormuz From 10% to 59% -- Arsen …
Prediction Markets & Event Contracts
One Wallet Made $200K in Hours: AP Probes Polymarket Cea …
Prediction Markets & Event Contracts
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
CFTC Opens First COT Report Review in 20 Years -- Asks W …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,642

Raymond,

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.

 
Code
vRSI = RSI( Close, 14 ) ;
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.

Regards,

ABCTG


Follow me on X Reply With Quote




Last Updated on June 10, 2019


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts