Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
Indicator
Per1:=30;
RWH:=(H-Ref(L,-Per1))/(ATR(Per1)*Sqrt(Per1));
RWL:=(Ref(H,-Per1)-L)/(ATR(Per1)*Sqrt(Per1));
Pk:=Mov((RWH-RWL),3,W);
Val1.5:=If(Pk>0,HHV(H-1.5*ATR(5),10),LLV(L+1.5*ATR(5),10));
Val1.5;
Highlights Tab
Long
Per1:=30;
RWH:=(H-Ref(L,-Per1))/(ATR(Per1)*Sqrt(Per1));
RWL:=(Ref(H,-Per1)-L)/(ATR(Per1)*Sqrt(Per1));
Pk:=Mov((RWH-RWL),3,W);
Val1.5:=If(Pk>0,HHV(H-1.5*ATR(5),10),LLV(L+1.5*ATR(5),10));
Buy:=C>Val1.5;
Sell:=C<Val1.5;
i:=Cum(buy>-1 AND sell>-1)=1;
x:=BarsSince(i OR buy)<=BarsSince(i OR sell)=0;
X=0
Short
Per1:=30;
RWH:=(H-Ref(L,-Per1))/(ATR(Per1)*Sqrt(Per1));
RWL:=(Ref(H,-Per1)-L)/(ATR(Per1)*Sqrt(Per1));
Pk:=Mov((RWH-RWL),3,W);
Val1.5:=If(Pk>0,HHV(H-1.5*ATR(5),10),LLV(L+1.5*ATR(5),10));
Buy:=C>Val1.5;
Sell:=C<Val1.5;
i:=Cum(buy>-1 AND sell>-1)=1;
x:=BarsSince(i OR buy)>=BarsSince(i OR sell)=0;
X=0
Symbol Tab
Long
Per1:=30;
RWH:=(H-Ref(L,-Per1))/(ATR(Per1)*Sqrt(Per1));
RWL:=(Ref(H,-Per1)-L)/(ATR(Per1)*Sqrt(Per1));
Pk:=Mov((RWH-RWL),3,W);
Val1.5:=If(Pk>0,HHV(H-1.5*ATR(5),10),LLV(L+1.5*ATR(5),10));
Buy:=C>Val1.5;
Sell:=C<Val1.5;
i:=Cum(buy>-1 AND sell>-1)=1;
x:=BarsSince(i OR buy)<=BarsSince(i OR sell)=0;
X=0 AND Ref(X,-1)>0
Short
Per1:=30;
RWH:=(H-Ref(L,-Per1))/(ATR(Per1)*Sqrt(Per1));
RWL:=(Ref(H,-Per1)-L)/(ATR(Per1)*Sqrt(Per1));
Pk:=Mov((RWH-RWL),3,W);
Val1.5:=If(Pk>0,HHV(H-1.5*ATR(5),10),LLV(L+1.5*ATR(5),10));
Buy:=C>Val1.5;
Sell:=C<Val1.5;
i:=Cum(buy>-1 AND sell>-1)=1;
x:=BarsSince(i OR buy)>=BarsSince(i OR sell)=0;
X=0 AND Ref(X,-1)>0
|