Violent

Moving Average Ribbon

Violent Uppdaterad   
Moving Average Ribbon:
-----------------------------------------------------------

A series of moving averages of different lengths to create a ribbon-like indicator. Traders can determine trend strength by the distance between the moving averages, the overall balance of the coloured lines and determine price points. Price movements through the ribbon can be used to identify trend changes.

SMA, EMA, WMA with user defined length, starting plot, number of plots to show, theme choice and colour calculation toggle.


Inputs:
-----------------------------------------------------------

Source: input value for MAs (close)

Type: moving average type (ema)

Theme: multiple colours/themes (theme 2)

Length: MA length (13)

Start: MA plot number to start ribbon on (1)

No. of MAs: number of plots to show; maximum 32 (32)

Colour option: unchecked then line colour is based on the source value crossing current MA otherwise the moving average below (false)


Example:
-----------------------------------------------------------

multiple MAs overlaid with different values give interesting results e.g.

Ribbon1 :
length: 13
start: 1

Ribbon2:
length:1
start: 26


Notes:
-----------------------------------------------------------

if increasing the length beyond around 150 results in "references too many candles in history" error then reduce the no. of MAs value to show less MA plots; the longer length MAs will go beyond the 5k max candle history..
Versionsinformation:
Updated legacy code.
Versionsinformation:
Updated legacy code.
Versionsinformation:
Updated legacy code.
Versionsinformation:
Updated defaults.

Skript med en öppen källkod

I sann TradingView-anda har författaren publicerat detta skript med öppen källkod så att andra handlare kan förstå och verifiera det. Hatten av för författaren! Du kan använda det gratis men återanvändning av den här koden i en publikation regleras av våra ordningsregler. Du kan ange den som favorit för att använda den i ett diagram.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här skriptet i ett diagram?