logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
sennal999  
#1 Posted : Sunday, February 21, 2010 11:40:10 AM(UTC)
sennal999

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/30/2007(UTC)
Posts: 11

Dear All,

I read Robert Miner's book (High Probability Trading Strategies) recently.
Could anyone help me to find out DT Oscillator Indicator for metastock

senthil kumar.M

johnl  
#2 Posted : Sunday, February 21, 2010 7:00:10 PM(UTC)
johnl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/7/2005(UTC)
Posts: 602


I think it is something like:

PeriodRSI:= Input("PeriodRSI",1,250,13);
PeriodStoch:=Input("PeriodStoch",1,250,8);
StoRSI:= 100*(( RSI( PeriodRSI) - LLV( RSI( PeriodRSI ) , PeriodStoch ) ) / ( (
HHV( RSI( PeriodRSI) , PeriodStoch ) ) - LLV(RSI( PeriodRSI ), PeriodStoch ) )
);
StoRSI
sennal999  
#3 Posted : Monday, February 22, 2010 9:23:14 AM(UTC)
sennal999

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/30/2007(UTC)
Posts: 11

Thanks johnl, I am clear, I give u amibroker code. I will help. /* 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", colorBlue ),styleLine); Plot(SD,"DTOscSD",ParamColor( "ColorSD", colorBlack ),styleDashed); Plot(0,"ZeroLine",ParamColor( "ColorZero", colorBlack ),styleLine); Plot(Upper,"Upper",ParamColor( "ColorUpper", colorRed ),styleLine); Plot(Lower,"Lower",ParamColor( "ColorLower", colorGreen ),styleLine);
johnl  
#4 Posted : Monday, February 22, 2010 7:03:59 PM(UTC)
johnl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/7/2005(UTC)
Posts: 602


How about:


PeriodRSI:=Input("PeriodRSI",1,250,13);
PeriodStoch:=Input("PeriodStoch",1,250,8);
MAType:=Input("MAType",1,2,1);
PeriodSK:=Input("PeriodSK",1,250,5);
PeriodSD:=Input("PeriodSD",1,250,3);
{------------------------------------}
StoRSI:= 100*((RSI(PeriodRSI)-LLV(
RSI(PeriodRSI),PeriodStoch))/((
HHV( RSI(PeriodRSI),PeriodStoch)) -
LLV(RSI(PeriodRSI),PeriodStoch)));
{---------------------------------}
SK:=If(MaType=1,
Mov(StoRSI,PeriodSK,S),
Mov(StoRSI,PeriodSK,E));
SD:=If(MaType=1,
Mov(SK,PeriodSD,S),
Mov(SK,PeriodSD,E));
{--------------------------------}
SK;SD
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.