jessebadry

Color Changing Moving Average

This is a script for creating a EMA or SMA that changes between red and green based on the calculated angle of the moving average, green when up red when down, which colors can be changed within style settings.

You can change how the angle is calculated changing the "Angle Period", "ATR Period" and "Angle Level" within input settings.
other input settings:
Length - length of the moving
Source - source of moving average data, recommend to keep this on "close"
Offset - plot the moving average on the chart with this given offset
Use EMA? - Choose either EMA or a SMA to plot

This script uses the angle calculation from this script: - Mango2Juice
And uses the same coloring technique from this script: - zathura643

Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.

Vuoi usare questo script sui tuoi grafici?