Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Try :
{Long}
1BCD:=Dema(C,10)> Dema(C,20)AND Ref(Dema(C,10),-1)< Ref(Dema(C,20),-1);
2BCD:=C<LowestSince(1,Ref(Dema(C,10),-1)< Ref(Dema(C,20),-1)AND Ref(Dema(C,10),-2)> Ref(Dema(C,20),-2),C)+0.030;
1SCD:=Dema(C,10)<Dema(C,20) AND Ref(Dema(C,10),-1)>Ref(Dema(C,20),-1);
2SCD:=C>HighestSince(1,Ref(Dema(C,10),-1)>Ref(Dema(C,20),-1)AND Ref(Dema(C,10),-2)<Ref(Dema(C,20),-2),C)-0.030;
LE:=1BCD or 2BCD;
LX:=0;
SE:=1SCD or 2SCD;
SX:=0;
B:= ExtFml("ForumDll.Latch",LE,LX,SE,SX);
B = 1 AND Ref(B,-1) <> 1
{Short}
1BCD:=Dema(C,10)> Dema(C,20)AND Ref(Dema(C,10),-1)< Ref(Dema(C,20),-1);
2BCD:=C<LowestSince(1,Ref(Dema(C,10),-1)< Ref(Dema(C,20),-1)AND Ref(Dema(C,10),-2)> Ref(Dema(C,20),-2),C)+0.030;
1SCD:=Dema(C,10)<Dema(C,20) AND Ref(Dema(C,10),-1)>Ref(Dema(C,20),-1);
2SCD:=C>HighestSince(1,Ref(Dema(C,10),-1)>Ref(Dema(C,20),-1)AND Ref(Dema(C,10),-2)<Ref(Dema(C,20),-2),C)-0.030;
LE:=1BCD or 2BCD;
LX:=0;
SE:=1SCD or 2SCD;
SX:=0;
B:= ExtFml("ForumDll.Latch",LE,LX,SE,SX);
B = -1 AND Ref(B,-1) <> -1
You need the forum dll latch for this to work.
Patrick :mrgreen:
|