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)

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?


⭐️ 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
更多:

免责声明