OPEN-SOURCE SCRIPT

MACD + EMA Zone Filter (with EMAs)

101
How it works:

It plots 4 EMAs (Exponential Moving Averages):

EMA 20 (orange)

EMA 50 (yellow)

EMA 100 (blue)

EMA 200 (red)

A Buy signal is triggered when:

All three EMAs (20, 50, 100) are above EMA 200 (indicating an uptrend)

The MACD line crosses above the Signal line (bullish momentum)

A Sell signal is triggered when:

All three EMAs (20, 50, 100) are below EMA 200 (indicating a downtrend)

The MACD line crosses below the Signal line (bearish momentum)

📊 Visual Features:

Buy/Sell arrows directly on the chart

Background turns green in strong uptrends and red in strong downtrends

Built-in alerts for automation or notifications

🕒 Works on any timeframe, using the current chart's data.


use with fractals indicator for SL, aim for 1:2 RR

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.