Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

retrieve indicator values

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    retrieve indicator values

    Hi Ninjatraders

    I want to test if the RSI indicator is trending up or down during defined period in time. I know there are rising() and falling() methods available, but looks like they can only test on a day by day basis (check today vs tomorrow).
    So I believe what I need is to be able to retrieve indicator values x and y days ago to compare them.
    1. For example how do I retrieve RSI values 10 and 20 days ago?
    2. Also, please advise in case there's a smarter way of checking the direction of the trend within a period defined by x and y bars ago on the idicator data.


    Thanks a lot

    #2
    Hello,
    You can get the RSI values from X bars ago by using

    RSI(14, 3)[20];
    //in this example you would be using period of 14 and smooth value of 3 and getting the value from 20 bars ago


    If you wanted to you could always calculate the angle of the line at a given point


    Let me know if I can be of further assistance.
    LanceNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    27 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    117 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    69 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    226 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    417 views
    0 likes
    Last Post CaptainJack  
    Working...
    X