Thank you for your reply. I have another problem.
De Mark qualifies a buy entry for his REI indicator thus(indicator will plot 1)
1)The TD ReI must be below -40 for six or fewer periods
2)An up close day
3)Opening price on trading day after up close day<= up close days high
4)Same trading day high must exceed previous trading day True High

I coded it thus

A:=BarsSince(Fml( "De Marks REI")<-40)<=6;
B:=BarsSince( Fml( "Up Close")=1);
Z:=ValueWhen(1,(B=1),H);
X:=(Ref(O,-W)<=Z);
Y:=Ref(H,-W)>Q);
Q:=ValueWhen(1,(B+1), Fml( "True High"));
W:=B+1;
J:=A AND X AND Y;
{Plot}
J;

Getting Debugging errors--Metastock not recognizing letter as period in Ref 
function

Can you help? I am at my wits end.

Reply via email to