While these methods may help analyze price direction, they can often force traders to wait until the cross occurs. Sometimes it may be useful to anticipate the event – or at least know it’s getting close.
That’s where the custom script 2 MA Ratio can be useful because it tracks the fast and slow moving averages. The fast MA is then shown as a percent of the slow MA. Positive readings indicate a bullish condition and vice versa for the negative.
It’s also color-coded to clearly illustrate when the crosses occur.
2 MA Ratio can handle simple moving averages (SMAs) and exponential moving averages (EMAs). It even lets you compare SMAs to EMAs. Users can choose between using open, high, low or closing prices as the inputs. (It defaults to Close.)
The chart above shows the short-term pair of the 8- and 21-day EMAs on Tesla (TSLA). The second chart below shows the same stock with the slower 50- and 200-day SMAs. Notice the “Golden Cross” last summer and the “Death Cross” in May:
TradeStation has, for decades, advanced the trading industry, providing access to stocks, options, futures and cryptocurrencies. See our Overview for more.
TradeStation Securities, Inc., TradeStation Crypto, Inc., and TradeStation Technologies, Inc. are each wholly owned subsidiaries of TradeStation Group, Inc., all operating, and providing products and services, under the TradeStation brand and trademark. You Can Trade, Inc. is also a wholly owned subsidiary of TradeStation Group, Inc., operating under its own brand and trademarks. TradeStation Crypto, Inc. offers to self-directed investors and traders cryptocurrency brokerage services. It is neither licensed with the SEC or the CFTC nor is it a Member of NFA. When applying for, or purchasing, accounts, subscriptions, products, and services, it is important that you know which company you will be dealing with. Please click here for further important information explaining what this means.
This content is for informational and educational purposes only. This is not a recommendation regarding any investment or investment strategy. Any opinions expressed herein are those of the author and do not represent the views or opinions of TradeStation or any of its affiliates.
Investing involves risks. Past performance, whether actual or indicated by historical tests of strategies, is no guarantee of future performance or success. There is a possibility that you may sustain a loss equal to or greater than your entire investment regardless of which asset class you trade (equities, options, futures, or digital assets); therefore, you should not invest or risk money that you cannot afford to lose. Before trading any asset class, first read the relevant risk disclosure statements on the Important Documents page, found here: www.tradestation.com/important-information.
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 a publication is governed by House Rules. You can favorite it to use it on a chart.