TradingView
LazyBear
20 mars 2014 13:40

Indicator: Fractal Adaptive Moving Average (FRAMA) 

Description

FRAMA is a type of AMA that uses fractal geometry to dynamically adjust its smoothing period to suit the changing price action over time.

See more at: etfhq.com/blog/2010/09/30/fractal-adaptive-moving-average-frama/

[Update: April 26, 2014]
Updated code to support new TV script engine: pastebin.com/tnM3Pt64.
Code published won't work, plz use the code from the above link.

[Update: May 24,2014]
Had to update the source again to support the latest script engine changes:
Here's the new code - pastebin.com/6xyjP2ST



Appreciate any comments/feedback,
Commentaires
EdO'Donnell
Hi LazyBear,
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."

(source: etfhq.com/blog/2010/10/09/frama-is-it-effective/)

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?

Thanks,
Ed
JasonCharles
Hi,
Thanks for all your great indicators.
Would it be possible for you to update the FRAMA to use the new ETF HQ modified version that they say is a lot better.

etfhq.com/blog/2010/09/30/fractal-adaptive-moving-average-frama/
ChartArt
Sadly it seems this code doesn't seem to work anymore? Even when I load the chart which you posted with the indicator it doesn't load.
WeWillWin
Hi, Lazybear, why the code has this error, can you help me? thanks,
Error: Undeclared identifier `frama`
LazyBear
TradingView script engine has been updated/modified since I published this. Updated code: pastebin.com/tnM3Pt64

Thanks for bringing this to my notice.
ChartArt
Ah, I didn't see your comment here. This code works. Thanks!
ljstens22
Doesn't FRAMA have two indicators? An FC and SC?
grahvity
I love these non-standard technical indicators, man. I showed off your 4MACD last night in the daily discussion of reddit.com/r/BitcoinMarkets (giving you full credit). Keep it up.
LazyBear
Thanks for the Reddit post :)

I have many more -- some finished, some half-way there -- indicators, will keep pushing them out. Expect to more unconventional ones :)
LazyBear
*see more
Plus