[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: If Then function
Yes
The data array would be undefined if the statement were not true and nothing
would be plotted. The advantage to this is that we can break an indicator
into 2 or more parts to add color to the indicator.
neo
-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx
[mailto:owner-metastock@xxxxxxxxxxxxx]On Behalf Of Jossart Alain
Sent: Saturday, December 30, 2000 3:00 AM
To: metastock@xxxxxxxxxxxxx
Subject: Re: If Then function
neo,
If A > B then
C = 10
Endif
is logically equivalent to :
If A > B then
C = 10
( Implied Else )
( C is not modified )
Endif
It doesn't tell you anything about was C is supposed to be when A <= B
If you are expecting Metastock to not plot anything when A<=B, then you are
expecting C should undefined when the "IF" statement is FALSE, which is not
the same as "C is not modified"... Your implied logic is therefore :
C = Undefined
If A > B then
C = 10
Endif
or
If A > B then
C = 10
Else
C = Undefined
Endif

PureLinks - Finance Banners.