PureBytes Links
Trading Reference Links
|
>From eye-balling the formula given in Barry's origninal mail, would say
that replacing the PREV-function by the Ref-function, eg
Ref(data arry, -1)
should work better for you and returning the desired values.
Regards,
Ton Maas
ms-irb@xxxxxxxxxxxxx
Dismiss the ".nospam" bit (including the dot) when replying.
----- Original Message -----
From: <Randall_Gary@xxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: donderdag 6 mei 1999 15:35
Subject: Re:Trailing Stop Indicator Dilemma
> Prev is initially zero and the close is never less than zero, therefore the
> result is zero. Test for day 1 and return the close, otherwise ... your code.
>
> Gary Randall -- Brunswick, Maine
>
|