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:
The D_oscillator
Author/Uploader:
Dimitris Tsokakis - tsokakis [at] oneway.gr
Date/Time added:
2003-06-30 04:12:16
Origin:
Keywords:
Level:
medium
Flags:
system,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:
The body of a candle C-O is divided by H+L to create a body to size ratio. To avoid any noise apply repetitive DEMA smoothing. Finally apply the RSI transformation to create the D_oscillator. The ^NDX OHLC data are used to produce Buy/Sell signals with interesting results for US stocks and the main European indexes. Equity curves seem to be independent of bullish/bearish environment. See also
http://groups.yahoo.com/group/amibroker/message/43405
Formula:
// The D_oscillator and its application, by D. Tsokakis, June 2003
O=Foreign("^NDX","O");
H=Foreign("^NDX","H");
L=Foreign("^NDX","L");
C=Foreign("^NDX","C");
t0=10;
R0=DEMA((C-O)/(H+L),t0);
R0=DEMA(R0,T0);
R0=DEMA(R0,T0);
R0=DEMA(R0,T0);
R0=DEMA(R0,T0);
R0=DEMA(R0,T0);
R0=DEMA(R0,T0);
R0=DEMA(R0,T0);
R0=DEMA(R0,T0) ;
R0=DEMA(R0,T0) ;
D_oscillator=RSIA(R0,2*T0);
X=30;Y=Optimize("Y",75,60,80,5);
Buy=Cross(D_oscillator,X);Sell=Cross(D_oscillator,Y);
Buy=ExRem(Buy,Sell);Sell=ExRem(Sell,Buy);
// STOP=Optimize("STOP",20,20,100,20);ApplyStop(0,1,STOP,1);
Plot(D_oscillator,"",1,1);Plot(30,"",8,1);Plot(75,"",8,1);
Title=Name()+", D_oscillator = "+WriteVal(D_oscillator,1.2);
Comments:
coolkal
2007-09-17 10:29:47
Why H+L? The bar/candle size will be given by H-L.