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

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?