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

Notification

Icon
Error

Options
Go to last post Go to first unread
rupa  
#1 Posted : Sunday, November 27, 2011 9:09:53 PM(UTC)
rupa

Rank: Newbie

Groups: Registered, Registered Users
Joined: 10/21/2011(UTC)
Posts: 3

Hi, I have written the following formula for DTI_Trade indicator from William Blau's book. But I do not get any output. Can anyone help me? HMU:=If((HIGH-Ref(HIGH,-1))>0 ,(HIGH-Ref(HIGH,-1)),0 ); LMU:=If((LOW-Ref(LOW,-1))<0 ,-(LOW-Ref(LOW,-1)),0 ); Resulta:=HMU-LMU; rr:= Input("first smoothing r" ,1 ,100 ,25 ); ss:= Input("second smoothing s" ,1 ,100 ,13 ); uu:= Input("third smoothing u" ,1,100,1); Value1:= 100*Mov(Mov(Mov(Resulta,rr,E),ss,E),uu,E); Value2:= Mov(Mov(Mov((Abs(Resulta)),rr,E),ss,E),uu,E); Value3 := If(Value20 ,Value1/Value2 ,0 ); HMU1:=If((Ref(HIGH, -1)-Ref(HIGH,-2))>0 ,(Ref(HIGH,-1)-Ref(HIGH,-2)),0 ); LMU1:=If((Ref(LOW,-1)-Ref(LOW,-2))<0 ,-(Ref(LOW,-1)-Ref(LOW,-2)),0 ); Resultb:=HMU1-LMU1; Value11:= 100*Mov(Mov(Mov(Resultb,rr,E),ss,E),uu,E); Value21:= Mov(Mov(Mov((Abs(Resultb)),rr,E),ss,E),uu,E); Value31 := If(Value210 ,Value11/Value21 ,0 ); Value4 := If(Value3 - Value31 > 0 AND Value3 > 0 , Value3, 0); Value5 := If(Value3 - Value31 < 0 AND Value3 < 0 , Value3, 0); Result := Value4 + Value5; Regards Rupa
jjstein  
#2 Posted : Sunday, November 27, 2011 9:28:10 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
You're not plotting anything.

Make the last line:

Result;


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.