OPEN-SOURCE SCRIPT

Moving Average Ribbon

Updated
A ribbon that uses a fast EMA, a slow EMA, and a signal EMA. By default the signal EMA is invisible.

When the fast EMA > slow EMA the default fill is green, and then red when the fast EMA < slow EMA. The signal EMA adds a 2nd flavor to the ribbon. When the fast EMA > slow EMA, if the signal is beneath the fast EMA, the ribbon fill changes its color to a brighter green. When the fast EMA < slow EMA, if the signal is above the fast EMA, the ribbon fill changes its color to a brighter red. Many times these little "fishhook" pullbacks are buying/shorting opportunities in the dominate trend.

Try settings of 8/21/8 Fast/Slow/Signal, with the "Zero-Lag Signal" check box checked. Zero-Lag is a simple algorithm that tries to remove as much lag as possible from an EMA. An 8 EMA will run "slower" than an 8 Zero-Lag EMA.

Additionally, 2 simple alerts are available for whenever the fast EMA crosses above the slow EMA, and the opposite.

Cheers.
Release Notes
  • Added new moving average types: Simple, Weighted, Volume-Weighted
Release Notes
  • Fixed VWMA Bug.
Release Notes
  • Added Hull MA.
exponentialmahullmovingaverageMoving AveragesTrend Analysis

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer