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
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