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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    388 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    258 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    216 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    301 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    268 views
    0 likes
    Last Post CarlTrading  
    Working...
    X