I have only Metastockformel. Who can help with to create as MT4?
DeMark's REI Indicator
x1:=If(Ref(H,-2),< ,Ref(C,-7),
If(Ref(H,-2),<,Ref(C,-8),
If(H,<,Ref(L,-5),
If(H,<,Ref(L,- 6),0,1),1),1),1);
x2:=If(Ref(L,-2),> ,Ref(C,-7),
If(Ref(L,-2),>,Ref(C,-8),
If(L,>,Ref(H,-5),
If(L,>,Ref(H,- 6),0,1),1),1),1);
SubValues:=(x1) * (x2) * (H-Ref(H,-2) ) +((x1) * (x2) * (L-Ref(L,-2)) );
AbsDailyVal:=(Abs(H-Ref(H,-2)) + Abs(L-Ref(L,-2)));
Sum((SubValues),8) / Sum((AbsDailyVal),8)
from:
http://trader.online.pl/MSZ/e-w-DeMark_Indicator.html
thanks to all