PureBytes Links
Trading Reference Links
|
OK,
I'll take a stab at this. Please chime in if I'm wrong, as I can learn
from this too.
Value1:=C + 0.088 * Ref(Value1,-6);
Value2:=Value1 - Ref(Value1,-6) + 1.2*Ref(Value2,-6) - 0.7*Ref(Value2,-12);
Ref(Value2,-12) - 2*Ref(Value2,-6) + Value2
Although the PREV function could have been used, I didn't because it tends
to slow computation.
-Corey
----- Original Message -----
From: "Jeff Haferman" <haferman@xxxxxxxxxxxxxxxxxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: Sunday, March 04, 2001 5:03 PM
Subject: EasyLanguage to Metastock conversion
>
> I've got some code I'm trying to convert to Metastock...
> it's written in EasyLanguage.
>
> I've got:
>
> Value1 = Close + 0.088*Value1[6];
> Value2 = Value1 - Value1[6] + 1.2*Value2[6] - 0.7*Value2[12];
> D = Value2[12] - 2*Value2[6] + Value2;
> Plot1(D,"D");
>
> Is there an easy way to write this as a Metastock indicator?
> For example, Value1[6] means the value of Value1 6 bars ago.
> But Value1 is defined recursively, so I'm not sure
> how this can be done in Metastock.
>
>
>
|