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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    133 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    75 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    117 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    113 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    90 views
    0 likes
    Last Post CarlTrading  
    Working...
    X