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 judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    57 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Today, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    19 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    9 views
    0 likes
    Last Post cre8able  
    Working...
    X