OPEN-SOURCE SCRIPT

EMA 100/200 TRENDLINE

This indicator uses two Exponential Moving Averages (EMA): one with a length of 100 periods and the other with a length of 200 periods.

When the EMA 100 crosses above the EMA 200, the EMA 100 line turns green, and the EMA 200 line turns red.
When the EMA 100 crosses below the EMA 200, the EMA 100 line turns red, and the EMA 200 line turns green.
The indicator also allows users to adjust:

The length of both EMAs
The color of each EMA line
The thickness of the lines
This helps traders visually identify trend changes based on the crossover of these two EMAs.
Exponential Moving Average (EMA)Trend Analysis

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer