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.
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.