[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Metastockusers] Re: Filter Help



PureBytes Links

Trading Reference Links

In this formula

Uptrend:=C>Mov(C,5,E) AND
AroonUp(5)>AroonDown(5) AND
(PDI(5))>(MDI(5));

downtrend:=C<Mov(C,5,E) AND
AroonUp(5)<AroonDown(5) AND
(PDI(5))<(MDI(5));

A:=If(Uptrend,1,If(Downtrend,-1,0));


A=0 {Out}
A=1{uptrend}
A=-1{Downtrend}{Highlights in the expert tab}

A=0 and Ref(A,-1)>0{exit long} 
A=0 and Ref(A,-1)<0{exit short} 
A=1 and Ref(A,-1)<0{enter long}
A=-1 and Ref(A,-1)>-1{enter short}{Symbols in the expert tab}

Uptrend needs all 3 conditions to be true before it signals 1,
Downtrend needs all 3 conditions to be true before it signals -1, 
else it will signal 0.


Now if you alter the "A" variable to

A:=If(Uptrend,1,If(Downtrend,-1,Prev));

Once a buy signal fires, it will stay until the sell signal fires.
A true Stop and reverse system, always in the market


--- In Metastockusers@xxxxxxxxxxxxxxx, "Dusant" <cooldush@xxxx> 
wrote:
> Henry,
> If you don't mind, can you also explain why the last line
> A=0.
> Thq
> Dusant
> 
> > 
> > -----Original Message-----
> > From: Henry Z Kaczmarczyk [mailto:henry1224@x...]
> > Sent: Tuesday, September 16, 2003 7:46 PM
> > To: Metastockusers@xxxxxxxxxxxxxxx
> > Subject: [Metastockusers] Re: Filter Help
> > 
> > Sam,
> > 
> > here is the formula
> > 
> > Uptrend:=C>Mov(C,5,E) AND
> > AroonUp(5)>AroonDown(5) AND
> > (PDI(5))>(MDI(5));
> > 
> > downtrend:=C<Mov(C,5,E) AND
> > AroonUp(5)<AroonDown(5) AND
> > (PDI(5))<(MDI(5));
> > 
> > A:=If(Uptrend,1,If(Downtrend,-1,0));
> > A=0
> >


------------------------ Yahoo! Groups Sponsor ---------------------~-->
ReplayTV: Control live television
Special Sale: 50% off ReplayTV
CNet Ranked #1 over Tivo!
http://us.click.yahoo.com/aUMW7B/A6qGAA/ySSFAA/zMEolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/