OPEN-SOURCE SCRIPT
Updated AG Pro Pivot Points Reaction Map [AGPro Series]

AG Pro Pivot Points Reaction Map [AGPro Series]
Overview / What it does
AG Pro Pivot Points Reaction Map is an overlay indicator designed to analyze how price behaves around classical pivot levels rather than only plotting those levels as static horizontal references. The script builds Daily or Weekly pivot structures from prior period OHLC data and then tracks the currently active pivot in order to highlight nearby price interaction, reaction quality, and short-term context.
Instead of treating every pivot line equally at all times, the script uses an active-pivot framework. This allows the chart to stay focused on the level that is currently most relevant to price while still keeping broader pivot structure visible in the background. The goal is to help traders evaluate whether price is reacting constructively, rejecting, reclaiming, compressing, or losing a key pivot area.
The visual design is intentionally split into two layers. The first layer is the classical pivot structure itself, including PP, R1, S1, and optional extended levels such as R2 and S2. The second layer is the reaction map built around the active pivot. This layer adds an ATR-based reaction zone, state detection, filtered event labeling, active context tags, and an information panel so the chart can communicate more than a simple “price above” or “price below” condition.
This indicator is intended for chart analysis, workflow support, and structured market reading. It does not attempt to predict future prices, and it should not be interpreted as a standalone trade execution system. It is best used as a contextual overlay that helps organize price behavior around widely followed pivot references.
Unique Edge
The core distinction of this script is that it is not just another pivot plotting tool. Classical pivot indicators usually stop at drawing levels. This script continues one step further by evaluating reaction behavior around the currently active level.
Its main differentiator is the active reaction framework. The script identifies a current pivot focus, builds a dynamic reaction zone around that level, and then classifies price interaction into states such as reclaim, loss, holding behavior, rejection behavior, and compression near pivot. This moves the indicator away from passive level display and toward structured price-context mapping.
A second differentiator is the sticky active pivot logic. Instead of shifting focus too aggressively whenever price becomes marginally closer to a different level, the script attempts to keep chart attention anchored to the current active pivot until conditions justify a transition. This improves visual continuity and makes the chart easier to read during multi-bar interaction.
A third differentiator is signal hygiene. Reaction labels can be filtered through cooldown logic, score thresholds, and event selection rules so that the chart remains readable. Major events can be emphasized while weaker or more repetitive reactions remain in the background. This helps preserve interpretability instead of overwhelming the screen with every minor touch.
Finally, the script combines chart-side cues with a compact state panel. The panel reports the active pivot, pivot price, current distance, live state, last score, and directional bias. This allows users to scan the present context without losing the full visual relationship on the chart.
Methodology
The pivot engine uses prior Daily or Weekly OHLC values to construct standard pivot levels. These levels form the structural base of the indicator. Depending on settings, the script can display the central pivot point together with first and second resistance/support layers.
From that structure, the script evaluates which pivot is currently most relevant to price and assigns that level as the active pivot. A sticky selection process is then used so the active focus does not rotate too easily on minor fluctuations. This helps the script behave more like a context map and less like a constantly flickering nearest-line tracker.
Around the active pivot, the script builds a reaction zone using ATR. This means the mapped zone adapts to the instrument’s recent volatility rather than using a fixed absolute distance. A wider volatility environment naturally leads to a wider interaction zone, while a calmer environment keeps the zone tighter.
Inside that zone, the script studies price behavior using a combination of position relative to the pivot, candle body structure, wick emphasis, and short-term displacement from the level. It also computes a reaction score designed to quantify how constructive or decisive the interaction appears under the script’s logic. Stronger reclaim or rejection characteristics can therefore stand out from weaker, noisier touches.
The result is a layered read of market structure:
- classical pivot references define the environment,
- the active pivot identifies current relevance,
- the ATR-based zone frames the interaction area,
- event logic classifies notable reactions,
- the panel summarizes the current state.
Signals & Alerts
The script can identify and label several reaction types around the active pivot. Depending on settings and score thresholds, these may include reclaim events, pivot loss events, reaction holding behavior, and reaction rejection behavior.
In addition to chart labeling, the script includes alert conditions for major workflow events. These are designed to notify the user when price is showing a notable interaction around the active pivot. Available alert categories include bullish reaction confirmation, bearish reaction confirmation, pivot loss confirmation, compression near pivot, and active pivot changes.
Because this is a contextual indicator rather than a complete strategy, alerts should be interpreted as informational events. They are intended to help users monitor evolving price behavior around important pivot areas, not to replace independent analysis, execution rules, or risk management.
Key Inputs
Pivot Anchor
Selects whether the pivot structure is built from Daily or Weekly source data.
Show R2 / S2
Allows the extended pivot structure to remain visible for users who want broader context beyond PP, R1, and S1.
Base Pivot Line Width / Active Pivot Line Width
Controls the visual hierarchy between background pivot references and the currently active pivot.
Reaction Zone (ATR Multiplier)
Defines the width of the active reaction zone relative to recent volatility.
Wick Emphasis
Adjusts how strongly wick behavior contributes to reaction interpretation.
Signal Cooldown (Bars)
Prevents labels and events from clustering too tightly during noisy price interaction.
Show Reaction Labels / Label Mode / Minimum Label Score
Controls which reaction labels appear on the chart and how selective the script should be.
Focus Mode
Adjusts how aggressively non-active pivot lines fade into the background.
Reaction Label Size
Changes the chart label size for reaction events and edge tags.
Show Event Markers / Show Active Pivot Halo / Show Right Edge Active Tag
Controls optional visual layers that can make the active structure easier to follow.
Passive Context Tags
Adds simplified right-edge tags for passive pivot references so faded background levels remain interpretable.
Show Info Panel / Panel Position / Panel Theme / Panel Font Size
Configures the summary panel to match user preference and chart layout.
Limitations & Transparency
This script is based on classical pivot concepts and volatility-adjusted reaction mapping. It does not know future price direction, and it does not forecast whether any pivot will hold or fail before price interacts with that area.
Reaction labels and scores are formula-driven representations of the script’s internal logic. They are not objective truth statements about market intent, and they should not be interpreted as guaranteed support, guaranteed resistance, or guaranteed continuation/reversal behavior.
Like all level-based overlays, the script can produce different impressions depending on the selected timeframe, instrument volatility, and chart conditions. Fast-moving instruments, low-liquidity environments, and sudden news-driven candles may reduce the practical value of any fixed structural framework, including pivots.
The active pivot model is intentionally selective. That improves chart focus, but it also means the script emphasizes one current pivot context over other simultaneously visible levels. Users who want a broader or more aggressive level-tracking style may prefer different settings than the default configuration.
The indicator is also not a backtesting engine and does not provide complete entry, exit, stop, or position sizing logic. It should therefore be used as one analytical component within a broader decision process.
Risk Disclosure
This indicator is for analytical and educational use only. It does not provide investment advice, trading advice, or financial advice.
Markets involve risk. Price can move through pivot levels without respecting them, reaction quality can deteriorate quickly, and conditions that appear constructive on one bar can fail on the next. No indicator can remove uncertainty from live markets.
Users should evaluate this script together with their own market framework, timeframe selection, execution process, and risk controls. Decisions involving capital should never rely on a single indicator, label, panel reading, or alert event in isolation.
Overview / What it does
AG Pro Pivot Points Reaction Map is an overlay indicator designed to analyze how price behaves around classical pivot levels rather than only plotting those levels as static horizontal references. The script builds Daily or Weekly pivot structures from prior period OHLC data and then tracks the currently active pivot in order to highlight nearby price interaction, reaction quality, and short-term context.
Instead of treating every pivot line equally at all times, the script uses an active-pivot framework. This allows the chart to stay focused on the level that is currently most relevant to price while still keeping broader pivot structure visible in the background. The goal is to help traders evaluate whether price is reacting constructively, rejecting, reclaiming, compressing, or losing a key pivot area.
The visual design is intentionally split into two layers. The first layer is the classical pivot structure itself, including PP, R1, S1, and optional extended levels such as R2 and S2. The second layer is the reaction map built around the active pivot. This layer adds an ATR-based reaction zone, state detection, filtered event labeling, active context tags, and an information panel so the chart can communicate more than a simple “price above” or “price below” condition.
This indicator is intended for chart analysis, workflow support, and structured market reading. It does not attempt to predict future prices, and it should not be interpreted as a standalone trade execution system. It is best used as a contextual overlay that helps organize price behavior around widely followed pivot references.
Unique Edge
The core distinction of this script is that it is not just another pivot plotting tool. Classical pivot indicators usually stop at drawing levels. This script continues one step further by evaluating reaction behavior around the currently active level.
Its main differentiator is the active reaction framework. The script identifies a current pivot focus, builds a dynamic reaction zone around that level, and then classifies price interaction into states such as reclaim, loss, holding behavior, rejection behavior, and compression near pivot. This moves the indicator away from passive level display and toward structured price-context mapping.
A second differentiator is the sticky active pivot logic. Instead of shifting focus too aggressively whenever price becomes marginally closer to a different level, the script attempts to keep chart attention anchored to the current active pivot until conditions justify a transition. This improves visual continuity and makes the chart easier to read during multi-bar interaction.
A third differentiator is signal hygiene. Reaction labels can be filtered through cooldown logic, score thresholds, and event selection rules so that the chart remains readable. Major events can be emphasized while weaker or more repetitive reactions remain in the background. This helps preserve interpretability instead of overwhelming the screen with every minor touch.
Finally, the script combines chart-side cues with a compact state panel. The panel reports the active pivot, pivot price, current distance, live state, last score, and directional bias. This allows users to scan the present context without losing the full visual relationship on the chart.
Methodology
The pivot engine uses prior Daily or Weekly OHLC values to construct standard pivot levels. These levels form the structural base of the indicator. Depending on settings, the script can display the central pivot point together with first and second resistance/support layers.
From that structure, the script evaluates which pivot is currently most relevant to price and assigns that level as the active pivot. A sticky selection process is then used so the active focus does not rotate too easily on minor fluctuations. This helps the script behave more like a context map and less like a constantly flickering nearest-line tracker.
Around the active pivot, the script builds a reaction zone using ATR. This means the mapped zone adapts to the instrument’s recent volatility rather than using a fixed absolute distance. A wider volatility environment naturally leads to a wider interaction zone, while a calmer environment keeps the zone tighter.
Inside that zone, the script studies price behavior using a combination of position relative to the pivot, candle body structure, wick emphasis, and short-term displacement from the level. It also computes a reaction score designed to quantify how constructive or decisive the interaction appears under the script’s logic. Stronger reclaim or rejection characteristics can therefore stand out from weaker, noisier touches.
The result is a layered read of market structure:
- classical pivot references define the environment,
- the active pivot identifies current relevance,
- the ATR-based zone frames the interaction area,
- event logic classifies notable reactions,
- the panel summarizes the current state.
Signals & Alerts
The script can identify and label several reaction types around the active pivot. Depending on settings and score thresholds, these may include reclaim events, pivot loss events, reaction holding behavior, and reaction rejection behavior.
In addition to chart labeling, the script includes alert conditions for major workflow events. These are designed to notify the user when price is showing a notable interaction around the active pivot. Available alert categories include bullish reaction confirmation, bearish reaction confirmation, pivot loss confirmation, compression near pivot, and active pivot changes.
Because this is a contextual indicator rather than a complete strategy, alerts should be interpreted as informational events. They are intended to help users monitor evolving price behavior around important pivot areas, not to replace independent analysis, execution rules, or risk management.
Key Inputs
Pivot Anchor
Selects whether the pivot structure is built from Daily or Weekly source data.
Show R2 / S2
Allows the extended pivot structure to remain visible for users who want broader context beyond PP, R1, and S1.
Base Pivot Line Width / Active Pivot Line Width
Controls the visual hierarchy between background pivot references and the currently active pivot.
Reaction Zone (ATR Multiplier)
Defines the width of the active reaction zone relative to recent volatility.
Wick Emphasis
Adjusts how strongly wick behavior contributes to reaction interpretation.
Signal Cooldown (Bars)
Prevents labels and events from clustering too tightly during noisy price interaction.
Show Reaction Labels / Label Mode / Minimum Label Score
Controls which reaction labels appear on the chart and how selective the script should be.
Focus Mode
Adjusts how aggressively non-active pivot lines fade into the background.
Reaction Label Size
Changes the chart label size for reaction events and edge tags.
Show Event Markers / Show Active Pivot Halo / Show Right Edge Active Tag
Controls optional visual layers that can make the active structure easier to follow.
Passive Context Tags
Adds simplified right-edge tags for passive pivot references so faded background levels remain interpretable.
Show Info Panel / Panel Position / Panel Theme / Panel Font Size
Configures the summary panel to match user preference and chart layout.
Limitations & Transparency
This script is based on classical pivot concepts and volatility-adjusted reaction mapping. It does not know future price direction, and it does not forecast whether any pivot will hold or fail before price interacts with that area.
Reaction labels and scores are formula-driven representations of the script’s internal logic. They are not objective truth statements about market intent, and they should not be interpreted as guaranteed support, guaranteed resistance, or guaranteed continuation/reversal behavior.
Like all level-based overlays, the script can produce different impressions depending on the selected timeframe, instrument volatility, and chart conditions. Fast-moving instruments, low-liquidity environments, and sudden news-driven candles may reduce the practical value of any fixed structural framework, including pivots.
The active pivot model is intentionally selective. That improves chart focus, but it also means the script emphasizes one current pivot context over other simultaneously visible levels. Users who want a broader or more aggressive level-tracking style may prefer different settings than the default configuration.
The indicator is also not a backtesting engine and does not provide complete entry, exit, stop, or position sizing logic. It should therefore be used as one analytical component within a broader decision process.
Risk Disclosure
This indicator is for analytical and educational use only. It does not provide investment advice, trading advice, or financial advice.
Markets involve risk. Price can move through pivot levels without respecting them, reaction quality can deteriorate quickly, and conditions that appear constructive on one bar can fail on the next. No indicator can remove uncertainty from live markets.
Users should evaluate this script together with their own market framework, timeframe selection, execution process, and risk controls. Decisions involving capital should never rely on a single indicator, label, panel reading, or alert event in isolation.
Release Notes
Update Notes - V1.1This update focuses on presentation quality, panel consistency, and chart readability.
• Rebuilt the info panel using the current AG Pro layout standard.
• Added a single merged header row with the script name and the standard blue header styling.
• Refined panel spacing, borders, and text contrast for a cleaner dark/light theme experience.
• Set the default panel font size to Small for a more compact and professional layout.
• Kept reaction labels at a Normal default size for balanced visibility on the chart.
• Improved the visual hierarchy between the active pivot and passive context levels.
• Softened reaction zones and surrounding visual layers so candles remain easier to read.
• Reduced visual dominance of non-primary elements to keep focus on the active pivot workflow.
• Cleaned up the right-edge context presentation for a more organized chart finish.
• Preserved the original indicator concept while improving usability and overall chart clarity.
No change in this update should be interpreted as a promise of future performance.
This script remains a visual analysis and alert-assistance tool, not a prediction engine or automated trading system.
Use it as part of a broader chart review process and risk-managed decision framework.
Release Notes
Update Notes - Version 2.0This update refines the script into a more structured pivot reaction workflow and improves overall chart readability.
- Reworked the active pivot selection logic so the script stays focused on the most relevant pivot level instead of rotating too quickly on minor price shifts.
- Expanded the reaction engine with clearer event states, including Sweep Reclaim, Sweep Reject, Reclaim, Loss, Hold, and Reject.
- Added Pivot Memory Zones to project stronger pivot reaction areas as extended support or resistance shelves.
- Improved the visual hierarchy with a cleaner AG Pro panel header, adjustable panel location, theme selection, and configurable panel and label sizing.
- Updated label placement with ATR-based offsets so reaction labels remain easier to read and less likely to overlap candles.
- Reduced unnecessary clutter by controlling event density through scoring and cooldown logic, while keeping enough context on the chart.
- Refined passive context tags so the chart keeps key pivot references visible without duplicating the active focus unnecessarily.
- Added alert coverage for bullish reactions, bearish reactions, sweep events, pivot loss conditions, compression states, and active pivot changes.
This release remains a price-action support tool designed to help traders read pivot behavior, monitor support and resistance reactions, and track higher-quality pivot rotations in a cleaner visual format.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
⚡Precision Pine tools for crypto & FX traders
📊ICT • Smart Money • Market Structure • Liquidity
🧠Rules-based decision tools. No hype. No guesswork
🆕Public-free releases. Continuous updates
⭐Follow AGPro Series for new trading tools
💬t.me/agprolabs
📊ICT • Smart Money • Market Structure • Liquidity
🧠Rules-based decision tools. No hype. No guesswork
🆕Public-free releases. Continuous updates
⭐Follow AGPro Series for new trading tools
💬t.me/agprolabs
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
⚡Precision Pine tools for crypto & FX traders
📊ICT • Smart Money • Market Structure • Liquidity
🧠Rules-based decision tools. No hype. No guesswork
🆕Public-free releases. Continuous updates
⭐Follow AGPro Series for new trading tools
💬t.me/agprolabs
📊ICT • Smart Money • Market Structure • Liquidity
🧠Rules-based decision tools. No hype. No guesswork
🆕Public-free releases. Continuous updates
⭐Follow AGPro Series for new trading tools
💬t.me/agprolabs
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.