This is read-only version of AFL library entry. Ability to add user formulas
and comment is only available from members-only area.
Details:
Formula name:
Analytic RSI formula
Author/Uploader:
Dimitris Tsokakis - tsokakis [at] oneway.gr
Date/Time added:
2001-12-22 08:05:37
Origin:
Keywords:
Level:
semi-advanced
Flags:
indicator
DISCLAIMER: Most formulas present in AFL on-line library are submitted
by the users and are provided here on an "as is" and "as available" basis.
AmiBroker.com
makes no representations or warranties of any kind to the contents or the operation
of material presented here. We do not maintain nor provide technical support
for 3rd party formulas. Description:
RSI is an interesting transformation and may be applied
to any variable, not only internally supposed Close.
For this purpose we give here the analytic code for RSI.
To obtain an RSI transformation of another variable Var,
just replace C with Var.
Example:
To find the 14-day RSI of Stochd(14):
/*14-Day RSI of StochD(14)*/
t=14;
Var=Stochd(14);
Up=IIf(Var>Ref(Var,-1),abs(Var-Ref(Var,-1)),0);
Dn=IIf(Var<Ref(Var,-1),abs(Var-Ref(Var,-1)),0);
Ut=Wilders(Up,t);
Dt=Wilders(Dn,t);
RSIt=100*(Ut/(Ut+Dt));
Graph0=RSIt;
An interesting application is in
http://groups.yahoo.com/group/amibroker/message/7628
where the 14-day RSI of MACD() is introduced.
Anthony Faragasso ajf1111 [at] epix.net 2001-12-22 08:51:17
/*Adaptive Zones OB/OS OSCILLATOR*/
************Dimitri's Code************************
*******Place Before code of the Adaptive Zones*********
/*14-Day RSI of MACD()*/
t=14;
Var=MACD();
Up=IIf(Var>Ref(Var,-1),abs(Var-Ref(Var,-1)),0);
Dn=IIf(Var<Ref(Var,-1),abs(Var-Ref(Var,-1)),0);
Ut=Wilders(Up,t);
Dt=Wilders(Dn,t);
RSIt=100*(Ut/(Ut+Dt));
********************End of Dimitri Code**********************
/*Input */
Lookback=60;
PerCent=95;// This line adjust the sensitivity of the zones.
Pds =14;
Osc=RSIt;//(PDS);// insert the result for Dimitri code and ( // ) out
the pds statement.