Updated

Jurik MA [lastguru]

7 417
Finally, the full Jurik Moving Average (JMA) implementation based on the reverse-engineered algorithm by Igor: c.mql5.com/forextsd/forum/164/jurik_1.pdf
Every JMA implementation I've seen is based on the Igor's document. For some reason, many of the implementations, however, are not true to the source. As far as I know, this is the first correct JMA implementation on TradingView (please write a comment or send a message if I'm wrong). As the Igor's document itself is incomplete, however, there is some grey area still...

I should also thank the authors of the current JMA implementations for the inspiration:
everget:
Jurik Moving Average

gorx1:
Jurik Moving Average


You can see the comparison with everget script on the chart above. The parameters are the same. My graph is in yellow.

This script is just an interface for my public libraries. Check them out for more information.
Release Notes
update to Pine Script v6
Release Notes
Unfortunately, the Igor's volatility calculation seem to have a bug in some specific cases (present in recent 5m BTCUSD chart), so I've added an alternative volatility calculation method that seems to work better on all symbols. The alternative calculation is almost identical to the original when the bug is not manifesting. The results are very close to what Jurik's official implementation produces (based on visual comparison to the official example charts). The difference becomes easily noticeable when the bug is manifesting: the original Igor's algorithm starts lagging as the volatility adaptation is not activating. I don't know whether the official Jurik implementation has the same problem as I don't have access to it to compare

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.