powered by
FRactal Adaptive Moving Average
FRAMA(HLC, n = 20, FC = 1, SC = 200, triggerLag = 1, ...)
an HLC price series
a lookback period
a fast constant--aka lowest n for an EMA
a slow constant--aka lowest n for an EMA
a number of days by which to lag the original computation
an xts containing the FRAMA and the trigger
http://www.mesasoftware.com/Papers/FRAMA.pdf http://etfhq.com/blog/2010/09/30/fractal-adaptive-moving-average-frama/