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

Re: Condition is NOT true



PureBytes Links

Trading Reference Links

Philip,
Have you thought about using the "if" statement?
If(condition true),1 (else condition false),-1 (else no condition),0

You can set the parameters as you like, also you can look for a second true 
condition based on the results of your test or a second condition. Just some 
thoughts.

J.

>From: Philip <pschmi02@xxxxxxxxxxx>
>Reply-To: metastock@xxxxxxxxxxxxx
>To: metastock@xxxxxxxxxxxxx
>Subject: Re: Condition is NOT true
>Date: Thu, 09 Mar 2000 09:06:38 -0500
>
>Glen,
>
>Thanks for responding.  Yes, the method you describe is the way I'll have 
>to
>handle it.  Since some of the conditions I use are lengthy, I was hoping 
>there
>would be a simpler way, a way of negating a number of elements all at the 
>same
>time.
>
>Best regards,
>Philip
>
>
>Glen Wallace wrote:
>
> > Philip:
> >
> > Perhaps I'm misunderstanding your question, but if you describe "rising"
> > using the ">" operator, as in Mov(C,21,E) > Ref(Mov(C,21,E), -5) for
> > example, couldn't you describe "isn't rising" using the "<=" operator, 
>as
> > in ADX(13) <= Ref(ADX(13), -5)?
> >
> > Hope this helps.
> >
> > ----- Original Message -----
> > From: "Philip" <pschmi02@xxxxxxxxxxx>
> > To: <metastock@xxxxxxxxxxxxx>
> > Sent: Wednesday, March 08, 2000 6:28 PM
> > Subject: Condition is NOT true
> >
> > > When writing Metastock formula syntax, is there a way to specify that 
>a
> > > condition should NOT obtain?
> > >
> > > Examples:
> > >
> > > EMA(21) is rising, but the ADX(13) ISN'T.
> > >
> > > Such an such an oscillator is above (say) 80, but this other set of
> > > circumstances (expanding on it now) is NOT the case.
> > >
> > > Or must I spell out which conditions I want the second 
>element/elements to
> > > fulfill in terms of "true?"
> > >
> > > Philip
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com