OPEN-SOURCE SCRIPT
WallStreet 50/200 DMA Events

WallStreet 50/200 DMA Events — FROM DANNY BEE
This indicator is a long-term market regime visualization tool based on the classic 50-day and 200-day moving averages.
It detects confirmed daily Golden Cross and Death Cross events, plots the 50 DMA and 200 DMA on the chart, stores historical cross events, and tracks how price has performed since each event.
Main Features:
• Confirmed daily 50 DMA and 200 DMA
• Golden Cross and Death Cross detection
• Historical event labels
• Event performance tracking from the cross price to the current price
• Current Close vs 200D distance label
• Risk-On / Risk-Off regime table
• Customizable label detail: Minimal, Balanced, Detailed
• Customizable table position and text size
• Background highlight on new cross events
• Alerts for Golden Cross and Death Cross events
How to Read It:
Golden Cross = 50 DMA crosses above 200 DMA
This usually represents a long-term Risk-On regime.
Death Cross = 50 DMA crosses below 200 DMA
This usually represents a long-term Risk-Off regime.
The event table shows previous cross events, their date, event price, 50D value, 200D value, distance from 200D, return since the event, number of days passed, and the regime type.
Non-Repaint Logic:
The indicator uses confirmed daily data. The moving averages and cross signals are based on completed daily candles, not unfinished intraday movement. This makes the tool cleaner for long-term regime analysis.
Purpose:
This script is not designed to predict every market move or generate automatic buy/sell signals. It is designed to help traders and investors understand the broader market structure, identify major regime shifts, and study how price behaved after previous 50/200 DMA events.
This is a context tool, not a trading system by itself.
Use it together with risk management, market structure, macro context, and your own trading or investing plan.
Disclaimer:
This script is for educational and analytical purposes only. It is not financial advice. Markets involve risk, and past performance after Golden Cross or Death Cross events does not guarantee future results.
This indicator is a long-term market regime visualization tool based on the classic 50-day and 200-day moving averages.
It detects confirmed daily Golden Cross and Death Cross events, plots the 50 DMA and 200 DMA on the chart, stores historical cross events, and tracks how price has performed since each event.
Main Features:
• Confirmed daily 50 DMA and 200 DMA
• Golden Cross and Death Cross detection
• Historical event labels
• Event performance tracking from the cross price to the current price
• Current Close vs 200D distance label
• Risk-On / Risk-Off regime table
• Customizable label detail: Minimal, Balanced, Detailed
• Customizable table position and text size
• Background highlight on new cross events
• Alerts for Golden Cross and Death Cross events
How to Read It:
Golden Cross = 50 DMA crosses above 200 DMA
This usually represents a long-term Risk-On regime.
Death Cross = 50 DMA crosses below 200 DMA
This usually represents a long-term Risk-Off regime.
The event table shows previous cross events, their date, event price, 50D value, 200D value, distance from 200D, return since the event, number of days passed, and the regime type.
Non-Repaint Logic:
The indicator uses confirmed daily data. The moving averages and cross signals are based on completed daily candles, not unfinished intraday movement. This makes the tool cleaner for long-term regime analysis.
Purpose:
This script is not designed to predict every market move or generate automatic buy/sell signals. It is designed to help traders and investors understand the broader market structure, identify major regime shifts, and study how price behaved after previous 50/200 DMA events.
This is a context tool, not a trading system by itself.
Use it together with risk management, market structure, macro context, and your own trading or investing plan.
Disclaimer:
This script is for educational and analytical purposes only. It is not financial advice. Markets involve risk, and past performance after Golden Cross or Death Cross events does not guarantee future results.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
db
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
db
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.