Traders Laboratory - View Single Post - Custom Scalper Buy/Sell
View Single Post
  #7 (permalink)  
Old 07-04-2007, 09:53 PM
dovetree dovetree is offline
dovetree has no status.

 
Join Date: Feb 2007
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
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

Reply With Quote