Formula Adaptive Moving Average

Da traderpedia.
Jump to navigation Jump to search

Questa è la formula della media mobile adattiva di Perry Kauffman.
Categoria: Nuovi/Ibridi
Formula per MetaStock™:

INIZIO 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
FINE FORMULA

Vedi anche: