Thank you for your reply. I reworked the code thus A:=BarsSince(Fml( "De Marks REI")<-40)<=6; B:=BarsSince( Fml( "Up Close")=1); D:=B+1;
Z:=ValueWhen(1,(B=1),H);
X:=Ref(O,-D)<=Z;
Q:=ValueWhen(1,(B+1), Fml( "True High"));
Y:=Ref(H,-D)>Q);
J:=A AND X AND Y;
{Plot}
J;
The Debugging Error Metastock gives is that it refuses to recognize a character
instead of a numerical value in the Ref function---'This variable or expression
must contain only constant data'
Regards
Sourav
