OPEN-SOURCE SCRIPT

BEST Rainbow Chart

Hello traders

This script is a Pinescript adaptation of this FXCM/LUA script

Draws a flexible number of moving averages between 1 and 5 - with a end result looking like a rainbow

Formula

Each Moving Average is defined as a Moving Average of the previous MA
The first MA is based on candle close

MA[1] = MA of Price
MA[2] = MA of MA[1]
....
MA[n]= MA of MA[n-1]


Bonus

You can select the MA type (EMA, SMA, SMMA, TEMA, DEMA, TMA, ALMA, VWMA, ...) and the MA period shared across all the moving averages

Scaling

If you have any issue with your scaling, you may follow this quick tutorial

Hope you'll like it because it looks nice on your chart :)
Dave
daveattExponential Moving Average (EMA)rainbowVolume Weighted Moving Average (VWMA)Weighted Moving Average (WMA)

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?


⭐️ Listed as an Official TradingView Trusted TOP Pine Programmer

📧 Coding/Consulting Inquiries: dave@best-trading-indicator

Telegram: Daveatt

⏩ Course: best-trading-indicator.com

Twitter: twitter.com/bti_trading
Also on:

Disclaimer