OPEN-SOURCE SCRIPT
Aggiornato AG Pro Price Acceptance Profile [AGPro Series]

AG Pro Price Acceptance Profile [AGPro Series]
OVERVIEW
AG Pro Price Acceptance Profile is a price-structure tool designed to reveal where the market is spending time, where it is repeatedly returning, and where it is rejecting price efficiently.
Instead of using volume distribution, signal arrows, or breakout-style triggers, this script builds an acceptance/rejection map from price-time interaction inside a rolling lookback window. The goal is simple: make it easier to identify where price is being accepted, where it is being rejected, and whether current price is trading inside balance or at its outer edges.
This is not a volume profile clone, not a support/resistance line generator, and not a momentum signal script. It focuses on one specific question:
Which price areas are currently showing repeated acceptance, and which areas are failing to hold price?
That narrow focus is intentional. The script is built as an analytical context tool rather than an entry engine.

UNIQUE EDGE
The core idea is to measure acceptance through price-time behavior rather than centralized volume data.
The profile logic evaluates how often price revisits a zone, how long it tends to remain there, and how efficiently it exits that zone. This creates a structured map of:
- Acceptance zones
- Rejection zones
- The active balance area
- The current market state relative to that balance
Because the methodology is based on price persistence and revisit behavior, the script can be useful on markets where volume-based profiling is either unavailable, fragmented, or not the preferred analytical lens.
METHODOLOGY
The script divides the rolling price range into rows and evaluates each row using multiple internal dimensions derived from recent bars:
1) Time at price
Measures how frequently the market occupies each row across the selected lookback.
2) Revisit density
Tracks how often price returns to a row after leaving it. Repeated revisits can indicate ongoing acceptance or unfinished balancing behavior.
3) Dwell persistence
Approximates whether the market tends to spend stable time in an area rather than only touching it briefly.
4) Rejection speed
Measures how efficiently price exits an area after interaction. Faster and cleaner exits tend to support rejection classification.
5) Balance mapping
Uses the strongest acceptance region to define the current balance area and then classifies the live market location relative to it.
The result is a simplified profile-style framework built from price behavior itself.
HOW TO READ IT
The large balance area highlights the current acceptance region derived from the profile engine.
Acceptance zones mark price areas that showed stronger persistence, repeated interaction, and better structural acceptance within the chosen lookback.
Rejection zones mark areas where price interacted but failed to remain stable, leading to less durable occupation and faster displacement.
The panel is designed to summarize the current profile state:
- Acceptance Strength: relative quality of the dominant accepted area
- Revisit Density: how actively the market is returning to profiled zones
- Balance Width: width of the accepted region relative to the full profiled range
- Rejection Speed: how efficiently price is leaving unstable areas
- Location: whether current price is inside, above, or below balance
In practice, traders can use the script to distinguish between stable trade location and unstable trade location, instead of treating every nearby level as equally important.

KEY INPUTS
Lookback
Controls how much recent history is used to build the profile.
Rows
Defines profile resolution. Higher values increase granularity but can also make the map more sensitive.
Acceptance Threshold / Rejection Threshold
Adjust how selective the script is when classifying stronger acceptance and rejection areas.
Maximum Acceptance / Rejection Zones
Controls chart density and visual focus.
Panel and label settings
Allow adaptation for different chart layouts and screen sizes.
LIMITATIONS AND TRANSPARENCY
This script does not predict future price movement.
It does not generate guaranteed reversal points.
It does not replace execution logic or risk management.
Acceptance and rejection are contextual measurements derived from the selected lookback and row resolution. Different settings can produce different maps because the profile is adaptive by design.
As with any charting tool based on rolling historical context, zones may evolve when older bars leave the lookback window and new bars enter it.
This script is best used as a contextual framework for market location, not as a standalone trade mandate.
RISK DISCLOSURE
This indicator is for analytical and educational use only. It does not provide financial advice, investment advice, or trading guarantees. All trading decisions remain the responsibility of the user.
OVERVIEW
AG Pro Price Acceptance Profile is a price-structure tool designed to reveal where the market is spending time, where it is repeatedly returning, and where it is rejecting price efficiently.
Instead of using volume distribution, signal arrows, or breakout-style triggers, this script builds an acceptance/rejection map from price-time interaction inside a rolling lookback window. The goal is simple: make it easier to identify where price is being accepted, where it is being rejected, and whether current price is trading inside balance or at its outer edges.
This is not a volume profile clone, not a support/resistance line generator, and not a momentum signal script. It focuses on one specific question:
Which price areas are currently showing repeated acceptance, and which areas are failing to hold price?
That narrow focus is intentional. The script is built as an analytical context tool rather than an entry engine.
UNIQUE EDGE
The core idea is to measure acceptance through price-time behavior rather than centralized volume data.
The profile logic evaluates how often price revisits a zone, how long it tends to remain there, and how efficiently it exits that zone. This creates a structured map of:
- Acceptance zones
- Rejection zones
- The active balance area
- The current market state relative to that balance
Because the methodology is based on price persistence and revisit behavior, the script can be useful on markets where volume-based profiling is either unavailable, fragmented, or not the preferred analytical lens.
METHODOLOGY
The script divides the rolling price range into rows and evaluates each row using multiple internal dimensions derived from recent bars:
1) Time at price
Measures how frequently the market occupies each row across the selected lookback.
2) Revisit density
Tracks how often price returns to a row after leaving it. Repeated revisits can indicate ongoing acceptance or unfinished balancing behavior.
3) Dwell persistence
Approximates whether the market tends to spend stable time in an area rather than only touching it briefly.
4) Rejection speed
Measures how efficiently price exits an area after interaction. Faster and cleaner exits tend to support rejection classification.
5) Balance mapping
Uses the strongest acceptance region to define the current balance area and then classifies the live market location relative to it.
The result is a simplified profile-style framework built from price behavior itself.
HOW TO READ IT
The large balance area highlights the current acceptance region derived from the profile engine.
Acceptance zones mark price areas that showed stronger persistence, repeated interaction, and better structural acceptance within the chosen lookback.
Rejection zones mark areas where price interacted but failed to remain stable, leading to less durable occupation and faster displacement.
The panel is designed to summarize the current profile state:
- Acceptance Strength: relative quality of the dominant accepted area
- Revisit Density: how actively the market is returning to profiled zones
- Balance Width: width of the accepted region relative to the full profiled range
- Rejection Speed: how efficiently price is leaving unstable areas
- Location: whether current price is inside, above, or below balance
In practice, traders can use the script to distinguish between stable trade location and unstable trade location, instead of treating every nearby level as equally important.
KEY INPUTS
Lookback
Controls how much recent history is used to build the profile.
Rows
Defines profile resolution. Higher values increase granularity but can also make the map more sensitive.
Acceptance Threshold / Rejection Threshold
Adjust how selective the script is when classifying stronger acceptance and rejection areas.
Maximum Acceptance / Rejection Zones
Controls chart density and visual focus.
Panel and label settings
Allow adaptation for different chart layouts and screen sizes.
LIMITATIONS AND TRANSPARENCY
This script does not predict future price movement.
It does not generate guaranteed reversal points.
It does not replace execution logic or risk management.
Acceptance and rejection are contextual measurements derived from the selected lookback and row resolution. Different settings can produce different maps because the profile is adaptive by design.
As with any charting tool based on rolling historical context, zones may evolve when older bars leave the lookback window and new bars enter it.
This script is best used as a contextual framework for market location, not as a standalone trade mandate.
RISK DISCLOSURE
This indicator is for analytical and educational use only. It does not provide financial advice, investment advice, or trading guarantees. All trading decisions remain the responsibility of the user.
Note di rilascio
UPDATE NOTES - V1.1This first update focuses on presentation quality, chart readability, and clearer visual prioritization inside the existing price-acceptance framework.
The core purpose of the script remains the same: to map accepted and rejected price areas in a structured way so users can evaluate where balance, revisit behavior, and rejection pressure may be developing. This release does not reposition the script or introduce predictive claims. Instead, it refines how the existing profile is displayed on the chart so the most relevant zones and metrics can be interpreted more quickly.
What changed
• Improved zone hierarchy
Acceptance and rejection areas now use a cleaner visual ranking structure so the most relevant zones stand out more clearly at first glance.
• Added optional rank-and-score labels
Zone labels can now display both the zone rank and its relative score, making the visual output easier to interpret directly on the chart.
• Added optional zone midlines
A thin midpoint line can now be shown inside each displayed zone for cleaner structure definition and more precise chart reading.
• Refined balance-area presentation
The balance block has been visually softened so it provides context without overpowering the active acceptance and rejection zones.
• Improved panel presentation
The status panel has been updated with a cleaner visual hierarchy and more distinct metric separation, especially in light-theme layouts.
• Updated default display balance
Default visual settings were adjusted to produce a more polished chart appearance while preserving the script’s original analytical intent.
What did not change
• The script still evaluates price acceptance and rejection using the same underlying profile-based framework.
• This update is primarily visual and presentational.
• No claim is being made that the script predicts future price direction.
• The tool should still be used as a contextual chart-reading aid, not as a standalone decision engine.
Notes
• Users who prefer a simpler display can still reduce label detail, hide midlines, or adjust panel and label sizes in Settings.
• Visual output may vary depending on symbol, timeframe, chart scale, and selected display inputs.
Note di rilascio
AG Pro Price Acceptance Profile [AGPro Series]UPDATE NOTES - V1.3
This update focuses on chart clarity, label hierarchy, and a cleaner visual presentation for the acceptance profile structure.
• Refined the panel header into a single merged first row with the standard AG Pro blue title bar.
• Set the default panel text size to Small for a more compact top-right footprint.
• Kept label text at Normal size to improve readability in publish screenshots and live chart use.
• Improved right-edge label spacing to reduce overlap between nearby acceptance and rejection zones.
• Enhanced the strongest zones with a more prominent visual emphasis for a cleaner hierarchy.
• Strengthened the balance area edge definition to make the active profile structure easier to read.
• Preserved the core acceptance / rejection profile logic while improving the overall chart presentation.
This update is primarily visual and structural. It is designed to improve readability, chart balance, and screenshot quality without changing the core purpose of the tool.
For educational and analytical use only. Not financial advice.
Note di rilascio
UPDATE NOTES — v1.4Brand & Standards
- Header, panel and palette aligned to the AGPro Series visual standard.
- Panel uses the standardized merged blue header row, no version number displayed.
- Script title standard applied; "AG Pro" kept only in shorttitle and panel header.
New Context Layer
- Acceptance Heatmap: subtle dwell-density shading across the full lookback range for cleaner structural context (toggle on/off).
- Balance Rotation: compares first-half vs second-half activity centers to report Stable, Migrating Up or Migrating Down.
- VAH / VAL labels now show explicit price levels at the right edge.
Zone Rendering
- Acceptance and rejection zones are now long horizontal S/R-style boxes that span the lookback window and project into the future.
- Improved label collision resolver and right-edge projection keep labels clearly outside of candles.
- Minimum zone gap control prevents clustering.
Panel
- Position selector expanded (Top/Bottom/Middle, Left/Right).
- Panel and label text sizes are fully adjustable; default is Normal.
- Optional Compact layout keeps the footprint tight.
Alerts
- Optional alerts for Accepted, Rejected, Rotation Up and Rotation Down transitions (bar-close confirmed).
Notes
- This is a visualization and structural context tool, not a trading strategy.
- No solicitation, no external links, no performance claims.
Note di rilascio
UPDATE NOTES - V1.5This update focuses on stronger chart presence, cleaner panel structure and better performance while preserving the original price-time acceptance concept.
What changed:
- Added subtle Balance Edge Zones around Value Area High and Value Area Low for a stronger support/resistance-style read without turning the script into a supply/demand tool.
- Added a new Profile Quality metric that combines acceptance strength, revisit activity, zone separation and balance width into one clear dashboard value.
- Added State Sensitivity control with Responsive, Balanced and Strict modes.
- Improved right-side label projection so zone labels sit cleaner outside the candle area.
- Kept both label and panel text size adjustable, with Normal as the default.
- Refined the panel header into the standard single merged blue title row.
- Kept only the script panel title in the first panel row.
- Optimized the profile engine so the heavier profile calculations run only for the active last-bar view.
- Added alertcondition support for Accepted, Rejected, Rotation Up and Rotation Down states.
- Updated the public script title format by removing the AG Pro prefix while keeping the [AGPro Series] suffix.
The script remains focused on price-time acceptance, rejection behavior, active balance structure, VAH/VAL context and balance migration. It does not use volume profile logic, supply/demand detection, fair value gaps, order blocks, liquidity sweeps or breakout signals, keeping it clearly separated from other AGPro Series tools.
Note di rilascio
UPDATE NOTES - V1.6This is a small screenshot polish update. The core Price Acceptance Profile engine, state logic, alerts and calculations are unchanged.
- Slightly extended the default zone projection to create a cleaner right-side visual shelf.
- Increased the default label offset so VAH/VAL, acceptance, rejection and rotation labels sit farther away from the candles.
- Softened the broad balance area fill by one step for better candle readability.
- Preserved the standard single merged blue panel header row.
No calculation logic was changed in this release.
Note di rilascio
🔧 UPDATE NOTES - V1.7This update focuses on decision-state clarity, publication-quality visuals, panel readability, and cleaner interpretation of the existing price-time acceptance model.
The core purpose of the script remains unchanged.
This release improves how the existing acceptance, rejection, balance, and rotation logic is presented, organized, and interpreted on the chart.
This script continues to function as an analytical and visualization tool.
It does not attempt to predict price direction or provide guaranteed outcomes.
------------------------
What Changed
------------------------
• Added a clearer Acceptance Score framework
The panel now summarizes profile quality as a 0-100 Acceptance Score with a grade. This makes the tool easier to read at a glance and gives the current profile state a clearer decision-support structure.
• Added stronger next-action states
The script now reports clearer action states such as ACCEPTANCE READY, ACCEPTED UP, ACCEPTED DOWN, REJECTION REVIEW, EDGE REVIEW, MONITOR BALANCE, and WAIT PROFILE.
• Improved zone text and visual hierarchy
The active balance area, edge zones, acceptance zones, and rejection zones can now display centered text. This makes the chart more readable and gives the profile map a stronger publication-ready appearance.
• Refined label density
Event labels now use cooldown, maximum label count, and label memory controls. This helps keep the chart active without allowing old labels to dominate the current structure.
• Improved right-side tags
VAH, VAL, accepted midpoint, active score, acceptance zones, and rejection zones now read more clearly as right-side shelf references.
• Reworked the panel into a decision panel
The panel now emphasizes State, Acceptance Score, Acceptance, Rejection, Rotation, Location, and Action instead of presenting only raw profile metrics.
------------------------
Visual Improvements
------------------------
• Improved chart readability by adding centered text inside the most important profile zones
• Reduced visual clutter through better label spacing, event memory, and controlled defaults
• Refined visual hierarchy so balance, acceptance, rejection, and edge zones are easier to distinguish
• Improved right-side label structure so key levels sit outside candles more cleanly
• Strengthened the panel color flow so current state and action stand out immediately
------------------------
Interface & Usability
------------------------
• Optimized panel layout for clearer information flow
• Added a cleaner score-and-action model for faster interpretation
• Improved label readability for live chart interaction and publish screenshots
• Kept panel show/hide, panel location, theme, and font size controls available
• Kept label font size adjustable, with Normal as the default
------------------------
Behavior Notes
------------------------
This update does not change the core analytical purpose of the script.
The script remains focused on price-time acceptance, rejection behavior, balance migration, and active trade-location context.
The updated action states are context labels, not trade instructions.
Users should interpret the outputs as market structure and trade-location context rather than predictive signals.
------------------------
Limitations Reminder
------------------------
The script remains a rule-based analytical tool.
Market conditions such as volatility, liquidity, timeframe differences, and selected lookback settings may affect how acceptance and rejection zones appear.
The profile is adaptive by design, so zones may change as older bars leave the lookback window and newer bars enter it.
------------------------
Risk Reminder
------------------------
This script is for educational and analytical purposes only.
It does not provide financial advice or guaranteed trading outcomes.
Users remain responsible for their own decisions, execution, and risk management.
Note di rilascio
🔧 UPDATE NOTES - v1.9This update focuses on cleaner, color-coded centered zone badges for stronger readability.
The core purpose of the script remains unchanged.
This release improves how the existing acceptance profile is presented on the chart.
This script continues to function as an analytical and visualization tool.
It does not attempt to predict price direction or provide guaranteed outcomes.
------------------------
What Changed
------------------------
- Zone labels are now color-coded badges
The centered text inside the balance area, acceptance zones, rejection zones, and the VAH / VAL edge ribbons is now drawn as a solid badge in each zone's own color, with high-contrast text. This makes every zone instantly identifiable at a glance.
- Single-line, self-contained badges
Each badge sits on a single line and is centered inside its zone, so labels stay clear and readable even where zones sit close together.
- Cleaner separation between zones and text
Moving the labels onto solid badges removes the faded-text-on-fill look, so the zone fills stay soft while the labels stay crisp.
------------------------
Visual Improvements
------------------------
- Centered each zone label as a solid color badge matching the zone
- Improved label contrast and first-glance readability
- Reduced text overlap in clustered zone areas
- Kept every zone labeled with its own centered badge
------------------------
Interface & Usability
------------------------
- Centered zone badges remain optional from the settings
- Kept the existing panel, zones, edges, midlines, and right-side tags unchanged
- Enhanced overall presentation without changing core logic
------------------------
Behavior Notes
------------------------
This update does not change the core analytical logic of the script.
The acceptance score, state engine, balance area, rotation, and zone selection all behave exactly as before.
Users should interpret outputs the same way as before, but with clearer color-coded zone badges.
------------------------
Limitations Reminder
------------------------
The script remains a rule-based analytical and visualization tool.
Market conditions such as volatility, liquidity, and timeframe differences may affect how zones, balance, and labels appear.
Outputs should always be interpreted within broader market context.
------------------------
Risk Reminder
------------------------
This script is for educational and analytical purposes only.
It does not provide financial advice or guaranteed trading outcomes.
Users remain responsible for their own decisions.
Note di rilascio
🔧 UPDATE NOTES - v1.10This update focuses on label contrast and on-chart overlap cleanup.
The core purpose of the script remains unchanged. It still maps a time-based
acceptance profile, identifies the active balance area, ranks acceptance and
rejection zones, tracks balance migration, and organizes everything into a
0-100 Acceptance Score with next-action states.
This script continues to function as an analytical and visualization tool.
It does not attempt to predict price direction or provide guaranteed outcomes.
------------------------
What Changed
------------------------
• Contrast-aware text on every colored element
Text color is now derived from each element's actual background luminance, for
the balance / acceptance / rejection centered badges, the acceptance and
rejection right-side tags, the VAH / VAL / Score / rotation tags, the event
labels, and the panel State, Acceptance Score, Rotation and Action cells.
Previously several of these used light text on the brighter pink (rejection),
indigo (balance/accent) and amber (rotation/neutral) backgrounds, which read
faintly. Every label and cell now reads crisply regardless of state.
• Compact, non-overlapping centered zone badges
Centered zone labels were shortened to "Balance", "Acc 1/2/3" and "Rej 1/2".
The balance badge was also shifted horizontally away from the acceptance-zone
badges so they no longer stack near the middle of the balance area. Full zone
strength detail remains available in the right-side ACC / REJ tags.
• Removed redundant edge text
The "VAH Edge" / "VAL Edge" centered badges were removed because the right-side
VAH / VAL tags already label those levels and the edge text could overlap the
acceptance-zone badges. The edge ribbons themselves are unchanged.
------------------------
Visual Improvements
------------------------
• Eliminated the badge-on-badge overlap that could appear in the balance area
(balance badge versus acceptance-zone badge).
• Cleaner zone labeling with shorter centered badges and high-contrast tags.
• Reduced label clutter around the Value Area High and Value Area Low ribbons.
------------------------
Interface & Usability
------------------------
• Panel layout (Standard and Compact) and themes (Dark, Slate, Light) are
unchanged; only the colored value-cell text colors were adjusted for contrast.
------------------------
Behavior Notes
------------------------
This update does not change any profile, balance-area, zone-ranking, scoring,
state or rotation logic. Only label text, label text-color and the on-chart
placement of centered badges were adjusted. Interpretation of all outputs is
unchanged.
------------------------
Limitations Reminder
------------------------
The script remains a rule-based analytical tool. Market conditions such as
volatility, liquidity and timeframe differences may affect how the profile,
zones and scores appear. Outputs should always be interpreted within broader
market context.
------------------------
Risk Reminder
------------------------
This script is for educational and analytical purposes only. It does not provide
financial advice or guaranteed trading outcomes. Users remain responsible for
their own decisions.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Public-free scripts + invite-only AGPro workflows for market analysis, liquidity context, risk planning and execution review.
Rules-based. No hype. No guesswork.
Library & access: agprolabs.com/
Telegram: t.me/agprolabs
Rules-based. No hype. No guesswork.
Library & access: agprolabs.com/
Telegram: t.me/agprolabs
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Public-free scripts + invite-only AGPro workflows for market analysis, liquidity context, risk planning and execution review.
Rules-based. No hype. No guesswork.
Library & access: agprolabs.com/
Telegram: t.me/agprolabs
Rules-based. No hype. No guesswork.
Library & access: agprolabs.com/
Telegram: t.me/agprolabs
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.