Convergence Divergence Impulse Counter V0

Aug 2, 2016

Static chart image
Signals
Moving Averages

The Convergence Divergence Impulse Counter V0 indicator tracks and counts the number of short-term impulses that occur in alignment with a broader trend, helping traders identify the maturity of a market move. By analyzing the relationship between price and multiple moving averages, it provides a cumulative count of trend-following surges.

Usage

The indicator is displayed as a histogram that tracks "impulses" within a trend. A trend is defined by the relationship between a fast EMA and a slow EMA. When the fast EMA is above the slow EMA, the trend is considered bullish; when below, it is bearish.

  • Initial Trend Shift: When the trend first establishes itself (the EMAs cross), the counter starts at 1 (bullish) or -1 (bearish).
  • Impulse Counting: As price fluctuates, every time the price crosses back over its short-term EMA in the direction of the main trend, the counter increments. For example, in a bullish trend, each time the price moves from below the fast EMA to above it, the count increases (e.g., 2, 3, 4).
  • Trend Reversal: The counter resets and changes sign only when the broader trend (the relationship between the two EMAs) reverses.

Traders can use this to gauge the strength of a trend. High counts may indicate a strong, persistent trend, but could also suggest an overextended market prone to exhaustion.

Details

The script utilizes two exponential moving averages (EMA) to define the "Convergence Divergence" environment.

  1. Trend Filter: The relationship between EMA 1 (Length 1) and EMA 2 (Length 2) determines the primary trend direction.
  2. Impulse Logic: The script monitors the "CD01" value, which is the distance between price and the fast EMA. An impulse is registered when the price crosses the fast EMA (CD01 crosses 0) while the broader trend remains intact.
  3. Visualization: The counter is plotted as a column chart, with green columns representing bullish impulses and red columns representing bearish impulses.

Settings

  • Length 1: The period for the fast Exponential Moving Average (default is 20). This affects the frequency of impulse detection.
  • Length 2: The period for the slow Exponential Moving Average (default is 100). This determines the sensitivity of the broader trend filter.
  • Source: The price data used for calculations (default is Close).

FAQ

How do I interpret high impulse counts?

High counts indicate that the trend has successfully resumed its direction multiple times. While this shows trend strength, very high numbers might precede a period of consolidation or reversal.

What causes the counter to reset to zero or change direction?

The counter resets and flips its sign when the fast EMA crosses the slow EMA, signaling a change in the primary trend direction.

How can I access this indicator?

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.