The Rainbow Moving Average study is a weight-based smoothing analysis technique; its main purpose is to give more weight to the less smoothed data. Ten averages of the same type are calculated, each being an average of the previous one. Once the averages are calculated, the first four have respective weights of 5,4,3, and 2 while all the others have the weight of 1.

Input Parameters

Parameter Description
price The price with which the Rainbow Moving Average is calculated.
length Defines period on which each of the ten averages is calculated.
average type Defines type of average to be used in calculations: Simple, Exponential, Weighted, Wilders, or Hull.


Plot Description
Rainbow The Rainbow Moving Average.


*For illustrative purposes only. Not a recommendation of a specific security or investment strategy.

  Past performance is no guarantee of future performance.

You may also like
The Momentum Percent Diff is a momentum-based technical indicator. Unlike the regular Momentum ...
thinkScript®: Q&A
What is thinkScript®? thinkScript® is a built-in programming language that gives you the ...
The Slow Relative Strength Index is a version of the classic Relative Strength Index (RSI), ...