OPEN-SOURCE SCRIPT
Actualizado

Round Number Rejection Planner [AGPro Series]

651
# Round Number Rejection Planner [AGPro Series]

🧠 Core Idea

Is the round number acting as rejection, magnet, or failed reference?

📌 Overview / What it does

Round Number Rejection Planner is a psychological price level decision-support script built to evaluate how price reacts around nearby round numbers.

The script maps adaptive round-number bands, detects wick-based rejection behavior, separates rejection from magnet conditions, scores the context from 0 to 100, and summarizes the current state inside a compact AG Pro panel.

It does not predict price direction, automate trades, or provide guaranteed signals. It is designed to organize round-number context, rejection quality, distance, failure risk, and action state into a clean visual workflow.

🎯 Purpose & Design Philosophy

Round numbers often attract attention because they are easy reference points for traders, algorithms, stops, targets, and liquidity.

This script was built for traders who want to evaluate whether price is respecting a psychological level, getting pulled toward it, or failing to reject it cleanly.

The design supports structured observation instead of treating every round-number touch as a signal.

⚡ Why This Script Is Different

Most tools draw psychological levels or mark round numbers.

This script does NOT stop at drawing levels.

Instead, it evaluates the behavior around the level: wick rejection, close location, distance, reaction count, volatility fit, and failure risk.

⚙️ Methodology

1. Adaptive Round Level Detection
2. Psychological Band Mapping
3. Wick Rejection Evaluation
4. Magnet And Failure Risk Detection
5. 0-100 Rejection Score
6. Panel And Alert Output

🗺️ How to Read the Chart

The active round band marks the nearest psychological price zone.

Nearby round rails show the next upper and lower round references.

READY REJECTION labels appear when wick response, close location, and score quality align.

Magnet or failed-reference states appear when price interacts with the level without a clean rejection.

The panel summarizes Round Level, Rejection Score, Distance, Failure Risk, and Action.

🚦 Signals & States

• READY → A qualified round-number rejection has formed.

• MONITOR → Price is near the round number but rejection quality is not yet strong enough.

• WAIT → No active round-number context is close enough to evaluate.

• INVALIDATED → Price failed through the level instead of rejecting it.

• BLOCKED → The script cannot define a valid round-number context.

🔔 Alerts Logic

Bullish Round Number Rejection Ready triggers when price rejects upward from a round-number band with enough quality.

Bearish Round Number Rejection Ready triggers when price rejects downward from a round-number band with enough quality.

Round Number Magnet Warning triggers when price is close to the level but rejection quality is weak.

Round Number Rejection Invalidated triggers when price fails through the level instead of respecting it.

Alerts are attention markers, not trade instructions.

🧩 Confluence Logic

The rejection score combines wick strength, close distance from the level, proximity, recent reaction count, relative volume, and volatility fit.

When several of these conditions align, the context becomes stronger.

When they do not align, the script remains in WAIT, MONITOR, INVALIDATED, or BLOCKED state.

📊 When to Use

• Psychological level analysis

• Intraday price action workflows

• Round-number rejection setups

• Stop and liquidity reaction observation

• Support and resistance context around visible price levels

⚠️ When NOT to Use

Avoid relying on this script in extremely illiquid markets, very noisy symbols, holiday sessions, or conditions where round numbers are not meaningful to participants.

It should not be used as a standalone decision tool without broader market context, risk planning, and independent confirmation.

🎛️ Key Inputs

• Round Level Mode controls whether level spacing is automatic or manual.

• Manual Round Step defines custom level spacing when manual mode is selected.

• Round Band ATR controls the width of the psychological level band.

• Max Active Distance controls how close price must be before evaluation begins.

• Minimum Ready Score controls how strong the rejection must be before READY appears.

• Failure Risk Threshold controls when weak rejection or magnet behavior blocks READY.

• Visual settings control bands, rails, labels, right-side tags, panel location, and font size.

🖥️ Interface & Visual Design

The interface is designed to make the active psychological level readable without flooding the chart.

The chart shows the active round band, nearby round rails, failure shelf, and relevant rejection labels.

The AG Pro panel provides compact decision context while preserving chart visibility.

🧪 Practical Usage Workflow

1. Check the active round level in the panel.

2. Observe whether price is touching or rejecting the round band.

3. Read the rejection score and failure risk.

4. Check whether the action state is READY, MONITOR, WAIT, INVALIDATED, or BLOCKED.

5. Confirm the context with broader trend, liquidity, volatility, and risk structure.

🔍 Interpretation Guidelines

A higher rejection score means the round-number reaction is cleaner according to the script logic.

A high failure risk means the level may be acting more like a magnet or failed reference.

READY means the rejection context deserves attention, not that price must reverse.

MONITOR means price is near the level but the reaction is not yet clean enough.

🚫 What This Script Is NOT

This script is not a prediction engine.

It is not financial advice.

It is not an auto-trading system.

It does not provide guaranteed signals.

It does not replace risk management or independent analysis.

⚠️ Limitations & Transparency

Round-number behavior changes across markets, symbols, timeframes, volatility regimes, and liquidity conditions.

The score is rule-based and depends on wick behavior, close location, distance, relative volume, and ATR normalization.

Different symbols may require different round-step or sensitivity settings.

🧠 Market Context Notes

Round-number rejection can be more meaningful when aligned with liquidity response, trend context, session timing, volume participation, and nearby structure.

Weak rejection near a level can become magnet behavior instead of a clean turn.

🔐 Non-Promise Statement

No script can guarantee future price behavior.

This tool provides structured visual context only.

📉 Risk Disclosure

Trading involves risk.

Users remain responsible for their own decisions.

This script is for educational and analytical purposes only and does not provide financial advice or guaranteed trading outcomes.
Notas de prensa
UPDATE NOTES - V1.2

This update focuses on zone-label readability and overlap control.

The core purpose of the script remains unchanged.
This release improves how the existing round-number visuals are presented around the active zone.

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
------------------------

* Removed duplicate main round-level right tag while the active round band is visible.
The active band already carries the primary round-level context, so the extra tag could overlap with the centered zone text.

* Shortened the active band text.
The zone now uses a more compact state and level display to reduce text collision risk on 1H, 4H, and 1D charts.

* Kept nearby upper and lower rail tags active.
This preserves the premium contextual look without stacking multiple labels on the main round-number zone.

* Preserved the invalidation shelf as a clean visual shelf.
The shelf remains text-free to avoid narrow-zone superposition.


------------------------
Visual Improvements
------------------------

* Improved chart readability by removing overlapping labels inside the active zone area.

* Reduced duplicate text around the main round-number band.

* Refined visual hierarchy so the active zone, nearby rails, and event labels remain readable at first glance.

* Adjusted zone text behavior to keep the chart premium without making it feel empty.


------------------------
Interface & Usability
------------------------

* Panel behavior is unchanged.

* Label and font-size controls remain unchanged.

* Default visual settings remain focused on balanced publication screenshots.

* The chart should now read cleaner in compressed views where right tags and centered zone text previously collided.


------------------------
Behavior Notes
------------------------

This update does not change the core analytical logic of the script.

The goal is to improve clarity and usability, not to introduce new predictive behavior.

Users should interpret outputs the same way as before, but with cleaner zone label placement.


------------------------
Limitations Reminder
------------------------

The script remains a rule-based analytical tool.

Market conditions such as volatility, liquidity, symbol price scale, and timeframe differences may affect how round-number reactions 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.
Notas de prensa
UPDATE NOTES - V2.1

This update focuses on light-chart readability, compact round-number labels, and publication-ready psychological level presentation.

The core purpose of the script remains unchanged.
This release improves how the active round-number band, rejection labels, magnet warnings, failed-reference labels, and panel states are 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
------------------------

* Updated the public package to V2.1.
The header, code file, update notes, tags, and QA file now use the refreshed version.

* Moved active round-band text out of transparent box text.
The active psychological level text now renders inside a solid colored badge instead of transparent zone text.

* Replaced multi-line event labels with compact one-line labels.
READY, MAGNET WATCH, and FAILED LEVEL labels now stay compact and readable.

* Preserved the decision-support model.
Auto/manual round-number step logic, active distance, band testing, wick rejection, close response, failure risk, panel state, and alerts remain intact.

* Preserved clean publication defaults.
Magnet and failed-reference labels remain optional and disabled by default for a calmer public screenshot.


------------------------
Visual Improvements
------------------------

* Improved white-chart compatibility by avoiding naked white text over transparent round-number bands.

* Improved contrast by placing round-band text inside a solid AGPro-colored badge.

* Reduced label height by removing stacked event-label text.

* Preserved right-side tags as compact colored labels for round level, nearby rails, and failure shelf context.


------------------------
Interface & Usability
------------------------

* Preserved panel show/hide, panel location, panel theme, and panel font-size controls.

* Preserved label font-size, label offset, max visible label, and cooldown controls.

* Preserved manual round-step control for users who need exact psychological levels.

* Kept the panel as the primary decision-state summary.


------------------------
Behavior Notes
------------------------

This update does not change the core analytical logic of the script.

Round-number selection, rejection score, magnet state, invalidation logic, failure risk, panel states, and alerts remain conceptually unchanged.

The goal is to improve contrast safety and usability, not to introduce new predictive behavior.


------------------------
Limitations Reminder
------------------------

The script remains a rule-based analytical tool.

Market conditions such as volatility, liquidity, symbol price scale, and timeframe differences may affect how round-number reactions 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.
Notas de prensa
🔧 UPDATE NOTES - V2.2

This update focuses on publication readability, right-side tag clarity, label selectivity, and box-text-free chart rendering.

The core purpose of the script remains unchanged.
This release improves how the existing round-number rejection 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
------------------------

• Removed embedded box text handling
The active round-number band now uses the separate centered badge only, matching the AGPro visual standard.

• Added Right Tag Detail
Compact mode is now the default right-side tag preset. Full mode remains available for users who want nearby upper and lower rail tags.

• Added Right Tag Offset Bars
Users can control how far right-side tags sit beyond the latest bar.

• Reduced default event label density
Max Visible Labels now defaults to 5, and Event Label Cooldown now defaults to 32 bars for a cleaner publication view.

• Refined READY label wording
READY labels now use clearer Bull Reject / Bear Reject wording with the quality score on the next line.

• Hardened panel refresh behavior
Panel font-size changes now trigger a panel rebuild while preserving the single merged blue header row.


------------------------
Visual Improvements
------------------------

• Reduced repeated READY label stacking

• Reduced right-side upper/lower rail tag clutter by default

• Extended active round and failure references toward their visible tag area

• Preserved round band, nearby rails, invalidation shelf, event labels, alerts, data-window plots, and AG Pro panel


------------------------
Interface & Usability
------------------------

• Right Tag Detail can be switched from Compact to Full

• Right Tag Offset Bars can be adjusted by the user

• Max Visible Labels and Event Label Cooldown remain adjustable

• Panel show/hide, panel location, panel theme, panel font size, and label font size controls remain available


------------------------
Behavior Notes
------------------------

This update does not change the core analytical logic of the script.

Round-level detection, rejection score, magnet context, failed-reference logic, alerts, and panel values remain unchanged.

The goal is to improve clarity and usability, not to introduce new predictive behavior.

Users should interpret outputs the same way as before, but with improved visual structure.


------------------------
Limitations Reminder
------------------------

The script remains a rule-based analytical tool.

Market conditions such as volatility, liquidity, timeframe differences, and data quality may affect how states 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.
Notas de prensa
UPDATE NOTES - Version 2.3

This update focuses on adding a confirmation-anchored proof layer to the planner.

The core purpose of the script remains unchanged.
This release adds a proof layer that measures how often READY round-number rejections continued
away from the level before price closed back through it.

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 Proof Layer (Follow / Hold / React / Flip)
The panel now reports how reliably READY round-number rejections followed through on the current
symbol and timeframe. Each time a rejection reaches READY, it is tracked forward over a
configurable horizon, with the rejection close as the entry, the round-number invalidation level
as the risk reference, and a symmetric one risk unit (1R) continuation target away from the level:
- Follow Rate : share of rejections that continued one risk unit away from the round number
before price closed back through it
- Hold Rate : share whose invalidation level was not lost through resolution
- React Rate : share that produced an early favorable reaction away from the level
- Flip Rate : share that closed back through the invalidation level (the rejection failed)
A sample size (n) is shown so the rates are read in context, and they display as "building" only
until the first rejection resolves. Each rejection is anchored once at its onset.

* Added hidden proof outputs
Follow, Hold, React, and Flip rates are exported as hidden plots so they can be used in alerts
and screeners without adding chart clutter.


------------------------
Visual Improvements
------------------------

* Preserved the active round band with its centered badge, nearby round rails, invalidation
shelf, READY rejection labels, and owned right-side level and failure tags.

* Added the proof rows to the panel under a clear sub-header so the rejection read and the proof
read stay visually separated.

* Kept label density controlled with the existing cooldown and retention limits.


------------------------
Behavior Notes
------------------------

This update does not change the core rejection logic of the script.

The proof rates are descriptive statistics of READY round-number rejections on the current
symbol and timeframe. They measure how often a rejection continued one risk unit away before
closing back through the level, not trade performance, and they do not change how round levels,
bands, rejection quality, failure risk, or action states are produced.

Users should interpret outputs the same way as before, now with added reliability context.


------------------------
Limitations Reminder
------------------------

The script remains a rule-based analytical tool.

Proof rates depend on the available history and on how many READY rejections occurred on the
current symbol and timeframe; a small sample (low n) should be treated with caution. Each
rejection is counted once, with the close entry, round-number invalidation, and 1R continuation
target frozen at the rejection bar. Market conditions such as volatility, liquidity, and
timeframe differences may affect how rejections and rates 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.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.