|
Re: TTM Scalper Buy/Sell
Hi Biegea I don't believe your code is marking the paint bars correctly. TTm scalper paints a bar after 3 consecutive higher or lower closes and does not paint anyfurther bars until a revers signal is acquired.
I am new to easy language but have coded this in metastock below is the code.
The code for higher closes in the highlights Tab
BC:=C>Ref(C,-1) AND Ref(C,-1)>Ref(C,-2);
SC:=C<Ref(C,-1) AND Ref(C,-1)<Ref(C,-2);
X:=If(BC=1,1,If(SC=1,0,PR EV));
Cross(X,0.5);
Here is the one for the lower closes:
BC:=C>Ref(C,-1) AND Ref(C,-1)>Ref(C,-2);
SC:=C<Ref(C,-1) AND Ref(C,-1)<Ref(C,-2);
X:=If(BC=1,1,If(SC=1,0,PR EV));
Cross(0.5,X);
I have toruble coverting to EL so far
|