• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EMA to SMA in RSI default.

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

  • Swing123
    replied
    Works great. Thank you.

    Leave a comment:


  • Swing123
    replied
    Fantastic! Thanks Paul.

    Leave a comment:


  • NinjaTrader_PaulH
    replied
    Hello Swing123,

    After further review, I missed that while the RSI is using an SMA it also has been coded using exponential constants.

    If you want to change this in the code, that is possible.

    To make the change, you would need to create and rename a copy of the RSI.

    In the copied RSI, look for the last line of Avg[0] = constant1 * value0 + constant2 * Avg[1];

    You can change that line to Avg[0] = SMA(Default, Smooth)[0];

    After making the change, right mouse click on the code to compile.

    Leave a comment:


  • Swing123
    replied
    I'm talking about the "smooth" average that plots over the top of the RSI in the default indicator. That is an ema. If you open an RSI - it has a standard 3 period smoothing (i.e. a 3 period moving average). If you plot that as visable and then plot a seperate sma over the top of the rsi (based on the rsi), you find that the "built it" average is an ema. Plot a seperate ema and they are identical.

    Leave a comment:


  • NinjaTrader_PaulH
    replied
    Hello Swing123,

    Thanks for your post.

    The RSI already uses an SMA.

    Leave a comment:


  • Swing123
    started a topic EMA to SMA in RSI default.

    EMA to SMA in RSI default.

    Hi
    I want to change the smoothed ave that is plotting over the RSI in the default RSI indicator from an EMA to an SMA. Can someone advise what i need to change in the code and where to make it do to this please?
    Thanks
    Swing

Latest Posts

Collapse

Topics Statistics Last Post
Started by manxtrader75, Today, 11:42 AM
1 response
3 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by samirmerch, Yesterday, 10:20 AM
11 responses
54 views
0 likes
Last Post NinjaTrader_Tabor  
Started by Dennis W, Today, 11:02 AM
2 responses
9 views
0 likes
Last Post Dennis W  
Started by Johnny Santiago, Today, 10:05 AM
1 response
13 views
0 likes
Last Post Johnny Santiago  
Started by madhouse, Today, 09:44 AM
1 response
24 views
0 likes
Last Post NinjaTrader_Spencer  
Working...
X