(FRAMA) Fractal Adaptive Moving Average

This script plots UP TO 4 FRAMAs ( Fractal Adaptive Moving Average ), a particularly useful adaptive MA which uses fractal price theory to "adapt" itself, or better, to auto-adjust its parameters. It's quite reactive, but its major strength resides in its ability to filter the noise during lateral price movements, avoiding some false signal provided by more common moving averages.

By default, the script plots the basic FRAMA version, the one firstly developed by John Ehlers , but also provides the possibility to play with the parameters, to obtain a modified FRAMA .
Unfortunately I'm not able to provide web sources about FRAMA here, due to Tradingview policies. So search online if you need more details about FRAMAs.

Please show me your support if you like my scripts. Hope you enjoy them.
Note di rilascio: Updates:
- Script converted to v4
- FRAMA coded as a function
Note di rilascio: .
Note di rilascio: Updates:
- Removed unnecessary code lines.
- Other minor fixes.

Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?


Finally a code that doesn't look like a child wrote it.
+2 Rispondi
Bezzus EduardoMattje
@EduardoMattje, thanks for your appreciation!
Really well written function. Fantastic stuff =)
What are the FRAMA shift limits used for?
Bezzus Canundo
@Canundo, Hi! FRAMA is an adaptive moving average. It uses fractal geometry to dynamically adjust its smoothing period; to explain it more in detail, the variable D you can see inside the code is called 'Fractal dimension' of prices. D varies together with price movements and when it varies, so does the smoothing period. FC and SC are the lower and upper limits for the smoothing period. So if you use the default version of this code, you know that your FRAMA varies between an MA1 and an MA198.
+3 Rispondi
@Bezzus, Thank you for the explanation!
Bezzus Canundo
@Canundo, the other parameters "MA length" define how many past observations you want to use to compute the D variable
+1 Rispondi
@version=4 version please!
Home Screener azioni Screener forex Screener cripto Calendario economico Su di noi Caratteristiche Grafico Costi Invita un amico Regolamento Centro di supporto Soluzioni per broker & siti web Widget Librerie grafiche Libreria grafica leggera Blog & Novità Twitter