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

Re: Expert Advisor "buy/sell signal" question



PureBytes Links

Trading Reference Links

I have been able to use a similar one to the one here but use

Cross(longentry,shortentry).

This appears to work fine and can be adjusted for different categories of
exit/entry.

----- Original Message -----
From: "Glen Wallace" <gcwallace@xxxxxxxx>
To: "MetaStock listserver" <metastock@xxxxxxxxxxxxx>
Sent: Friday, July 27, 2001 7:10 PM
Subject: Re: Expert Advisor "buy/sell signal" question


> Jeff:
>
> You can use
>
> LongEntry:=  {your long entry parameters};
> ShortEntry:= {your short entry parameters};
> LongEntry AND BarsSince(Ref(LongEntry, -1)) >=
>         BarsSince(Ref(ShortEntry, -1))
>
> although it will not plot the very first long entry in the
> data series.
>
> Hope this helps.
>
>
>
> ----- Original Message -----
> From: "Jeff Haferman" <Jeff_Haferman@xxxxxxxxx>
> To: <metastock@xxxxxxxxxxxxx>
> Sent: Friday, July 27, 2001 9:15 AM
> Subject: Expert Advisor "buy/sell signal" question
>
> > In the expert advisor, when I am generating a buy/sell
> > signal, how do I tell Metastock to generate
> > the signal only if the preceding signal was in the
> > opposite direction?
> >
> > eg I only want a buy arrow if the previous arrow was a
> > sell... I don't want to see several buy arrows in
> > succession.
> >
> > Thx,
> > Jeff
>
>