PureBytes Links
Trading Reference Links
|
At 10:51 AM -0500 7/30/01, Gerald Marisch wrote:
>Is there a way of defining the angle of ascent or descent of a moving
>average considering the last "x" number of periods?
I am not clear what you mean by "angle of ascent or descent" but you
can calculate rise-over-run by something like:
Input: x(10), Length(15);
Vars: Avg(Close), RiseORun(0);
Avg = XAverage(Close, Length);
RiseORun = (Avg - Avg[x]) / x;
The dimensions of this are BigPoints / Bars so you might need to scale
it to some more meaningful value.
Bob Fulks
|