OPEN-SOURCE SCRIPT

CGPT Golden Cross / Death Cross Alert

35
This custom indicator identifies Golden Cross (Gx) and Death Cross (Dx) events using either EMA or SMA moving averages. A Golden Cross occurs when a short-term MA (e.g., 50) crosses above a long-term MA (e.g., 200), signaling potential bullish momentum. A Death Cross signals potential bearish momentum, with the short-term MA crossing below the long-term MA.

It includes:

📈 Customizable MA types (EMA or SMA)

⚙️ Adjustable fast & slow MA lengths

🟢🔴 Chart labels for Gx (green) and Dx (red)

🎯 Background highlights for visual trend shifts

🔔 Built-in alert conditions for real-time notifications

Ideal for crypto, stocks, or forex swing and trend trading

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.