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

Re: XAverage (simple function)



PureBytes Links

Trading Reference Links

Joel:

>input: emaLength(20), 
>var: factor1(0);
>factor1 = (H - L)*2.5; 
>
>What is the meaning of the following?
>
>factor3 = XAverage(factor1,emaLength); 
>
>I understand the application of XAverage (EMA) when used on close prices,
>for example. But what will it do in this case?

It's similar to average true range, only in this case the average is an
EMA, and the range (not the true range) multiplied by 2.5 is what's
being averaged.

You'd get a very similar result from 2.5*AvgTrueRange(emaLength);

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