PROTECTED SOURCE SCRIPT

Chop and Trend Index (CTI)

Updated
The Chop and Trend Index (CTI) is a unique indicator that provides a different perspective on market conditions compared to traditional oscillators. It is designed to identify periods of market chop and strong trends, and it does so by combining two key components: the number of halfback taps and the strength of the trend.

The CTI is calculated by first determining the number of halfback taps over a user-defined length of time. A halfback tap occurs when the high or low of a bar reaches the midpoint (halfback level) of the previous bar. This is a measure of market chop: the more halfback taps, the choppier the market. The fewer halfback taps, the stronger the trend.

The strength of the trend is determined using the Average Directional Index (ADX), a popular trend strength indicator. The ADX is calculated based on the directional movement of the market, with higher values indicating stronger trends.

The CTI combines these two components by multiplying the normalized number of halfback taps by the ADX value. This results in an indicator that rises during strong trends with few halfback taps (either up or down) and falls during periods of market chop.

The CTI is not a directional indicator. Unlike the Relative Strength Index (RSI) or other oscillators, high values do not indicate overbought conditions, and low values do not indicate oversold conditions. Instead, high values indicate a strong trend (and possibly trend exhaustion), while low values indicate strong chop (and possibly an impending breakout in either direction).

The CTI can be used on any market and any timeframe, but it may be particularly useful on longer timeframes where periods of chop and trend are more pronounced.


The CTI includes several user inputs:

Length: This determines the number of bars over which the number of halfback taps is calculated. Increasing this value will make the CTI less sensitive to recent market conditions, while decreasing it will make the CTI more sensitive.

Normalization Window Length: This determines the number of bars over which the CTI is normalized. The CTI is normalized to a scale of 0 to 100 to make it easier to compare across different markets and timeframes.

Chop Threshold: This is the CTI value below which an alert will be triggered indicating a period of severe chop. This could signal an impending breakout and potential upcoming volatility.

Trend Exhaustion Threshold: This is the CTI value above which an alert will be triggered indicating potential trend exhaustion. This could signal a possible mean reversion.

The CTI also includes four colored threshold lines at 10, 25, 75, and 90. These thresholds can be used as a guide to identify periods of chop and trend. For example, CTI values below 10 or above 90 could indicate extreme conditions.


The CTI provides two alert conditions:

Low Threshold Crossed: This alert is triggered when the CTI falls below the user-defined Chop Threshold. This could signal a period of severe chop and the potential for upcoming volatility.

High Threshold Crossed: This alert is triggered when the CTI rises above the user-defined Trend Exhaustion Threshold. This could signal potential trend exhaustion and the possibility of mean reversion.

In conclusion, the CTI is a unique and versatile indicator that can provide valuable insights into market conditions. By identifying periods of chop and trend, it can help traders anticipate potential breakouts and reversals, and adjust their strategies accordingly.
Release Notes
Fixed a bug in the code calculating halfback values.
ADXAverage Directional Index (ADX)CHOPchopandtrendhalfbackreversalTrend Analysistrendexhaustiontrendstrength

Protected script

This script is published closed-source and you may privately use it freely.

Want to use this script on a chart?


Also on:

Disclaimer