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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    93 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    48 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    31 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    34 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    70 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X