Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Orginal RSI?

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

    Orginal RSI?

    Looking for the original RSI, not the Wilders version...

    It would be
    RSI = 100 - (100 / (1+RS))
    RS = n period average of up closes / n period average of down closes


    with no smoothing... is this available somewhere? Can it be easily coded somehow from this if not?


    avgDown.Set((avgDown[1] * (Period - 1) + down[0]) / Period);
    avgUp.Set((avgUp[1] * (Period - 1) + up[0]) / Period);
    }

    double rs = avgUp[0] / (avgDown[0] == 0 ? 1 : avgDown[0]);
    double rsi = 100 - (100 / (1 + rs));

    Thanks for any help!
    R.T.

    #2
    Hi RT,

    You can work from the existing RSI and save a copy. Click Tools > Edit NinjaScript > Indicator > Double click RSI.

    Right Click > Save as.

    I'm not sure about the specific changes you would have to make but hopefully a community member can offer input here. If you wanted without smoothing, this is the Avg plot.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the help Ryan!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      43 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      25 views
      0 likes
      Last Post PaulMohn  
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      162 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      98 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      158 views
      2 likes
      Last Post CaptainJack  
      Working...
      X