[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

need help translating from MetaStock to EL



PureBytes Links

Trading Reference Links

I found this short MetaStock indicator, and I can't figure out what
some of the functions (like Ref()) do.  I can't find an online
MetaStock language reference either.

CY1:= Input("Short Cycle length" ,1 ,1000 ,10 )/2;
CY2:= Input("Medium Cycle length" ,1 ,1000 ,80 )/2;
M1:= Input("Short Cycle Multiplyer" ,.01 ,10 ,1 );
M2:= Input("Medium Cycle Multiplyer" ,.01 ,10 ,3 );
T1:= Ref(Mov( CLOSE ,CY1 ,S ),CY1/2)+ M1*ATR(CY1 );
B1:= Ref(Mov( CLOSE ,CY1 ,S ),CY1/2)- M1*ATR(CY1 );
T2:= Ref(Mov( CLOSE ,CY2 ,S ),CY2/2)+ M2*ATR(CY2 );
B2:= Ref(Mov( CLOSE ,CY2 ,S ),CY2/2)- M2*ATR(CY2 );
T1; B1;T2;B2;

What's Ref() do?

What is that S argument in Mov() (which I assume is a moving average)?

I'm pretty sure ATR is average true range, but there's no length
parameter.

This is *supposed* to be a Hurst Channel indicator.  I've been hunting
around for somethig like it for EasyLanguage before I buy Hurst's book
and bury myself in it trying to re-invent what many others have done
before me.  Anyone have the source for it?

What I'm looking for is a Hurst channel indicator that shows several
parallel channels, although not equally spaced.

-- 
  ,|___    Alex Matulich -- alex@xxxxxxxxxxxxxx
 // +__>   Director of Research and Development
 //  \ 
 // __)    Unicorn Research Corporation -- http://unicorn.us.com