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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    45 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    14 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X