TradeStation

Bars Since MA Cross Can Help Trend Following

Moving average crosses are popular signals for trend followers. Like many conditions, they tend to reverse after a certain amount of time. Today’s script is designed to help traders visualize and interpret these turns.

Bars Since MA Cross counts how many bars have passed since a fast-moving average crossed a slower MA. Bullish readings, with the faster MA above the slow, are plotted with positive numbers. The opposite is true for bearish conditions. Users can choose between simple, exponential and weighed average types. They can also mix them, comparing a fast EMA for a slower SMA , for example.

By default, it uses the 8- and 21-day EMAs.

This approach can help in a couple of ways. First, it can show divergences as a move weakens. Microsoft , in the example above, had a shorter bullish phase as it made new highs last December. This was followed by even briefer periods in January before the bear market took hold.

Likewise in May and June, Bars Since MA Cross showed shorter bearish periods before July’s counter-trend rally.

The second potential application is to know the age of a move. In this case look at September 2020. MSFT’s 8-day EMA was above its 21-day EMA for 108 days. The chart shows this was unusually long by previous examples, giving traders a sense the rally was getting long in the tooth. ( MSFT would go the rest of that year without a new high.)

In conclusion, Bars Since MA Cross judges a move by its age and not its intensity. It’s a different approach that can sometimes help more than viewing simple price action.

TradeStation has, for decades, advanced the trading industry, providing access to stocks, options, futures and cryptocurrencies. See our Overview for more.

Important Information
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.
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?