All indicators

The Bar Counter Trend Reversal Strategy

Oct 7, 2024

Static chart image
Price Action BasedVolume BasedSignalsChannelsVolatility

The Bar Counter Trend Reversal Strategy tool identifies potential market reversal points by analyzing consecutive price movements in conjunction with optional volume and volatility channel filters. It aims to detect overbought or oversold conditions after a series of trending bars to capture mean-reversion opportunities.

Usage

The strategy triggers signals based on a specified sequence of price action and optional confirmation layers:

  • Consecutive Movements: Users can define the required number of "No. of Rises" or "No. of Falls" to qualify a trend. For example, setting this to 3 requires three consecutive higher closes or lower closes.
  • Volume Confirmation: When enabled, the strategy requires volume to be rising alongside the price trend, suggesting a climactic movement that often precedes a reversal.
  • Channel Interaction: Users can select between Bollinger Bands (BB) or Keltner Channels (KC). If enabled, a long signal requires the price to be below the lower band, and a short signal requires the price to be above the upper band, indicating an extended price state.

The strategy plots green upward triangles for long entries and red downward triangles for short entries. It is best used in mean-reverting markets or as a tool to identify exhaustion points in trending markets.

Details

The script calculates whether the current bar completes a sequence of 'n' bars moving in the same direction using the ta.rising and ta.falling functions. To ensure robustness, the strategy includes logic to prevent duplicate signals until the current trend direction is visually broken (e.g., a higher close for a bearish sequence).

The inclusion of Keltner Channels and Bollinger Bands provides a volatility-adjusted framework. While Bollinger Bands use standard deviation, Keltner Channels utilize Average True Range (ATR), allowing users to choose the sensitivity that best fits the asset's volatility profile.

Settings

Strategy

  • No. of Rises: Sets the number of consecutive rising bars required for a short signal.
  • No. of Falls: Sets the number of consecutive falling bars required for a long signal.
  • Volume Confirmation: Toggle to require increasing volume during the price sequence.

Channel

  • Channel Confirmation: Enable or disable the volatility band filter.
  • Channel Type: Choose between Bollinger Bands ("BB") or Keltner Channels ("KC").
  • Source: The price source used for channel calculations (default is close).
  • Length: The lookback period for the channel calculation.
  • Multiplier: The multiplier for the standard deviation or ATR to determine band width.

FAQ

How do I use the Bar Counter Trend Reversal Strategy?

Configure the number of consecutive bars you wish to track and select your preferred channel confirmation. Monitor the chart for triangle icons which indicate entry points for counter-trend trades.

What is the difference between BB and KC in this script?

Bollinger Bands (BB) expand based on standard deviation, making them more sensitive to sudden price spikes, while Keltner Channels (KC) use ATR, which often results in smoother bands that follow price more consistently.

How can I access the Bar Counter Trend Reversal Strategy?

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

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.