OPEN-SOURCE SCRIPT

Rainbow Trend Indicator

This is an indicator based on the MA rainbow concept. It is possible to choose between 15 or 20 MA's and if all 15 MA's is picked, the calculation will be calculated on 15 MA's and if 20 is picked the calculation is calculated on 20 MA's. The indicator will then be a line which is assigned a value from the calculation based on the MA's. If the line is above the dashed zero line, meaning the line's last value is a positive value, the price is in a uptrend and if the line is below the dashed zero line, meaning the line's last value is a negative value, the price is in a downtrend.

In short
If the line is green, the price is in a uptrend. If the line is red, the price is in a downtrend.
exponentialexponentialmovingaveragesMomentum Indicator (MOM)Moving AveragessmatrendTrend 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