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

RE: use IF statement, return nul value



PureBytes Links

Trading Reference Links

If your formula permits, you can use the closing price as the null value.
This doesn't throw off the scaling like a zero value does.

example: if( expr, true, close);

Hope this helps.
Michael

-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx
[mailto:owner-metastock@xxxxxxxxxxxxx]On Behalf Of neo
Sent: Friday, January 26, 2001 3:20 PM
To: metastock@xxxxxxxxxxxxx
Subject: RE: use IF statement, return nul value


Bob

I tried everything on this a little while ago and called MS support. It is
not possible. What I has to do what make up a null indicator that is 0. I
then plot this as the last indicator with a gray line and this covers up the
0 points.

neo


-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx
[mailto:owner-metastock@xxxxxxxxxxxxx]On Behalf Of Bob Webb
Sent: Thursday, January 25, 2001 9:29 AM
To: metastock@xxxxxxxxxxxxx
Subject: use IF statement, return nul value


I want to use an IF Statement in an indicator.

But I want the "else" part of the statement to return nothing... a nul
value, and not a 0 (zero) nor anything else.

Reason: What I want to plot is a point over the bar when a condition is
met, and to plot nothing when the condition is not met. If you put a 0
(zero) as the "else" part of the statement, then the indicator plots a zero
at the bottom of the graph; I don't want this.

Can you help?

Bob.


==============+==============
Robert L. Webb
Webb.Bob@xxxxxxxx
===============+=============