NexusFi: Find Your Edge


Home Menu

 





How to calculate RSI(3) n days ago ?


Discussion in TradeStation

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




 
Search this Thread

How to calculate RSI(3) n days ago ?

  #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?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Negative Balance Protection
Brokers
Is there a way to simulate CONTINUOUS CONTRACT?
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
Footprint for strategy Builder
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Funded Trader platforms
33 thanks
Spoo-nalysis ES e-mini futures S&P 500
16 thanks
GFIs1 1 DAX trade per day journal
15 thanks
The Trading Pit "Futures VIP" Account Journal
15 thanks
Trading with Intuition
14 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 484
Thanks Received: 1,629

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 Twitter Reply With Quote




Last Updated on June 10, 2019


© 2024 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 - Privacy Policy - Downloads - Top
no new posts