PROTECTED SOURCE SCRIPT

Pivot & Gap

160
PIVOT and GAP – Indicator
PIVOT and GAP is an advanced structural price-action tool designed to detect hidden imbalances in the market by analyzing gap and pivot formations between candles.
It identifies areas where institutional activity may have left a price void, signaling potential Demand or Supply Zones. When these imbalances align with lower-timeframe zones, the probability of a powerful price reaction increases.
This indicator is built for traders who want to combine gap analysis, price-action structure, with multi-timeframe confluence to make smarter trading decisions.

How Does It Work?
The indicator automatically scans candles for two types of imbalances:

1. Demand-Side Imbalances
PIVOT (Demand Pivot Creation)
A Demand Pivot forms when:
a bearish candle is followed by a bullish candle, and
There is a gap/price difference between the bearish candle’s close and the
bullish candle’s open. A blue color box is created
This signals buyers stepping in aggressively after sellers weaken.
GAP (Demand Gap Creation)
A Demand Gap forms when:
two consecutive bullish candles appear, and there is a positive difference between
the first candle’s close and the next candle’s open.
A blue color box is created

This implies strong upward momentum with institutional buying pressure.

2. Supply-Side Imbalances
PIVOT (Supply Pivot Creation)
A Supply Pivot forms when:
A bullish candle is followed by a bearish candle, and
There is a gap/price difference between the bullish candle’s close and the
bearish candle’s open. A red color box is created
This signals sellers stepping in aggressively after buyers exhaust.
GAP (Supply Gap Creation)
A Supply Gap forms when:
Two consecutive bearish candles appear, and There is a negative difference between
the first candle’s close and the next candle’s open.
A red color box is created
This reflects strong downward momentum with institutional selling pressure.

Higher Timeframe Confirmation:
The indicator performs gap and pivot analysis on higher timeframes, and
If combine with Demand Zone or Supply Zone on the lower timeframe which forms on the same candle.
That zone becomes a High-Probability Zone.
Such zones are considered more powerful because they combine:

• Higher timeframe institutional imbalance
• Strong confluence for reversal or continuation
• Demand and Supply zone creation at Lower Time Frame

How Traders Benefit from It?
High-Probability Zones combining HTF imbalance + LTF zone gives traders clearer areas with higher success probability.
Early Detection of Institutional Moves
Gaps and pivots typically occur where big players enter or exit positions.
Reduces Chart Noise
Instead of guessing where a zone matters, the indicator highlights only those backed by real price imbalances.

What Makes This Indicator Unique?
1. Candle-by-Candle Imbalance Detection
Instead of simple gap detection, this indicator reads the difference in open-close levels with high precision.
2. HTF–LTF Confluence Logic
When the same candle shows imbalance on HTF and a Demand & Supply zone on LTF, the zone is tagged as powerful — a unique decision layer not commonly seen in other scripts.
3. Designed From Your Custom Rules
This structure is built from your personal interpretation of how pivots and gaps create pressure zones — not copied from other scripts.

How This Indicator Is Original ?
The entire logic is created from my own rules of identifying pivots and
gaps, not from any open-source or public code.
The unique combination of:
Gap detection
Pivot shift logic
Direction-specific candle sequence
Multi-timeframe zone alignment

No repurposed or copied logic from existing demand-supply indicators.
The design reflects our personal trading experience, analysis style, and
custom definitions of imbalance.

Disclaimer:
This indicator is created for educational purposes.
It does not provide buy or sell signals, and it should not be considered financial advice.
Trading involves risk, and users should perform their own analysis before taking any positions.

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.