Dear Roy,
I was trying to write an exploration for Countdown buy C the idea being to buy when Countdown buy C =1
I had written
Fml( "TD Count Down Buy C") =1 in the filter column but the filter keeps on rejecting 100% of the securities with the message "Results of the formula not defined on calculation date"
The background for the exploration is listed below:=
I have 3 indicators
TD Count Down Buy C:
If(Fml( "TD Count Down Buy A"
)>=14 AND CLOSE>Ref(HIGH,-2),1,0)
TD Count Down Buy A:
Cum(If(CLOSE<Ref(CLOSE,-2),1,0))-ValueWhen(1,Ref(
Fml( "<TD - SetUp-buy>" ), 1)=1,
Cum(If(CLOSE<Ref(CLOSE,-2),1,0)))
TD - SetUp-buy:
TD1:=If(CLOSE<Ref(CLOSE,-4),1,0);
TD2:=If(TD1=1 AND Ref(TD1,-1)=1 AND
Ref(TD1,-2)=1 AND Ref(TD1,-3)=1 AND Ref(TD1,-4)=1 AND Ref(TD1,-5)=1 AND
Ref(TD1,-6)=1 AND Ref(TD1,-7)=1 AND Ref(TD1,-8)=1, 1,0);
TD3:=if(Ref(c,-9)>=Ref(c,-13),1,0);
{>= may be changed in >}
TD4:=if(TD2=1 and TD3=1,1,0);
TD5:=if(high>=Ref(LLV(Low,5),-3),1,0);
D8:=if(ref(TD4,1)=1 and TD5=1,1,0);
D9:=if(TD4=1 and TD5=1 and
ref(D8,-1)<>1,1,0);
D10:=if(ref(TD4,-1)=1 and TD5=1 and
ref(D8,-2)<>1 and ref(D9,-1)<>1,1,0);
D11:=if(ref(TD4,-2)=1 and TD5=1 and
ref(D8,-3)<>1 and ref(D9,-2)<>1 and ref(D10,-1)<>1,1,0);
D12:=if(ref(TD4,-3)=1 and TD5=1 and ref(D8,-4)<>1
and ref(D9,-3)<>1 and ref(D10,-2)<>1 and ref(D11,-1)<>1,1,0);
D13:=if(ref(TD4,-4)=1 and TD5=1 and
ref(D8,-5)<>1 and ref(D9,-4)<>1 and ref(D10,-3)<>1 and
ref(D11,-2)<>1 and ref(D12,-1)<>1,1,0);
D14:=if(ref(TD4,-5)=1 and TD5=1 and
ref(D8,-6)<>1 and ref(D9,-5)<>1 and ref(D10,-4)<>1 and
ref(D11,-3)<>1 and ref(D12,-2)<>1 and ref(D13,-1)<>1,1,0);
D15:=if(ref(TD4,-6)=1 and TD5=1 and
ref(D8,-7)<>1 and ref(D9,-6)<>1 and ref(D10,-5)<>1 and
ref(D11,-4)<>1 and ref(D12,-3)<>1 and ref(D13,-2)<>1 and ref(D14,-1)<>1,1,0);
D16:=if(ref(TD4,-7)=1 and TD5=1 and
ref(D8,-8)<>1 and ref(D9,-7)<>1 and ref(D10,-6)<>1 and
ref(D11,-5)<>1 and ref(D12,-4)<>1 and ref(D13,-3)<>1 and
ref(D14,-2)<>1 and ref(D15,-1)<>1,1,0);
D17:=if(ref(TD4,-8)=1 and TD5=1 and
ref(D8,-9)<>1 and ref(D9,-8)<>1 and ref(D10,-7)<>1 and
ref(D11,-6)<>1 and ref(D12,-5)<>1 and ref(D13,-4)<>1 and
ref(D14,-3)<>1 and ref(D15,-2)<>1 and ref(D16,-1)<>1,1,0);
SetUp:=D8+D9+D10+D11+D12+D13+D14+D15+D16+D17;
SetUp
Regards,
Dr.Chatterjee