AG Pro Break-Retest QualityAG Pro Break-Retest Quality
AG Pro Break-Retest Quality is a rules-based indicator designed to evaluate the first retest that occurs after a confirmed horizontal structure break.
Many tools can mark a breakout. Fewer help traders judge whether the first pullback after that break is constructive, weak, or low quality. This script focuses on that specific task by grading the first post-break retest through a compact structure-acceptance model.
What this script does
- Detects confirmed horizontal structure breaks using swing-based pivot levels
- Waits for the first retest after the break
- Scores that retest using reclaim behavior, rejection quality, retest depth, response speed, volatility cleanliness, and optional volume context
- Assigns a simple grade:
- A = Strong
- B = Valid
- C = Weak
- F = Failed / Low quality
How to read it
- Break lines mark the structural level that was broken
- Retest labels appear when the first retest is detected and graded
- Higher grades suggest cleaner post-break acceptance
- Lower grades suggest weaker or less efficient retests
How the scoring works
The retest score is based on a rules-driven model that evaluates:
- reclaim strength
- candle rejection quality
- retest depth control
- speed of response after the break
- volatility cleanliness
- optional volume context
This script is not built to predict every continuation move. Its purpose is to help users evaluate the structural quality of the first retest after a confirmed break.
Alerts
- Structure Break Detected
- First Retest Detected
- High-Quality Retest Confirmed
Design notes
The default settings are intentionally kept compact and chart-friendly. The script aims to preserve readability by limiting historical objects on the chart and emphasizing clearer retest grading rather than heavy dashboard-style output.
Limitations
- This script evaluates only the first retest after a confirmed break
- It is based on swing-derived horizontal structure
- It does not model broader market context, higher-timeframe bias, or full trade management
- Low-liquidity and highly volatile environments may reduce signal quality
Important
This indicator is not a strategy, not a profit guarantee, and not a substitute for confirmation, context, or risk management. It is a structure-quality tool intended to support discretionary chart reading.
Pine Script® Indikator






















