On-chart Wavetrend Divergence with Pivots
Sep 28, 2021

The On-chart Wavetrend Divergence with Pivots indicator combines the oscillator-based WaveTrend momentum signals with automated Pivot Point levels to identify potential reversals and key support/resistance zones directly on the price chart. This tool aims to provide traders with a comprehensive view of momentum exhaustion and structural price levels without needing to switch between sub-pane oscillators and the main chart.
Usage
The script is primarily used to identify trend exhaustion through WaveTrend divergences and validate those signals against classic structural levels (Pivots).
- Divergence Signals: The indicator plots colored circles on the chart when a divergence is detected between price and the underlying WaveTrend calculation:
- Red Circle: Regular Bearish Divergence.
- Orange Circle: Hidden Bearish Divergence.
- Green Circle: Regular Bullish Divergence.
- Aqua Circle: Hidden Bullish Divergence.
- Pivot Levels: These lines serve as dynamic support and resistance. They are often used for setting Take Profit (at R1/R2 or S1/S2) or Stop Loss levels.
- Timeframe Synergy: While the WaveTrend component is a lagging indicator based on EMAs, the Pivot Points act as leading indicators. Combining these two helps filter out false momentum signals that occur in the middle of a range. It is recommended for higher timeframes (H1, H4, D), though settings can be adjusted for scalping.
Details
The script integrates the logic of the WaveTrend oscillator, which calculates the relationship between price (OHLC4) and its EMA to determine overbought/oversold conditions. The divergence logic checks for discrepancies between price action peaks/valleys and the WaveTrend (WT1) peaks/valleys within a user-defined lookback window.
The Pivot Point component supports several calculation methods, including Traditional, Fibonacci, Woodie, Classic, DeMark, and Camarilla. The resolution of these pivots can be set to "Auto," which scales based on the chart timeframe (e.g., displaying Daily pivots on intraday charts and Weekly/Monthly pivots on higher timeframes).
Settings
- WaveTrend Channel Length: The period used for the initial price smoothing (EMA).
- WaveTrend Average Length: The period used to calculate the WaveTrend signal line.
- Divergence Pivot Lookback (Right/Left): Determines the number of bars used to confirm a pivot high or low for divergence detection.
- Lookback Range (Min/Max): Defines the window of bars searched to find a previous peak or valley to compare against the current one.
- Plot [Type] Divergence: Toggles for Bullish, Bearish, Hidden Bullish, and Hidden Bearish signals.
- Type: Selects the Pivot Point calculation method (e.g., Fibonacci, Traditional).
- Pivots Timeframe: Sets the anchor timeframe for pivot levels (Daily, Weekly, etc.).
- Number of Pivots Back: Controls how many historical pivot levels are drawn on the chart.
- Use Daily-based Values: Determines if pivots use daily OHLC data or intraday data (taking extended hours into account).
FAQ
How do I use the different colored circles? The circles represent WaveTrend divergences. Green/Aqua circles suggest potential upward moves (Bullish), while Red/Orange circles suggest potential downward moves (Bearish).
Which Pivot Type should I use? "Traditional" is common for many floor traders, while "Fibonacci" is popular in crypto and forex markets for identifying retracement levels.
How can I access On-chart Wavetrend Divergence with Pivots? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
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.

