PureBytes Links
Trading Reference Links
|
I have been down this road before. Would this not plot as a 1 in an If Then
Else expression?
neo
-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx
[mailto:owner-metastock@xxxxxxxxxxxxx]On Behalf Of Liu, Marshall
Sent: Friday, January 26, 2001 6:35 PM
To: 'metastock@xxxxxxxxxxxxx'
Subject: RE: use IF statement, return nul value
I think you can use the alert function:
Press Help then select Index and type in Alert:
SYNTAX alert( EXPRESSION, PERIODS )
FUNCTION Extends a "true" result of EXPRESSION for the specified
number of periods. This true result is held true over the
number of periods specified even if a "false" result is generated.
EXAMPLE alert( cross(rsi(14),70),5 )
SEE ALSO See Using the Alert() Function
for information on using the Alert function within a system test.
Thanks,
Marshall M. Liu
-----Original Message-----
From: neo [mailto:neo1@xxxxxxxxx]
Sent: Friday, January 26, 2001 12: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
===============+=============
|