All indicators

Best Supertrend CCI Strategy

Feb 14, 2020

Static chart image
SignalsOscillatorsTrailing-StopVolatility

The Best Supertrend CCI Strategy indicator is a backtesting tool that reimagines the classic Supertrend logic by utilizing the Commodity Channel Index (CCI) as its primary trend filter rather than standard price action. It provides traders with a systematic way to identify trend shifts and execute automated strategy entries based on momentum-derived volatility bands.

Usage

The strategy can be used to identify trend reversals and momentum shifts in various market conditions. By default, the script generates a "Long" signal when the CCI crosses above the defined midline (typically 0) and a "Short" signal when it crosses below.

Traders can use the trailing stop-loss line (TSL) plotted on the chart to visualize the current trend direction and potential exit points. The indicator changes color based on the relationship between the closing price and the TSL, providing a clear visual cue for the prevailing market sentiment.

Details

Unlike the traditional Supertrend which relies on price closing above or below a volatility band, this version determines the trend state based on the CCI value relative to a midline.

  • Bullish State: Triggered when the CCI crosses above the midline. The Supertrend line is calculated as High + ATR * Factor.
  • Bearish State: Triggered when the CCI crosses below the midline. The Supertrend line is calculated as Low - ATR * Factor.

This implementation allows for a more responsive trend detection mechanism that accounts for cyclical momentum through the CCI while maintaining the volatility-adjusted characteristics of the Average True Range (ATR).

Settings

General Settings

  • Source: Determines the data point used for calculations (e.g., Close, Open, HL2).
  • Alerts Mode: Configures the frequency of alert triggers (Once per bar close, Once per bar, or All).

CCI Settings

  • CCI Period: Sets the lookback period for the Commodity Channel Index calculation.
  • CCI Mid Line pivot: The threshold value for the CCI to determine trend changes (default is 0).

Supertrend (ST) Settings

  • [ST] Factor: The multiplier applied to the ATR to determine the distance of the trailing stop.
  • [ST] PD: The lookback period used for the Average True Range (ATR) calculation.

FAQ

How do I access Best Supertrend CCI Strategy?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

How does this differ from a regular Supertrend?

While a regular Supertrend uses price action to flip the trend direction, this strategy uses the crossing of the CCI midline to determine whether the trend is bullish or bearish.

Can I change the sensitivity of the signals?

Yes, by adjusting the CCI Period or the Supertrend Factor. A lower factor will make the stop-loss line tighter to the price, while a higher CCI period will result in slower, more filtered trend signals.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.