NexusFi: Find Your Edge


Home Menu

 





How to calculate RSI(3) n days ago ?


Discussion in TradeStation

Updated
    1. trending_up 1,296 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?
CME Group CEO Calls CFTC-Approved Crypto Perps Dangerous …
Traders Hideout
CFTC Approves First US Bitcoin Perpetual Futures -- Kals …
Traders Hideout
Peace Deal Forward Curve: May 22%, June 51%, December 81 …
Prediction Markets & Event Contracts
Six Days to Kickoff: World Cup Prediction Markets Hit $1 …
Prediction Markets & Event Contracts
Memorandum Watch: How the 60-Day MOU Framework Makes May …
Prediction Markets & Event Contracts
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

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