There's many versions of this sort of thing around the Tradingview library, but i guess we all like things to our own specifications.
So this is my take on the SMA and EMA version combined.
Bunch of SMA's & EMA's, with labels, and G&D Cross Labels and Alerts.
These values can of course be changed to any you may prefer.
Rhapsodyy's Combo SMAEMA's v1.1
Simply choose your moving averages and backtest shorting and longing the crossing of these MA's. Meant for dialing in MA crosses as part of a trading setup and not reason enough to take the trade. First script, work in progress.
United three indicators in one.
4 Moving Average Exponential: 8, 13, 21, 55 - as per @Philakone strategy
Moving Average Exponential - Death Cross: 100, 200
Check out my other script for RSI and Stoch RSI all in one.
Its a simple Golden- and Death-Cross IndicatorBNC:BLX
... it highlights the Crosses and labels them. It also highlights the bar where the cross happend.
Enjoy and buy me a coffee if you liked it.
The Golden Cross is one of the simplest market indicator who helps long term investors to entry a position.
With that in mind, I made a very easy to understand backtest showing how much we could earn if we entered in a Golden Cross and exit when Death Cross happening.
Take this code and try in your favorite market.
Of course, never use only this indicator to trade.