OPEN-SOURCE SCRIPT
MA 50/200

This MA 50/200 indicator is a classic TradingView overlay that plots the 50-period Simple Moving Average (SMA) in solid green and the 200-period SMA in solid red directly on the price chart.
It highlights major trend-reversal signals:
The layout keeps the chart clean and focused: continuous thick lines for the moving averages with clear, oversized cross markers only at crossover points to make Golden and Death Cross events instantly visible without clutter.
It highlights major trend-reversal signals:
- A Golden Cross occurs when the faster 50-period SMA crosses above the slower 200-period SMA, often interpreted as a bullish signal suggesting potential upward momentum. This is marked by a prominent green cross symbol (linewidth 5) plotted at the level of the 200 SMA on the bar where the crossover happens.
- A Death Cross occurs when the 50-period SMA crosses below the 200-period SMA, often seen as a bearish signal indicating potential downward momentum. This is marked by a red cross symbol (slightly translucent for subtlety) at the 200 SMA level on the crossover bar.
The layout keeps the chart clean and focused: continuous thick lines for the moving averages with clear, oversized cross markers only at crossover points to make Golden and Death Cross events instantly visible without clutter.
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.
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.
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.