Pivot Points Detector - ATR basedThis pivot points detector is a precision-tuned momentum and structural pivot detector designed specifically for high-frequency scalpers (like those trading ES or NQ on the 15-second timeframe).
By combining dynamic volatility filters with structural displacement requirements, it isolates high-conviction reversal points while filtering out the "noise" of lower-timeframe chop.
How It Works
This indicator utilizes a three-gate logic system to ensure that only the most significant market turns are highlighted:
Gate 1: The ATR Momentum Break
The system monitors an ATR (12 / 2.0) trailing stop. A potential pivot is only identified when the price successfully closes across this volatility line, proving that immediate momentum has shifted.
Gate 2: Absolute Structural Anchor
Once a trend change is triggered, the indicator performs a 60-bar retrospective scan (approximately 15 minutes of data) to identify the absolute Highest High or Lowest Low that initiated the move. This pins the marker to the "Source" of the trend rather than the signal bar itself.
Gate 3: The Persistence Proof (Faded vs. Solid)
To prevent "fake outs," the indicator uses a unique faded logic:
Faded Triangle: Appears instantly at the pivot source as a "potential" setup.
12-Tick Run: The triangle only turns Solid if the price travels 12 ticks from that absolute pivot without crossing back over the ATR trail.
Auto-Deletion: If the momentum fails and the ATR trail is breached before the 12-tick target is hit, the faded triangle is automatically wiped from the chart.
Key Features
Clean Visuals: Triangles are printed with a 2-tick offset from the candle wicks for maximum readability.
Label Memory Management: The script maintains a history of the last 200 triangles, ensuring performance stability during long trading sessions.
Fully Customizable: Users can adjust the ATR multiplier, the structural lookback window, the tick-confirmation target, and all visual colors directly from the settings menu.
Trend-Change Focus: Unlike standard Zig-Zags that repainting or mark every wiggle, this tool only prints a marker when a formal ATR trend flip occurs.
Best Use Case: This tool is built for the scalper who needs a reliable "Hard Level" for stop-loss management and re-entry identification. When a triangle turns Solid, it represents a verified structural floor or ceiling that has shown displacement strength.
อินดิเคเตอร์ Pine Script®






















