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)
|
Gann HiLo indicator
HLd:=If(CLOSE>Ref(Mov(H,3,S),-1),1,If(CLOSE<Ref(Mov(L,3,S),-1),-1,0));
HLv:=ValueWhen(1,HLd<>0,HLd);
HiLo:=If(HLv=-1,Mov(H,3,S),Mov(L,3,S));
HiLo;
Highlights tab
LONG
HLd:=If(CLOSE>Ref(Mov(H,3,S),-1),1,If(CLOSE<Ref(Mov(L,3,S),-1),-1,0));
HLv:=ValueWhen(1,HLd<>0,HLd);
HiLo:=If(HLv=-1,Mov(H,3,S),Mov(L,3,S));
Buy:=Cross(C,HiLo);
Sell:=Cross(HiLo,C);
X:=If(BarsSince(Buy)<BarsSince(Sell),1,If(BarsSince(Buy)>BarsSince(Sell),0,1));
X=1
SHORT
HLd:=If(CLOSE>Ref(Mov(H,3,S),-1),1,If(CLOSE<Ref(Mov(L,3,S),-1),-1,0));
HLv:=ValueWhen(1,HLd<>0,HLd);
HiLo:=If(HLv=-1,Mov(H,3,S),Mov(L,3,S));
Buy:=Cross(C,HiLo);
Sell:=Cross(HiLo,C);
X:=If(BarsSince(Buy)<BarsSince(Sell),1,If(BarsSince(Buy)>BarsSince(Sell),0,1));
X=0
Symbols tab
Long
HLd:=If(CLOSE>Ref(Mov(H,3,S),-1),1,If(CLOSE<Ref(Mov(L,3,S),-1),-1,0));
HLv:=ValueWhen(1,HLd<>0,HLd);
HiLo:=If(HLv=-1,Mov(H,3,S),Mov(L,3,S));
Buy:=Cross(C,HiLo);
Sell:=Cross(HiLo,C);
X:=If(BarsSince(Buy)<BarsSince(Sell),1,If(BarsSince(Buy)>BarsSince(Sell),0,1));
X=1 and Ref(X,-1)=0
Short
HLd:=If(CLOSE>Ref(Mov(H,3,S),-1),1,If(CLOSE<Ref(Mov(L,3,S),-1),-1,0));
HLv:=ValueWhen(1,HLd<>0,HLd);
HiLo:=If(HLv=-1,Mov(H,3,S),Mov(L,3,S));
Buy:=Cross(C,HiLo);
Sell:=Cross(HiLo,C);
X:=If(BarsSince(Buy)<BarsSince(Sell),1,If(BarsSince(Buy)>BarsSince(Sell),0,1));
X=0 and Ref(X,-1)=1
|