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)
|
Here is a binary indicator called Dual High Low Tide
LRV:=LinearReg(MP(),10);
A1:=If(Ref(HHV(H,10),-1)>LRV AND Ref(LLV(L,10),-1)<LRV AND LRV>Ref(LRV,-1) AND Ref(LRV,-1)>Ref(LRV,-2),-1, If(Ref(HHV(H,10),-1)>LRV AND Ref(LLV(L,10),-1)<LRV AND LRV<Ref(LRV,-1) AND Ref(LRV,-1)<Ref(LRV,-2), 1,0));
LRV2:=LinearReg(MP(),50);
A2:=If(Ref(HHV(H,50),-1)>LRV2 AND Ref(LLV(L,50),-1)<LRV2 AND LRV2>Ref(LRV2,-1) AND Ref(LRV2,-1)>Ref(LRV2,-2),-1.5, If(Ref(HHV(H,50),-1)>LRV2 AND Ref(LLV(L,50),-1)<LRV2 AND LRV2<Ref(LRV2,-1) AND Ref(LRV2,-1)<Ref(LRV2,-2), 1.5,0));
A1;A2;
-1 for short term buy -1.5 for long term buy
1 for short term sell 1.5 for long term sell
|