OPEN-SOURCE SCRIPT

Moving Average (20,50,100,200) With Cross (Golden & Death)

This Pine Script v6 indicator plots four moving averages (20, 50, 100, and 200) in different colors, each labeled with its length and current value on the latest bar. It also detects when the 50-period MA (green) crosses above or below the 200-period MA (red), automatically creating “Golden Cross” or “Death Cross” labels at the crossing point.
Bands and ChannelsChart patternsCycles

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer