OPEN-SOURCE SCRIPT
Moving Average Ribbon - version 4

There are many different strategies using Moving Averages such as the Guppy, Super Guppy, Madrid Ribbon and others. Some strategies use one type of calculation over the other.
I am not advocating one strategy over another and this indicator is not a particular strategy. It provides up to 27 moving averages. You can choose between Simple, Exponential (default), ALMA, Hull, WMA, RMA and DEMA for the calculation method.
You can choose which Moving Averages to show and not show.
You can change the lengths of any of the Moving Averages.
Some strategies I have seen uses different sources. You can set the source for each individual Moving Average.
If you use this indicator more than once on the same chart, you can offset the two indicators if needed.
The indicator has two methods for coloring the plots. The default is by direction and order. If going up and the faster MA is higher than the next slower MA, it is bullish. If going down and the faster MA is lower than the next slower MA, it is bearish. Otherwise, it is neutral.
An alternate means looks at separation distance. A slower MA will inherit the color of the faster MA if the distance between the two is equal or greater than the previous candle.
If standard colors are used, there is a Strong Bear, Weak Bear, Strong Bull and Weak Bull. If you choose to use Alternate colors, you have a Bullish and Bearish color.
Defaults are simply set to how I have been using it. I also have it applied on multiple charts across multiple timeframes. It is not a recommendation or promise of best method. I am still experimenting with different layouts.
I am not advocating one strategy over another and this indicator is not a particular strategy. It provides up to 27 moving averages. You can choose between Simple, Exponential (default), ALMA, Hull, WMA, RMA and DEMA for the calculation method.
You can choose which Moving Averages to show and not show.
You can change the lengths of any of the Moving Averages.
Some strategies I have seen uses different sources. You can set the source for each individual Moving Average.
If you use this indicator more than once on the same chart, you can offset the two indicators if needed.
The indicator has two methods for coloring the plots. The default is by direction and order. If going up and the faster MA is higher than the next slower MA, it is bullish. If going down and the faster MA is lower than the next slower MA, it is bearish. Otherwise, it is neutral.
An alternate means looks at separation distance. A slower MA will inherit the color of the faster MA if the distance between the two is equal or greater than the previous candle.
If standard colors are used, there is a Strong Bear, Weak Bear, Strong Bull and Weak Bull. If you choose to use Alternate colors, you have a Bullish and Bearish color.
Defaults are simply set to how I have been using it. I also have it applied on multiple charts across multiple timeframes. It is not a recommendation or promise of best method. I am still experimenting with different layouts.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.