The Bar Counter Trend Reversal Strategy

Oct 7, 2024

Static chart image
Price Action Based
Volume Based
Signals
Channels
Volatility

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 access on the following platforms
tradingviewSymbolTradingView
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

ninjatraderNinjaTrader
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

metatrader4MetaTrader 4/5
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

thinkorswimThinkorswim
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.

Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.

As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.

Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.

Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.

This does not represent our full Disclaimer. Please read our full disclaimer.

© 2026 LuxAlgo Global, LLC.