PROTECTED SOURCE SCRIPT

EMA on Candles (Exponential Moving Average Overlay)

6
🔹 Description

This script plots an EMA (Exponential Moving Average) directly on candlesticks.
You can adjust the EMA length (e.g., 20, 50, 200) to help identify market trends or use it as a dynamic support/resistance level.

🔹 How to Use

Copy the script code into TradingView’s Pine Editor.

Click Add to chart → the EMA line will appear over the candlesticks.

Adjust the EMA Length from the settings menu (default = 50).

Combine with other indicators for signals, for example:

Price above EMA = Uptrend

Price below EMA = Downtrend

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.