[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: is Chande/Kroll stochastic RSI (StochRSI) indicator available in Amibroker?



PureBytes Links

Trading Reference Links

hi,

I don't know the author...

reinsley

/*
The very known indicator created by Robert Miner based on StochRSI.
Use it as a Stochastic or to help
you counting waves. Set MAType=1 if you want the simple version, or
MAType=2 for exponential.
*/
/* DT Oscillator
**
** AFL translation by X-Trader
** http://www.x-trader.net
**
*/

PeriodRSI= Param("PeriodRSI", 13, 1, 250, 1);
PeriodStoch=Param("PeriodStoch", 8, 1, 250, 1);
MAType=Param("MAType", 1, 1, 2, 1);
PeriodSK=Param("PeriodSK", 5, 1, 250, 1);
PeriodSD=Param("PeriodSD", 3, 1, 250, 1);
Upper=Param("Upper", 70, 50, 100, 1);
Lower=Param("Lower", 30, 0, 50, 1);


StoRSI= 100*(( RSI( PeriodRSI) - LLV( RSI( PeriodRSI ) , PeriodStoch )
) / ( (
HHV( RSI( PeriodRSI) , PeriodStoch ) ) - LLV(RSI( PeriodRSI ),
PeriodStoch ) ));

if(MAType==1)
   {
      SK=MA(StoRSI,PeriodSK);
      SD=MA(SK,PeriodSD);
   }

if(MAType==2)
   {
      SK=EMA(StoRSI,PeriodSK);
      SD=EMA(SK,PeriodSD);
   }

Plot(SK,"DTOscSK",ParamColor( "ColorSK", colorBlueGrey ),styleLine);
Plot(SD,"DTOscSD",ParamColor( "ColorSD", colorWhite ),styleDashed);
Plot(0,"ZeroLine",ParamColor( "ColorZero", colorWhite ),styleLine);
Plot(Upper,"Upper",ParamColor( "ColorUpper", colorRed ),styleLine);
Plot(Lower,"Lower",ParamColor( "ColorLower", colorGreen ),styleLine);





--- In amibroker@xxxxxxxxxxxxxxx, "sailorvea" <perl168@xxx> wrote:
>
> Hi all,
> 
> Sorry for asking a newbie question. Do you know if the stochastic RSI
> (stochrsi) indicator as defined by stockcharts.com (see link below),
> which is invented by Chande and Kroll, is available in AB package
> without needing to program it?  If it isn't available, is there code
> for it available for download or sharing?  Thank you!
> 
>
http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:stochrsi
>



------------------------------------

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/