Moving Average of RSI

Questions about MultiCharts and user contributed studies.
traderwep
Posts: 46
Joined: 02 May 2006

Moving Average of RSI

Postby traderwep » 25 Oct 2006

Is there a way to plot an RSI and a moving average of that RSI in the same indicator pane in multicharts?

Chris
Posts: 150
Joined: 17 Nov 2005

Re: Moving Average of RSI

Postby Chris » 25 Oct 2006

Yes, but you will have to code it manually.

For example if this is your RSI code:

Code: Select all

inputs:
   Price( Close ),
   Length( 14 ),
   OverSold( 30 ),
   OverBought( 70 ),
   OverSColor( Cyan ),
   OverBColor( Red ) ;

variables:
   RSIValue( 0 ) ;

RSIValue = RSI( Price, Length ) ;
 
Plot1( RSIValue, "RSI" ) ;
Plot2( OverBought, "OverBot" ) ;
Plot3( OverSold, "OverSld" ) ;


You can modify it a little bit and use the RSI as the input for your MA:

Code: Select all

inputs:
   Price( Close ),
   Length( 14 ),
   MALength(10),
   PlotMA(true),
   OverSold( 30 ),
   OverBought( 70 ),
   OverSColor( Cyan ),
   OverBColor( Red ) ;

variables:
   RSIValue( 0 ),
   RSIMA   (0);

RSIValue = RSI( Price, Length ) ;
RSIMA = AverageFC(RSIValue, MALength);
 
Plot1( RSIValue, "RSI" ) ;
Plot2( OverBought, "OverBot" ) ;
Plot3( OverSold, "OverSld" ) ;

If PlotMA then
Plot4(RSIMA, "RSIMA");


This should plot a simple ten period Moving Average of the RSI.

Chris

traderwep
Posts: 46
Joined: 02 May 2006

Postby traderwep » 25 Oct 2006

hi chris

thanks, i got it working.

wayne


Return to “MultiCharts”