Indicator: Fractal Adaptive Moving Average (FRAMA)

BTCE:BTCUSD   Bitcoin / Dollar
5321 16 25
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:

Updated code to support new TV script engine:
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 -

Appreciate any comments/feedback,
I love these non-standard technical indicators, man. I showed off your 4MACD last night in the daily discussion of (giving you full credit). Keep it up.
+1 Reply
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 :)
+3 Reply
*see more
+2 Reply
grahvity LazyBear
Anyway I can offer you a tip? It would make me happy to feel that Im helping to encourage this kind of behavior. BTW, today's daily discussion just began. There probably won't be many comments right away but the post is stickied for 24 hours if you want to check on it later.
+1 Reply

My address => 1Cs5DJ7DGqYVBWaAt5rPuRcD66ULgVCFnx

( Also listed in the "about me" page. )
+4 Reply
grahvity LazyBear
So it is. I are dumb. Hopefully this is worth more tomorrow than it is today but I seriously doubt it. Cheers!
+2 Reply
Appreciate it. My first tip, yay!! :)
+2 Reply
grahvity LazyBear
Oh, that's cool I got to be your first tipper. I'm a noob trader too so if I can get some these tools to work for me, I'll come back and definitely make it worth your while.

Have a very pleasant evening.
+2 Reply
Hi, Lazybear, why the code has this error, can you help me? thanks,
Error: Undeclared identifier `frama`
+1 Reply
TradingView script engine has been updated/modified since I published this. Updated code:

Thanks for bringing this to my notice.
+3 Reply
ChartArt LazyBear
Ah, I didn't see your comment here. This code works. Thanks!
I'm going to give this a try
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.
+1 Reply
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.
+1 Reply
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."


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?

+1 Reply
Doesn't FRAMA have two indicators? An FC and SC?
Ideas Scripts Chart
United States
United Kingdom
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Account and Billing Sign Out