UnderwearMillionaire

UM-MA-Directional-Colors


UM-MA-DIRECTION Indicator

Indicator Description
The UM-MA-Direction indicator adds a few more features to a traditional Moving Average indicator. The primary difference is color change upon MA direction. The indicator is green when trending higher and red when trending lower. Additionally, a MA of the MA can be configured. This gives a smoothing effect of the indicator. The indicator also includes a fill between the configured moving average and the moving average of the moving average.

User Configuration
All parameters and colors are user-configurable. While the default is an EMA (Exponential Moving Average), of 8 with a EMA of the EMA set to 5, both can be configured or disabled to the user's liking. The default trending and fill colors are red for trending lower and green for trending higher. The type of MA used is also user configurable with EMA - Exponential Moving Average set as the default.

Alerts
Alerts can be set for Bullish (red to green) color changes or Bearish (green to red) color changes by right-clicking the indicator and selecting "Add Alert."

Recommended Usage
Use this indicator to better determine trend direction over traditional Moving Averages. If you use several MAs, add this indicator to the chart as many times as you like with different settings and configurations.

Author Recommended Settings
I use an 8 period EMA with a 5 period EMA of the EMA on daily and hourly charts. I also use the 233 EMA with no fill and no EMA of EMA on the 3 minute chart. Both 8 and 233 are Fibonacci numbers in case you are wondering. I have also observed there is a fractal nature (recurring pattern within a recurring pattern) to the EMAs. An 8 period EMA color transition on the 1 hour chart is close to a 233 period color transition on the 3 minute chart as far as direction changes. The 233 EMA on the 3 minute chart was borrowed from the "Perfect Storm Trading" book by Wendy and Kim Kirkland which I highly recommend.

David Franck
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?