See more at: http://etfhq.com/blog/2010/09/30/fractal-adaptive-moving-average-frama/
[Update: April 26, 2014]
Updated code to support new TV script engine: http://pastebin.com/tnM3Pt64.
Code published won't work, plz use the code from the above link.
Had to update the source again to support the latest script engine changes:
Here's the new code - http://pastebin.com/6xyjP2ST
Appreciate any comments/feedback,
According to etfhq's article,
"We selected a modified FRAMA with a 'FC' of 4, a 'SC' of 300 and a 'FRAMA' period of 126 as being the most effective fast FRAMA although the settings for a standard FRAMA will also produce excellent results."
Your version has 2 parameters ("period of fractal", and "W") instead of the 3 which etfhq refers to. Could you explain how your params relate to what etfhq describes?