Metastock Indicator Formula |
Adaptive Moving Average |
This is a Metastock for Windows version 6.5 formula. |
Formula: |
Periods := Input("Time Periods",1,1000, 10);
Direction := CLOSE - Ref(Close,-periods);
Volatility := Sum(Abs(ROC(CLOSE,1,$)),periods);
ER := Abs(Direction/Volatility);
FastSC := 2/(2 + 1);
SlowSC := 2/(30 + 1);
SSC := ER * (FastSC - SlowSC) + SlowSC;
Constant := Pwr(SSC,2);
AMA := If(Cum(1) = periods +1, ref(Close,-1) + constant * (CLOSE - ref(Close,-1)),
Prev + constant * (CLOSE - PREV));
AMA |
|
Did you know ...
How to apply a technical indicator to a chart in MetaStock?
To apply a technical indicator to a chart in MetaStock, right-click on the chart and select "Indicators" or use the "Insert" menu. Choose the desired indicator from the list.
|