Regime Filter [CHE]


A market regime filter is a tool used by traders and investors to identify the current state or "regime" of the market and adjust their investment strategies accordingly. This can involve identifying trends in market behavior, such as bullish or bearish trends, and using that information to make decisions about which assets to buy or sell.

Market regime filters can be based on a variety of factors, including economic indicators, market sentiment, and technical analysis. They are often used in conjunction with other trading strategies and can help traders and investors manage risk and optimize their returns.

It's important to note that market regime filters are not always accurate and can change over time, so it's important for traders and investors to regularly review and update their filters to ensure that they are relevant and effective.

Understanding the use of a regime filter in trading:

The importance of a trading filter cannot be overemphasized. As a matter of fact, the chances of any trading system making consistent returns over the long term depends on it trading in the right market environment — buying when the market is bullish and selling when the market is bearish. Some traders may want to stay out of the market when the conditions are unfavorable.

The heard of this Regime Filter is the well kown Andean Oscillator. The proposed indicator aims to measure the degree of variations of individual up-trends and down-trends in the price, thus allowing to highlight the direction and amplitude of a current trend.


Length : Determines the significance of the trends degree of variations measured by the indicator.
Signal Length : Moving average period of the signal line.
The regime filter uses the color yellow and blue, yellow stands for bullish and blue for bearish.

In daily use I have found that it makes sense to use it in different timeframes to identify meaningful trends.

best regards and I hope you enjoy this new indicator

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 a publication is governed by House Rules. You can favorite it to use it on a chart.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?