Dosn't seem to work. I am talking of the final signal.
I tried out both codes---both Mr.Roy's and MS Support---but the results are erratic.
De Mark is too experienced an analyst to come up with a faulty entry condition.
Obviously the code must be wrong somewhere.
Here are my custom indicators
De Marks REI (Copied from the net---more or less tested accurate)
TD1:= H-Ref(H,-2);
TD2:= L-Ref(L,-2);
TD3:= If((H>=Ref(L,-5) OR H>=Ref(L,-6)) AND (L<=Ref(H,-5) OR L<=Ref(H,-6)),1,0);
TD4:= If((Ref(H,-2)>=Ref(C,-7) OR Ref(H,-2)>=Ref(C,-8)) AND (Ref(L,-2)<=Ref(C,-7) OR Ref(L,-2)<=Ref(C,-8)),1,0);
TD6:= (TD1) + (TD2);
TD5:= If((TD3) + (TD4)>=1, (TD6), 0);
TD7:= Abs(TD1) + Abs(TD2);
TDREI:=((TD5) + Ref(TD5,-1) + Ref(TD5,-2) + Ref(TD5,-3) + Ref(TD5,-4))/ (TD7 + Ref(TD7,-1) + Ref(TD7,-2) + Ref(TD7,-3) + Ref(TD7,-4))*100;
TDREI;
True High
Max(H,Ref(C,-1))
Up Close
C>Ref(C,-1)
Here is the text from Jason Perls book on De Mark Indicators
To Initiate a Buy Signal:
1. The TD ReI must be below -40 for six or fewer periods;
2. There must be a lower close than the close of the prior price bar;
3. The open of the next price bar must be less than, or equal to, the two prior price
highs; and
4. The market must trade above the open and post a high above either one of the
prior two price highs
In De Marks own book --condition 3 is an Up Close instead of a down close. I have experimented with both---results still erratic