# Internal Pivot Pattern

Internal Pivot Pattern is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

Detects pivot highs and lows the moment a candle closes by reading its lower-timeframe data, skipping the multi-bar wait of classic pivot detection. Candles color by the latest pivot direction, zigzag lines track the developing structure, and an accuracy dashboard scores reliability. For traders who want earlier notice of swing turns.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Jul 30, 2025.
- Access: free.
- Concepts: [Swing High/low](https://www.luxalgo.com/library/concept/swing-high-low/) (primary), [Internal vs External Structure](https://www.luxalgo.com/library/concept/internal-vs-external-structure/)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmpwn2p2e003qvhsg8chaxodb
- Page: https://www.luxalgo.com/library/indicator/internal-pivot-pattern/

**Internal Pivot Pattern** confirms [pivot highs and lows](https://www.luxalgo.com/library/concept/swing-high-low/) the moment a candle closes, reading the bar's lower-timeframe data instead of waiting for neighbors to finish forming. Classic detection asks the middle bar of a window to prove itself against several bars on each side, which builds in lag; this build inspects the swing inside the current candle and calls it immediately.

## How to Trade the Internal Pivot Pattern?

- **Pivot low detected**: a potential bullish turn or continuation. Candles print blue while the latest pivot is a low.
- **Pivot high detected**: a potential bearish shift. Candles print orange while the latest pivot is a high.
- **Zigzag lines**: successive pivots are connected so the developing structure stays readable at a glance.
- **Accuracy Dashboard**: a pivot low counts as accurate when the next pivot's candle closes above the pivot low candle's close, a pivot high when it closes below the pivot high candle's close. Tune settings until the percentage earns your trust.

The Timeframe input controls sensitivity. A much lower timeframe than the chart produces fewer, stronger detections; one close to the chart timeframe fires more often but admits more noise, so scalpers and swing traders will land on different values.

## Internal Pivot Pattern Settings

- **Timeframe**: the lower timeframe scanned for internal swings.
- **Accuracy Dashboard**: toggles the real-time reliability panel.
- **Style**: colors for Internal Pivot High, Internal Pivot Low, the Zig-Zag connector, and trend-based Candle Coloring.

## Frequently Asked Questions

### Why is it earlier than standard pivot detection?

Standard pivots wait for confirming bars on both sides of a candidate, so the label arrives well after the turn itself. This indicator evaluates the current candle's internal data at its close, removing that waiting period entirely.

### How does it differ from a plain zigzag?

A classic [ZigZag](https://www.luxalgo.com/library/indicator/zigzag/) connects confirmed swings and inherits their confirmation delay. Internal Pivot Pattern draws the same kind of structure but anchors it in intrabar evidence, then adds candle coloring and an accuracy readout.

### How can I access the Internal Pivot Pattern?

The indicator is free in the LuxAlgo Library. It also runs in Quant, our coding agent, directly from this page, which makes timeframe experiments quick. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [Swing Highs/Lows & Candle Patterns](https://www.luxalgo.com/library/indicator/swing-highs-lows-candle-patterns/) (Swing High/low): markdown at https://www.luxalgo.com/library/indicator/swing-highs-lows-candle-patterns.md
- [Unreached Highs/Lows Oscillator](https://www.luxalgo.com/library/indicator/unreached-highs-lows-oscillator/) (Swing High/low): markdown at https://www.luxalgo.com/library/indicator/unreached-highs-lows-oscillator.md
- [Pivot High/Low Analysis & Forecast](https://www.luxalgo.com/library/indicator/pivot-high-low-analysis-forecast/) (Swing High/low): markdown at https://www.luxalgo.com/library/indicator/pivot-high-low-analysis-forecast.md
- [Liquidity Sweeps](https://www.luxalgo.com/library/indicator/liquidity-sweeps/) (Swing High/low): markdown at https://www.luxalgo.com/library/indicator/liquidity-sweeps.md
- [Liquidity Swings](https://www.luxalgo.com/library/indicator/liquidity-swings/) (Swing High/low): markdown at https://www.luxalgo.com/library/indicator/liquidity-swings.md
- [Price Simplification](https://www.luxalgo.com/library/indicator/price-simplification/) (Swing High/low): markdown at https://www.luxalgo.com/library/indicator/price-simplification.md
- [Protected Swings](https://www.luxalgo.com/library/indicator/protected-swings/) (Swing High/low): markdown at https://www.luxalgo.com/library/indicator/protected-swings.md
- [Trendlines Oscillator](https://www.luxalgo.com/library/indicator/trendlines-oscillator/) (Swing High/low): markdown at https://www.luxalgo.com/library/indicator/trendlines-oscillator.md

---

Source: https://www.luxalgo.com/library/indicator/internal-pivot-pattern/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
