PivotBoss Oscillator

11
### Overview
The **PivotBoss Oscillator Indicator** is a high-precision momentum and market-regime engine that bridges institutional auction theory with oscillator dynamics. It combines cycle-normalized momentum, directional trend strength (DMI/ADX), Pivot DEMA smoothing, and a native Pine Script Zigzag divergence engine into a single clean lower-pane workspace.

### Market Regimes:
Long Zone vs. Short Zone detection for Intraday Trading Opportunities
The oscillator automatically identifies the prevailing institutional trend regime by combining directional movement with structural baseline momentum along with Trend Direction analysis and current volume metrics to judge the confidence in the ongoing trend.

- **🟢 LONG ZONE :
Indicates confirmed bullish dominance. Price is supported by active buying pressure and short-term momentum is expanding above the institutional baseline. Look for long pullbacks, continuation setups, and hidden bullish divergences.
- **🔴 SHORT ZONE :
Indicates confirmed bearish dominance. Selling volume controls the auction and short-term momentum is suppressed below the institutional baseline. Look for short relief rallies, breakdown extensions, and hidden bearish divergences.
- **⚪ NO TRADE ZONE**:
Fired when directional indicators and momentum baseline conflict, signaling range-bound chop or indecision. The left side pane have reminders about what to avoid and what to follow during trading with the tagline 'The Best Loser Wins' which is a reality of the professional trading.

### Exhaustion Signals:
Top Swing & Bottom Swing. For Intraday Swing Trading Opportunities. These institutional inflection alerts detect rejection of extended prices around Pivot EMAs, pinpointing high-probability turning points:

- **🔻 TOP SWING**:
Fires when price attempts to drive higher above short/medium Pivot EMAs during a bearish or exhausting regime, but fails and closes back below them under negative directional pressure. This signals an institutional swing high rejection or distribution fade.
- **🔺 BOTTOM SWING**:
Fires when price probes beneath short/medium Pivot EMAs during a bullish or oversold regime, but gets quickly absorbed and reclaims a close back above them under positive directional pressure. This signals an institutional swing low rejection or accumulation bounce.

### The 4 Divergence Types Explained
Using a native Pine object-oriented Zigzag engine with **linear penetration filtering (zero trendline slicing)**, the oscillator scans and validates 4 structural divergence setups across 8 built-in oscillators or any external input:

| Divergence Type | Label | Color | Price Action | Oscillator | Market Context |

| **Bullish Regular** | `D` | **Green** | Lower Low (LL) | Higher Low (HL) | Trend Reversal / Seller Exhaustion |
| **Bearish Regular** | `D` | **Red** | Higher High (HH) | Lower High (LH) | Trend Reversal / Buyer Exhaustion |
| **Bullish Hidden** | `H` | **Lime** | Higher Low (HL) | Lower Low (LL) | Trend Continuation (Dip in Uptrend) |
| **Bearish Hidden** | `H` | **Orange** | Lower High (LH) | Higher High (HH) | Trend Continuation (Rally in Downtrend) |

- **Zero-Slicing Filter**: Automatically invalidates phantom divergences where intervening price action breaches the theoretical trendline.
- **Interactive Tooltips**: Hover over any label (`D` / `H`) to inspect exact prices, oscillator values, and swing ratios.

### How to Trade with PivotBoss Oscillator
1. **Trend Continuations**: Trade strictly in the direction of the active regime (**Long Zone** or **Short Zone**) and enter on **Hidden Divergences (`H`)** or **Bottom/Top Swings** that align with trend direction.
2. **Trend Reversals**: Watch for **Regular Divergences (`D`)** combined with an opposing **Top Swing** (at resistance) or **Bottom Swing** (at support).
3. **Execution & Risk**: Confirm setups with session Central Pivot Range (CPR) and Camarilla levels (H4/L4). Never trade divergence signals in isolation.

### Credits & Technical Foundations
The theoretical foundation of this indicator builds upon proven auction and technical analysis frameworks and the community of TradingView coders who keeps on publishing brilliant ideas everyday on the World's Best Trading Platform. Special mentions:
- **Frank Ochoa (*Secrets of a Pivot Boss*)**: Mathematical principles of the Central Pivot Range (CPR), Pivot DEMA dynamics, and multi-timeframe auction framework.
- **J. Welles Wilder**: Directional Movement Index (DMI) and Average Directional Index (ADX).
- **Larry Williams**: Principles of normalized cycle momentum (%R).


This indicator is designed to distinguish the market noise and clear trending markets with the help of various oscillator metrics based on the concepts of the 'Secrets of a Pivot Boss' book. The bottom and top green red coloured levels are designed by me for plotting the Weekly and Daily EMA on the oscillators on intraday timeframe charts. The Outside layers of these levels shows bullish/bearish markets on Weekly timeframe basis and the Internal layer shows the bullish/bearish markets on the Daily timeframe basis, both plotted for the intraday timeframe charts.

### Disclaimer
This script is created solely for educational and analytical purposes and does not constitute financial, investment, or trading advice. Trading cryptocurrencies, futures, forex, and equities involves significant risk of capital loss. Past performance, backtests, or indicator signals do not guarantee future profitability. Always practice sound position sizing and risk management, and thoroughly test strategies in simulated environments before executing live trades.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.