OPEN-SOURCE SCRIPT
ที่อัปเดต:

Candle Rejection Quality Planner [AGPro Series]

1 659
Candle Rejection Quality Planner [AGPro Series]

🧠 Core Idea

Is the rejection candle strong enough to create a valid planning context, or is it only a noisy wick?


📌 Overview / What it does

Candle Rejection Quality Planner [AGPro Series] is a chart-first rejection candle decision tool designed to evaluate wick-led rejection without turning the chart into a generic candlestick signal map.

The script identifies bullish and bearish rejection candles, scores their quality from 0 to 100, then tracks what happens next through a confirmation rail, failure edge, target-room guide, wick quality zone, compact labels, alerts, and a clean AG Pro planning panel.

It does not predict future price movement, automate entries, print buy/sell commands, or replace broader market context. Its purpose is to help traders judge whether a rejection candle has enough structure to deserve attention.


🎯 Purpose & Design Philosophy

This script was built to fill the gap between simple wick markers and broader reversal systems.

Many traders can see a long wick. The harder question is whether that wick has enough close quality, candle range, participation, and follow-through potential to become useful context.

The design supports a planner mindset: evaluate the candle, define the confirmation level, know where the idea weakens, and wait for the next state instead of reacting to every wick.


⚡ Why This Script Is Different

Most tools focus on detecting a named candle pattern such as a pin bar, engulfing candle, or generic rejection marker.

This script does NOT clone Pin Bar Quality Filter, Engulfing Candle Quality, Rejection Block Quality, order block logic, liquidity sweep logic, or a broad candlestick scanner.

Instead, it focuses on the planning process after a rejection candle appears: quality score, confirmation rail, failure edge, target-room guide, and next-action state. The candle is not treated as an entry by itself. It is treated as a context that must prove itself.


⚙️ Methodology

1. Context Detection
The script measures candle range, upper wick, lower wick, close location, and relative volume to detect wick-led rejection context.

2. Reference Mapping
When a qualified rejection candle appears, the planner maps a wick quality zone, confirmation rail, failure edge, and target-room guide.

3. Reaction Evaluation
The model updates the 0-100 Rejection Quality score as confirmation develops, pressure works against the candle, time passes, or price reaches the planning guide.

4. Visual Output
The chart displays the wick zone, rail, guide lines, controlled labels, candle tint, alerts, and AG Pro panel.


🗺️ How to Read the Chart

Zones = the rejected wick area of the qualifying candle. The zone is a candle-quality reference, not a support/resistance map.

Labels = rejection context, confirmation, failure edge breaks, target-room completion, and sparse active-state markers.

Colors = teal supports bullish rejection context, pink marks bearish rejection or failure pressure, yellow marks caution, and indigo marks confirmation review.

Panel = a compact decision view showing Candle Side, Rejection Quality, Confirmation, Failure Risk, and Action.


🚦 Signals & States

• Bullish Rejection → lower wick rejection with stronger close location and sufficient quality.

• Bearish Rejection → upper wick rejection with weaker close location and sufficient quality.

• Awaiting Confirmation → a qualified rejection exists, but price has not accepted beyond the rail.

• Confirmed → price accepted beyond the confirmation rail.

• Failure Edge Broken → the rejection context lost its defined failure edge.

• Target Room Reached → price reached the planning guide mapped from the rejection context.


🔔 Alerts Logic

Alerts can trigger when a qualified rejection candle opens a new context, when confirmation rail acceptance appears, when the failure edge breaks, when target room is reached, or when the active planner state changes.

Alerts are attention markers. They are not trade instructions and do not imply a guaranteed outcome.


🧩 Confluence Logic

The strongest planner states appear when wick dominance, close location, reasonable candle range, supportive volume, and confirmation beyond the rail align together.

When those elements are weaker or delayed, the planner shifts toward monitor, weak confirmation, expired context, or invalidated state.


📊 When to Use

• Price-action review around visible reaction candles

• Liquid symbols where candle range and volume are readable

• Intraday or swing charts where wick rejection can be evaluated with ATR context

• Discretionary planning workflows that need confirmation and failure references


⚠️ When NOT to Use

• Extremely low-liquidity symbols with unreliable candles

• Very noisy low-timeframe charts where wicks appear randomly

• News spikes where candle range is distorted

• Situations where broader market structure is being ignored


🎛️ Key Inputs

• Sensitivity → changes how selective the rejection engine is.

• Minimum Rejection Quality → sets the 0-100 score required before a context appears.

• Dominant Wick Share → controls how much wick dominance is required.

• Close Location Quality → controls how strongly price must close away from the rejected wick.

• Confirmation Window → controls how long the script waits for follow-through.

• Failure Edge Buffer → defines the invalidation reference beyond the rejection wick.

• Target-Room Guide R → draws the planning guide from rejection close to failure edge distance.

• Visual settings → control zones, rails, labels, candle tint, panel location, panel theme, and font sizes.


🖥️ Interface & Visual Design

The interface is intentionally compact and chart-first.

The wick quality zone keeps attention on the candle that created the context. The confirmation rail and failure edge create a structured review path. The AG Pro panel summarizes the current state without covering the chart with a broad dashboard.


🧪 Practical Usage Workflow

1. Read the panel and identify the active candle side.

2. Check the wick quality zone and confirmation rail.

3. Watch whether price confirms, weakens, expires, or breaks the failure edge.

4. Use the target-room guide as a planning reference, not as a promise.


🔍 Interpretation Guidelines

A stronger score means the rejection candle has cleaner wick dominance, better close location, a more useful candle range, and stronger participation support.

A confirmed state means price has accepted beyond the rail according to the script rules.

A failed state means the active rejection context lost its defined failure edge.


🚫 What This Script Is NOT

• Not a prediction engine

• Not financial advice

• Not auto trading

• Not guaranteed signals

• Not a pin bar clone

• Not an engulfing candle detector

• Not a generic support/resistance or order block map


⚠️ Limitations & Transparency

The script is rule-based and depends on candle structure, ATR, relative volume, and follow-through behavior.

Different timeframes can change how rejection appears. Volatility spikes can distort candle range and failure distance. Symbols with unreliable volume may produce weaker participation readings.

Outputs should always be interpreted within broader market structure, liquidity, volatility, and personal risk rules.


🧠 Market Context Notes

Rejection candles often matter more when they appear near meaningful structure, after a directional push, or during a volatility expansion attempt. The script intentionally does not build a full structure map because its narrow job is candle rejection planning.


🧾 Use Case Examples

When a candle prints a strong lower wick, closes high in its range, and then accepts above the confirmation rail, the planner may classify the context as ready for review.

When a strong upper wick appears but price fails to move beyond the confirmation rail and later breaks the failure edge, the planner marks the context as invalidated.


🧱 System Philosophy

AGPro Series tools are designed to convert visual market behavior into structured review states. This script follows that philosophy by turning a single rejection candle into a defined planning context with quality, confirmation, risk, and action fields.


🔐 Non-Promise Statement

No script can provide certainty.

No rejection candle guarantees continuation, reversal, or profitable execution.


📉 Risk Disclosure

Trading involves risk. This script is for technical analysis and educational use only.

Users remain responsible for their own analysis, position sizing, execution decisions, and risk management.

This script does not provide financial advice or guaranteed trading outcomes.


📚 Educational Note

Use the tool to study how rejection candles behave after they appear. The value is in structured observation, not automatic decision-making.
Release Note
UPDATE NOTES - V1.2

This update focuses on premium chart readability, label structure, and publication-grade visual clarity.

The core purpose of the script remains unchanged.
This release improves how the existing candle rejection quality 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 Smart Badge Lanes.
Wick-zone, confirmation, failure, target-room, and context badges now use ATR-based visual lanes to reduce label superposition around the active rejection candle.

* Upgraded wick-zone labeling.
The wick quality zone now uses a dedicated colored one-line badge instead of stacked box text.

* Converted all chart labels to one-line text.
Primary rejection, confirmation, failure, target-room, weak-confirmation, expiry, and context labels now avoid stacked multi-line text.

* Preserved the candle-specific positioning.
The script remains focused on single-candle wick rejection quality rather than volume rejection, range-edge rejection, or broad price rejection readiness.

* Preserved the analytical model.
Wick share, close quality, candle range, optional volume support, confirmation rail, failure edge, target-room guide, panel, and alerts remain conceptually unchanged.


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

* Improved chart readability by turning candle rejection context into compact one-line colored badges.

* Reduced visual clutter while keeping the wick quality zone visible.

* Refined visual hierarchy so the rejection candle, confirmation rail, failure edge, and target-room guide remain easier to interpret.

* Adjusted label positioning to avoid stacking directly on the same candle or price band.


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

* Added "Use Smart Badge Lanes" to Labels.

* Added "Badge Lane Spacing ATR" for fine-tuning vertical badge separation.

* Kept label and panel font-size controls intact.

* Kept the AG Pro panel visible by default with the merged blue title row.


------------------------
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 improved visual structure.


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

The script remains a rule-based analytical tool.

Market conditions such as volatility, liquidity, and timeframe differences may affect how signals 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.
Release Note
🔧 UPDATE NOTES - 1.3

This update adds a confirm-rate proof layer and sharper label styling to the
Candle Rejection Quality Planner. The core rejection-quality logic remains
unchanged. This script continues to function as an analytical and visualization
tool. It does not predict price direction or guarantee outcomes.

------------------------
What Changed
------------------------

- Confirm-Rate Proof Layer
The panel now tracks how often a qualified rejection context confirms or reaches
its target room before failing, shown as a rate with sample size.

- Symbol-Adaptive Badge Lanes
Smart badge lane spacing now scales purely with ATR, fixing label displacement on
percentage and index symbols.

- Contrast-Safe Label Text
Label and zone-badge text color now adapts to the badge color, so amber and other
light backgrounds use dark text for clean readability.

- Honest Statistics
The proof layer is confirmed-bar gated, resolves same-bar ambiguity conservatively
as a failure, and uses the context window to avoid inflated rates.

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

- Improved readability of amber and light-colored badges
- Kept wick zones, rails and guides focused and uncluttered
- Preserved smart badge lanes for non-overlapping labels
- Maintained the premium centered zone badge styling

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

- Added a Confirm Rate proof row to the planner panel
- Improved first-glance interpretation with track-record context
- Kept all settings and defaults backward compatible
- Enhanced overall experience without changing the core scoring logic

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

This update does not change how rejection candles are scored or how contexts are
tracked. The goal is added proof context and cleaner label styling. Outputs should
be interpreted the same way as before.

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

The script remains a rule-based analytical tool. Volatility, liquidity and
timeframe differences can affect how contexts, zones and statistics appear.
Always interpret outputs 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.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน