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

Re: Containment



PureBytes Links

Trading Reference Links

{Ver. 2.0}
For examples of code where a signal depends on two events in sequence, see
"Equis - Chande Momentum Oscillator" Expert on your machine. Below are the
buy and sell lines.

{Buy}
Cross(BarsSince(Cross(-50,CMO(C,20))),BarsSince(Cross(CMO(C,20),Mov(CMO(C,20
),9,S))))
{Sell}
Cross(BarsSince(Cross(CMO(CLOSE,20),50 )),BarsSince(Cross(Mov(CMO(CLOSE,20),
9,S),CMO(CLOSE,20))))

It takes the form of:
Cross(BarsSince(Cross(A,B),BarsSince(Cross(C,D))))
{I believe A & B have to cross, then C & D have to cross in that order for
the signal to be made.}

or
Cross(BarsSince(Cross(A,B),BarsSince(Cross(A,D))))
{Just put A, B, C, D in the order you want this thing to fire.}

To see if two sets of lines cross on the same day, try something like:
BarsSince(Cross(A,B)) =0 AND BarsSince(Cross(A,C))=0

-Corey Saxe



----- Original Message -----
From: "Lionel Issen" <lissen@xxxxxxxxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: Sunday, December 09, 2001 7:28 PM
Subject: Re: Containment


> Corey:
> Could you repost this message.  Some of the words on the left side got
> clipped.
> Lionel Issen
> lissen@xxxxxxxxxxxxxx
> ----- Original Message -----
> From: "Corey Saxe" <csaxe@xxxxxxx>
> To: <metastock@xxxxxxxxxxxxx>
> Sent: Sunday, December 09, 2001 8:01 PM
> Subject: Re: Containment
>
>
> > For examples of code where a signal depends on two events in sequence,
see
> > "Equis - Chande Momentum Oscillator" Expert on your machine. Below are
the
> > buy and sell lines.
> >
>
>