OPEN-SOURCE SCRIPT

SMA 20, 50, 200

This Script provides the 50 and 200 day moving average to provide a way to keep track of the classic Death Cross and Golden Cross. The 20 day moving average is just used as an early prediction of what the 50 day may do so you can keep and eye on it. If you are the kind of person that freaks out at sudden changes in the graphs it is probably best to just turn the 20 day off.

A Golden Cross is when the 50 day MA raises above the 200 day MA. This indicates the start of a Bull Market. This is the best time to buy as the market commonly will increase over the next few months or even years.

A Death Cross is when the 50 day MA drops below the 200 day MA. This indicates the start of a Bear Market. This is the best time to sell as the market will commonly decrease at least 20 percent or more over the next couple months or more.

I am not a financial advisor and this is just a tool to help you make your own decisions with your investments. My information is just based on common knowledge.
Moving 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?

Disclaimer