OPEN-SOURCE SCRIPT

Moving Average 50/200 Golden Cross or Dead Cross

A strategy is to apply two moving averages to a chart, one longer and one shorter. When the shorter MA 50 day scrosses above the longer term MA 200 days it's a buy signal as it indicates the trend is shifting up.This is known as a "golden cross."

When the shorter MA crosses below the longer term MA it's a sell signal as it indicates the trend is shifting down. This is known as a "dead/death cross"

For cryptocurrencies use 4 hour charts.
crossdeathgoldengoldencrossMoving AveragesSimple Moving Average (SMA)

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?


Also on:

Disclaimer