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

To: MetaStock



PureBytes Links

Trading Reference Links

John

I think we have all tried every variation. I think MetaStock needs to
include at least an If Then function and perhaps a null function as well.

neo

-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx
[mailto:owner-metastock@xxxxxxxxxxxxx]On Behalf Of jhmtn
Sent: Monday, December 25, 2000 12:58 AM
To: metastock@xxxxxxxxxxxxx
Subject: Re: Need Help On If function


J.

Nope, I tried that an it doesn't work; it returns a 0 when you plot forward
by x days.

I don't know how the inner workings of the code is set up.  But apparently,
it
is set up to provide a continuous rather than a discontinuous fuction.  Put
another way, it is set up to always plot a value, even if that value is
zero.  It may be beyond the current design limits to return a null or "no
point plot" value.

I think the thing to ask for is a "null value" function return which does
not plot!

John

----- Original Message -----
From: "j seed" <jseed_10@xxxxxxxxxxx>
> neo,
>
> I'm going to give you a "wild" suggestion that may just work and honestly
I
> have not tried it myself but have been a victim of the problem. There is
one
> metastock indicator that does not plot...that is the "ref" statement when
it
> is misused! By misused, I mean that you cannot plot into the future so
there
> is no plot. My suggestion is to use a ref({your formula},+6) wherever you
> wish the no plot. Remember the reference must be to the positive(looks
> forward) not the negative(looks back). I openly admit this is off the wall
> but it might do the trick.
>
> J.
>
>
> >From: "neo" <neo1@xxxxxxxxx>
> > >>>Neo
> >The 'If' function is simply a true/false function.
> >If, as an example, you wanted to know the volume on up days:
> >If(C>O,V,0)
> >and you wanted to eliminate the '0' you can simply rewrite the formula as
> >V*(C>O)
> >This will give you the same result. The true statement returns a 1.
> >Therefore
> >multiplication of the true expression by the desired result will give you
> >the
> >desired result and nothing else.
> >
> >Jim<<<
> >
> >Jim
> >
> >Interesting way to look at it but it seems it would result in the same
> >problem. If the logical expression is false then the entire expression
> >would
> >return a 0 which is the same problem. I want a simple If Then rather than
> >an
> >If Then Else so that if the expression is not true then nothing would be
> >plotted. I think MS needs to add an If Then expression. This way if the
> >expression were true then the formula would be executed. If it were not
> >true
> >then nothing would happen rather than have a 0 returned.
> >
> >Thanks, neo
> >
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>