PureBytes Links
Trading Reference Links
|
I download this formula from Equis web:
"Average-Modified Method"
From The New Commodity Trading Systems and Methods, by Perry J. Kaufman
Chapter 4 - Moving Averages, pg. 60.
This formula is for version 6.5 of MetaStock for Windows 95 & NT only and
cannot be written in previous version.
This is a modified simple moving average.
The formula will prompt you for input for the number of time periods to use
in the moving average.
Day:=Cum(1)+1;
Z:=Input("Periods",2,1000,5);
MV:=(1/Z);
If(Day<(Z+2),C,If(day=(Z+2),Mov(C,LastValue(Z),S),PREV+(MV*(C-PREV))))
At 11:53 AM 1/5/98 -0800, you wrote:
>
>Is it possible to calculate the MODIFIED moving average
>(Perry Kaufman) within Metastock? I am told it can be done
>with TradeStation and CQG..
>
>Here is the formula:-
>MAV(t) = MAV(t-1) + [P(t)-MAV(t-1)]/n
>
>Where:
>MAV(t) is the current modified moving average
>MAV(t-1) is the previous modified moving average value
>P(t) is the current price (or value to be smoothed)
>The starting point is calculated as a simple moving average..
>
>When I try this in Metastock I get an error about a
>circular reference (due to referring to the prior
>day's value of this formula).
>
>Thanks in advance,
>-Neal.
|