NGBaltic

NG [All Moving Averages]

Collection of some of the best moving averages.
I've tried to collect them all but TV became so slow, that it was completely unusable.
So i left only those that performs best on various backtest systems.
Release Notes: zlema updated
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Comments

Noob inquiry... how does Line 193 ever get called ?
Reply
PositiveLogic PositiveLogic
Never mind. I examined the script now associated with this title from TradingView's Indicator menu and see there were changes not reflected here. Cheers ~
Reply
@NGBaltic,
1) you can speed up a calculation of the script by using standard sma() and ema() functions instead of loops in variant_ema and variant_sma.

2) in variant_zerolagema you should round `(len - 1) / 2` expression, because `len - 1` can be odd number, and whole expression value can be float.
Reply
NGBaltic everget
@everget, i left code in purpose for people who would like to copy functions into other platforms
Reply
everget NGBaltic
@NGBaltic, ok
Reply
Great comparison study! However, You fell for the zero lag bait. If you look carefully, your zero lag is just a double ema. I would go back and look at the Ehler's writeup on the proper calculations ;)
Reply
NGBaltic anoojpatel
@anoojpatel, thanks for heads up, fixed the script
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out