Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy on falling RSI

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

    Strategy on falling RSI

    Hello everyone,

    I am new to creation of ninjatrader strategy and hope i can get some feedback from the forum.

    I am trying to strategy to include an overbought condition if RSI is falling from 70 within the past 5 bars.

    Is this possible? if so, can you share with me the code?

    Thank you.

    Norman

    #2
    Hello,

    Thank you for the question.

    The default Falling NinjaScript methods would be very simple and only uses the last values, by definition it checks for a falling condition which is true when the current value is less than the value of 1 bar ago.

    if you would like to know over a Period you could create this with logic. One example would be based on the description above:

    Code:
    if(RSI(12,14)[0] < RSI(12,14)[1])
    {
       //is falling
    }
    To append more conditions, you can use the && symbol:

    Code:
    if(RSI(12,14)[0] < RSI(12,14)[1] [B]&&[/B] RSI(12,14)[1] < RSI(12,14)[2])
    {
       //is falling
    }
    etc..

    You could create the condition 5 times like this to check 5 bars ago.


    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    558 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X