PureBytes Links
Trading Reference Links
|
Thx C.S.,
but this doesn't seem to work.
Try shortening your version down to
Value1:=Ref(Value1,-1) + C;
Value1;
It doesn't return anything.
Even using PREV, I am having trouble:
Value1:=0.88*ref(PREV,-6) +C;
Value2:= 1.2*ref(PREV,-6) - 0.7*ref(PREV,-12) + Value1 - ref(Value1,-6) ;
Value1;
Value2;
But Metastock does not seem to like two "PREV"s in one line.
It does return something, but it's garbage.
BTW, this is one of Ehler's detrenders, published in the
July 2000 TASC.
----- Original Message -----
C.S. wrote:
>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.
>>
>>
>>
>
|