OPEN-SOURCE SCRIPT
تم تحديثه Trend Stability Ribbon [AGPro Series]

Trend Stability Ribbon [AGPro Series]
🔹 OVERVIEW
Most trend tools tell you WHICH WAY price is going. Trend Stability Ribbon tells you HOW WELL it is getting there. By pairing an ATR-normalized slope engine with a Kaufman path-efficiency score, it projects every bar into one of four rules-based states — Stable Up, Noisy Up, Stable Down, Noisy Down — and paints them onto a clean, adaptive ribbon that stays out of the candles' way. The result is a context layer that separates decisive trending from directional-but-choppy travel, without adding a second indicator pane.
🧭 UNIQUE EDGE — WHY THIS IS NOT "JUST ANOTHER TREND INDICATOR"
Direction alone is cheap. Every moving-average cross, every supertrend, every slope color tells you "up" or "down" — and then leaves you holding the bag when the trend is technically up but structurally a mess.
Trend Stability Ribbon adds the missing second dimension: path quality. The same 34-bar window that defines direction also feeds a Kaufman efficiency calculation (net travel divided by total path travel). An ER near 1.00 means price walked a near-straight line; an ER near 0.00 means it zig-zagged its way to the same point. Mapping that score against a calibrated threshold band produces the four composite states — and a visual language that finally distinguishes "trend worth trusting" from "trend worth fading".
Additional design choices that set it apart:
• Dual-layer event engine — direction flips, stability upgrades, and stability downgrades are tracked as independent transitions, each with its own alert.
• Badge/alert separation — on-chart badges are throttled by a cooldown for visual hygiene, but alerts are always raw so automation pipelines never miss an event.
• Reset state — when the slope-confirmation filter rejects a direction, the ribbon goes neutral instead of flipping false. Chop gets ignored, not misreported.
🧪 METHODOLOGY
1. TREND DIRECTION ENGINE
• A slow EMA (default length 34) anchors the trend path and serves as the ribbon centerline.
• Slope is measured over a 3-bar lookback and normalized by a 14-period ATR, making it instrument-agnostic across crypto, FX, equities, and futures.
• With Slope Confirmation enabled (default), direction is only accepted when price position AND slope agree. Disagreement returns a Reset state.
2. PATH EFFICIENCY (STABILITY) ENGINE
• ER = |close − close[N]| ÷ Σ|close − close[i-1]| over the same trend window.
• Three classes: Stable (ER ≥ 0.45), Noisy (ER ≤ 0.25), Mixed (between). Thresholds scale with the Stability Sensitivity input.
• The Mixed zone is a deliberate dead-band — during uncertain phases the previous state persists rather than flickering.
3. COMPOSITE STATE MACHINE
• Direction × Stability yields five possible states: Stable Up, Noisy Up, Stable Down, Noisy Down, Reset.
• Bars-in-state is tracked live, giving a simple persistence read on each state.
4. RIBBON RENDERING
• Ribbon is anchored to the EMA centerline with height driven by ATR × a user-selected multiplier (Thin / ATR-Adaptive / Thick).
• Fill opacity and border weight shift by state — Stable states are saturated, Noisy states are faded, Reset is a soft amber.
🔔 SIGNALS & ALERTS
Three transition events are detected and exposed as separate, user-toggled alerts:
• Trend State Flipped — direction changed (Up ↔ Down). Raw, never throttled.
• Stability Improved — path upgraded from Noisy to Stable while direction held. Raw — delivered regardless of badge cooldown.
• Stability Degraded — path downgraded from Stable to Noisy while direction held. Raw — delivered regardless of badge cooldown.
Matching on-chart badges appear at the same moments, subject to the Stability Badge Cooldown for visual cleanliness. Direction-flip badges are never throttled.
⚙️ KEY INPUTS
Engine
• Trend Length (default 34) — lookback for both direction and path-efficiency windows.
• Stability Sensitivity (default 1.0) — scales the Stable / Noisy thresholds.
• Require Slope Confirmation (default on) — enforces price-and-slope agreement; rejects chop.
Ribbon & Badge
• Ribbon Height — Thin / ATR-Adaptive / Thick.
• Show State Badge — toggle on-chart transition labels.
• Label Font Size — tiny / small / normal / large (default normal).
• Minimal Mode — hides panel and badges for pairing with other overlays.
• Stability Badge Cooldown (default 5 bars) — visual throttle for stability transitions.
Info Panel
• Panel Position, Panel Font Size, Efficiency Ratio display, Active Thresholds display.
Alerts
• Independent toggles for each of the three transition events.
🧠 HOW TO USE
• CONTEXT FILTER — use Stable states as a "green light" for continuation setups on your primary system; treat Noisy states as a headwind.
• REGIME BREAKS — a Stability Degraded event mid-trend is often an early warning that the move is maturing, even before price has flipped.
• CLEAN ENTRIES — pair a direction flip (Trend Up / Trend Down) with an immediate Stable classification to filter out whipsaw-prone breakouts.
• CHOP AVOIDANCE — when the ribbon sits in a Reset or Mixed state, the script is telling you the underlying path is not tradeable as a trend. Stand aside or switch to range tactics.
• PAIRING — with Minimal Mode on, the ribbon layers cleanly under structure tools, VWAPs, or S/R zones without visual conflict.
⚠️ LIMITATIONS & TRANSPARENCY
• This is an indicator, NOT a strategy. It does not generate buy or sell orders, has no backtest, and makes no claim of performance.
• Efficiency Ratio is a lagging measure — it describes the path already travelled. The ribbon should be read as context, not as a leading signal.
• The Mixed zone is intentional persistence; expect the composite state to hold through brief chop rather than flipping on every bar.
• Lower timeframes (<5m on thin-liquidity markets) can push ER values into erratic ranges. Start with the defaults on 15m–4h and tune from there.
• All calculations are closed-bar. Intra-bar values may shift until the bar confirms.
🛡️ RISK DISCLOSURE
This script is published for educational and analytical purposes only. It is not financial advice, not a signal service, and not a solicitation to buy or sell any instrument. Past behavior of markets does not predict future results. Always do your own research, apply proper risk management, and consult a licensed professional before making trading decisions. The author assumes no responsibility for losses incurred through use of this indicator.
🔹 OVERVIEW
Most trend tools tell you WHICH WAY price is going. Trend Stability Ribbon tells you HOW WELL it is getting there. By pairing an ATR-normalized slope engine with a Kaufman path-efficiency score, it projects every bar into one of four rules-based states — Stable Up, Noisy Up, Stable Down, Noisy Down — and paints them onto a clean, adaptive ribbon that stays out of the candles' way. The result is a context layer that separates decisive trending from directional-but-choppy travel, without adding a second indicator pane.
🧭 UNIQUE EDGE — WHY THIS IS NOT "JUST ANOTHER TREND INDICATOR"
Direction alone is cheap. Every moving-average cross, every supertrend, every slope color tells you "up" or "down" — and then leaves you holding the bag when the trend is technically up but structurally a mess.
Trend Stability Ribbon adds the missing second dimension: path quality. The same 34-bar window that defines direction also feeds a Kaufman efficiency calculation (net travel divided by total path travel). An ER near 1.00 means price walked a near-straight line; an ER near 0.00 means it zig-zagged its way to the same point. Mapping that score against a calibrated threshold band produces the four composite states — and a visual language that finally distinguishes "trend worth trusting" from "trend worth fading".
Additional design choices that set it apart:
• Dual-layer event engine — direction flips, stability upgrades, and stability downgrades are tracked as independent transitions, each with its own alert.
• Badge/alert separation — on-chart badges are throttled by a cooldown for visual hygiene, but alerts are always raw so automation pipelines never miss an event.
• Reset state — when the slope-confirmation filter rejects a direction, the ribbon goes neutral instead of flipping false. Chop gets ignored, not misreported.
🧪 METHODOLOGY
1. TREND DIRECTION ENGINE
• A slow EMA (default length 34) anchors the trend path and serves as the ribbon centerline.
• Slope is measured over a 3-bar lookback and normalized by a 14-period ATR, making it instrument-agnostic across crypto, FX, equities, and futures.
• With Slope Confirmation enabled (default), direction is only accepted when price position AND slope agree. Disagreement returns a Reset state.
2. PATH EFFICIENCY (STABILITY) ENGINE
• ER = |close − close[N]| ÷ Σ|close − close[i-1]| over the same trend window.
• Three classes: Stable (ER ≥ 0.45), Noisy (ER ≤ 0.25), Mixed (between). Thresholds scale with the Stability Sensitivity input.
• The Mixed zone is a deliberate dead-band — during uncertain phases the previous state persists rather than flickering.
3. COMPOSITE STATE MACHINE
• Direction × Stability yields five possible states: Stable Up, Noisy Up, Stable Down, Noisy Down, Reset.
• Bars-in-state is tracked live, giving a simple persistence read on each state.
4. RIBBON RENDERING
• Ribbon is anchored to the EMA centerline with height driven by ATR × a user-selected multiplier (Thin / ATR-Adaptive / Thick).
• Fill opacity and border weight shift by state — Stable states are saturated, Noisy states are faded, Reset is a soft amber.
🔔 SIGNALS & ALERTS
Three transition events are detected and exposed as separate, user-toggled alerts:
• Trend State Flipped — direction changed (Up ↔ Down). Raw, never throttled.
• Stability Improved — path upgraded from Noisy to Stable while direction held. Raw — delivered regardless of badge cooldown.
• Stability Degraded — path downgraded from Stable to Noisy while direction held. Raw — delivered regardless of badge cooldown.
Matching on-chart badges appear at the same moments, subject to the Stability Badge Cooldown for visual cleanliness. Direction-flip badges are never throttled.
⚙️ KEY INPUTS
Engine
• Trend Length (default 34) — lookback for both direction and path-efficiency windows.
• Stability Sensitivity (default 1.0) — scales the Stable / Noisy thresholds.
• Require Slope Confirmation (default on) — enforces price-and-slope agreement; rejects chop.
Ribbon & Badge
• Ribbon Height — Thin / ATR-Adaptive / Thick.
• Show State Badge — toggle on-chart transition labels.
• Label Font Size — tiny / small / normal / large (default normal).
• Minimal Mode — hides panel and badges for pairing with other overlays.
• Stability Badge Cooldown (default 5 bars) — visual throttle for stability transitions.
Info Panel
• Panel Position, Panel Font Size, Efficiency Ratio display, Active Thresholds display.
Alerts
• Independent toggles for each of the three transition events.
🧠 HOW TO USE
• CONTEXT FILTER — use Stable states as a "green light" for continuation setups on your primary system; treat Noisy states as a headwind.
• REGIME BREAKS — a Stability Degraded event mid-trend is often an early warning that the move is maturing, even before price has flipped.
• CLEAN ENTRIES — pair a direction flip (Trend Up / Trend Down) with an immediate Stable classification to filter out whipsaw-prone breakouts.
• CHOP AVOIDANCE — when the ribbon sits in a Reset or Mixed state, the script is telling you the underlying path is not tradeable as a trend. Stand aside or switch to range tactics.
• PAIRING — with Minimal Mode on, the ribbon layers cleanly under structure tools, VWAPs, or S/R zones without visual conflict.
⚠️ LIMITATIONS & TRANSPARENCY
• This is an indicator, NOT a strategy. It does not generate buy or sell orders, has no backtest, and makes no claim of performance.
• Efficiency Ratio is a lagging measure — it describes the path already travelled. The ribbon should be read as context, not as a leading signal.
• The Mixed zone is intentional persistence; expect the composite state to hold through brief chop rather than flipping on every bar.
• Lower timeframes (<5m on thin-liquidity markets) can push ER values into erratic ranges. Start with the defaults on 15m–4h and tune from there.
• All calculations are closed-bar. Intra-bar values may shift until the bar confirms.
🛡️ RISK DISCLOSURE
This script is published for educational and analytical purposes only. It is not financial advice, not a signal service, and not a solicitation to buy or sell any instrument. Past behavior of markets does not predict future results. Always do your own research, apply proper risk management, and consult a licensed professional before making trading decisions. The author assumes no responsibility for losses incurred through use of this indicator.
ملاحظات الأخبار
🔧 UPDATE NOTES - V1.1This update focuses on readability, structure, visual clarity, and usability.
The core purpose of the script remains unchanged.
This release improves how the existing trend stability 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
------------------------
• Rebuilt the source header and naming structure.
The public script title now follows the current AGPro Series format while the panel title keeps the AG Pro brand presentation.
• Refined the stability ribbon visual layer.
The ribbon now has a cleaner adaptive fill, optional core line, and optional glow for better first-glance readability.
• Added a clearer stability score.
The panel now summarizes trend path quality with a 0-100 stability score derived from the efficiency ratio context.
• Improved state labels.
State labels are now controlled by density, cooldown, and meaningful transition logic to avoid unnecessary chart noise.
• Rebuilt the panel lifecycle.
The panel uses the required single merged blue header row and avoids clearing the header row during normal updates.
------------------------
Visual Improvements
------------------------
• Improved chart readability by adjusting ribbon fill, ribbon glow, state labels, and panel colors.
• Reduced visual clutter by keeping labels limited to meaningful direction or stability transitions.
• Refined visual hierarchy so stable, noisy, and mixed trend conditions are easier to identify.
• Adjusted label positioning to avoid overlap with candles.
------------------------
Interface & Usability
------------------------
• Optimized panel layout for clearer information flow.
• Added configurable label density, label font size, panel font size, panel position, and panel theme controls.
• Kept the summary panel enabled by default for immediate context.
• Enhanced overall user experience without changing the core trend stability logic.
------------------------
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, trend speed, and timeframe differences may affect how stable and noisy states 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.
ملاحظات الأخبار
UPDATE NOTES - V1.2This update focuses on visual clarity, panel structure, chart readability, and usability.
The core purpose of the script remains unchanged.
This release improves how the existing trend stability 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 right-edge live context tags for current trend stability state, stability score, and efficiency ratio.
These tags make the active trend path easier to read without changing the underlying logic.
* Added a thin connector line from the live state tag area back to the active ribbon.
This helps users visually connect the right-side context labels with the current ribbon structure.
* Added a clearer workflow layer with STABLE PATH, NOISY PATH, and MIXED PATH states.
The workflow language is designed for context review, not for trade instructions.
* Standardized the panel placement input as Panel Location.
The panel keeps the single merged blue AG Pro header row while the script title remains clean.
* Refined chart labels into premium uppercase badges.
Chart-facing labels now use stronger AGPro visual language and avoid small lowercase label styling.
* Tuned default label spacing and density for cleaner 1H / 4H screenshots.
Event labels are more compact, use stronger ATR offsets, and retain fewer clustered labels by default.
------------------------
Visual Improvements
------------------------
* Improved chart readability by keeping the stability ribbon as the primary visual anchor.
* Preserved the ribbon fill, ribbon core, and soft glow structure for first-glance interpretation.
* Increased ATR-based label spacing so event labels are less likely to sit inside candle bodies.
* Added live state, stability, and efficiency tags to prevent the chart from feeling empty.
* Shortened right-edge state tags to reduce overlap near the active price area.
* Improved visual hierarchy so the current trend path and stability score stand out more clearly.
------------------------
Interface & Usability
------------------------
* Kept Show Panel enabled by default.
* Preserved Panel Theme, Panel Font Size, and Label Font Size controls.
* Routed visible chart labels and right-edge tags through the Label Font Size setting.
* Expanded the panel flow with State, Workflow, Direction, Efficiency Ratio, Stability, and Mode / Bars.
* Preserved the merged blue panel header with only the AG Pro panel title.
------------------------
Behavior Notes
------------------------
This update does not change the core analytical logic of the script.
The EMA trend basis, Kaufman-style efficiency ratio, ATR-normalized slope engine, stability classification, and direction confirmation remain aligned with the previous version.
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 and faster context recognition.
------------------------
Alerts Logic
------------------------
Alerts remain attention markers.
They trigger when trend direction flips, stability improves, or stability degrades.
Alerts are designed to highlight a change in trend stability context.
They are not trade entries, exits, buy/sell commands, or guaranteed outcome signals.
------------------------
Limitations Reminder
------------------------
The script remains a rule-based analytical tool.
Market conditions such as volatility, liquidity, timeframe differences, and symbol behavior may affect how trend stability states 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.
ملاحظات الأخبار
UPDATE NOTES - V1.3This update focuses on small premium polish, panel-standard consistency, and improved right-edge tag control.
The core purpose of the script remains unchanged.
Trend Stability Ribbon continues to classify trend direction and trend-path quality through efficiency ratio, ATR-normalized slope, and adaptive ribbon visualization.
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
------------------------
• Preserved the original trend stability engine
The efficiency-ratio classifier, slope confirmation logic, trend direction logic, ribbon rendering, labels, alerts, and panel fields remain intact.
• Added Right Tag Offset
Users can now control how far the live right-edge tags appear from the latest candle.
• Expanded panel placement options
Top Center, Middle Center, and Bottom Center panel positions were added for better chart-layout flexibility.
• Strengthened panel header rendering
The panel now clears and then re-merges the first row on each last-bar refresh so the blue header remains one merged row.
• Refined label language
DOWN wording is now written fully instead of using DN abbreviations in state labels and panel text.
------------------------
Visual Improvements
------------------------
• Preserved the existing ribbon identity and glow structure.
• Improved right-side tag placement flexibility.
• Kept the chart lively without increasing label density.
• Improved first-glance language consistency across state labels, right-side tags, and panel text.
------------------------
Interface & Usability
------------------------
• Kept panel show/hide, panel theme, panel font size, label font size, label density, bar tint, ribbon glow, and alert controls.
• Added center-position panel options.
• No core settings were removed.
------------------------
Behavior Notes
------------------------
This update does not change the core analytical logic of the script.
The goal is to improve clarity, usability, and publication quality without changing how trend stability is classified.
Users should interpret outputs the same way as before.
------------------------
Limitations Reminder
------------------------
The script remains a rule-based analytical tool.
Market conditions such as volatility, liquidity, timeframe differences, and noisy price paths may affect how stability states 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.
ملاحظات الأخبار
🔧 UPDATE NOTES - V1.4This update focuses on readability and interface clarity.
The core purpose of the script remains unchanged.
This release improves how the existing trend-stability logic 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
------------------------
• Consolidated the right-side tags into a single status card
The three separate right-edge tags are now combined into one clean status card showing the trend stability state, stability score, and efficiency ratio together.
• Added an inline stability gauge
A compact 0-100 gauge now appears on both the status card and the panel Stability row for faster at-a-glance reading.
• Cleaner right-edge presentation
The status card replaces the previous staggered layout, so the right-edge context reads as one organized element instead of multiple stacked tags.
• Status card color reflects the active state
The card is colored by the current trend stability state for quicker recognition.
------------------------
Visual Improvements
------------------------
• Improved chart readability by replacing three staggered tags with one status card
• Reduced visual clutter on the right edge of the chart
• Refined visual hierarchy so state, stability, and efficiency read clearly together
• Kept the status card connected to the ribbon for clear context
------------------------
Interface & Usability
------------------------
• Added a consistent inline stability gauge for quicker interpretation
• Streamlined the right-edge context into a single, readable status card
• Adjusted default visual presentation for a more balanced appearance
• Enhanced overall readability without changing the core stability logic
------------------------
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 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.
ملاحظات الأخبار
UPDATE NOTES - V1.5This update focuses on on-chart readability and a cleaner, more consistent premium presentation.
The core purpose of the script remains unchanged.
This release improves how the existing trend-stability readout is displayed on the chart, the state labels, the right-side status card, and the panel. It does not change the trend engine, the stability classifier, the scoring, or the alerts.
This script continues to function as a chart-first trend classification and visualization tool. It does not attempt to predict price direction or provide guaranteed outcomes.
------------------------
What Changed
------------------------
- Cleaner score readout
The small inline bar next to the stability score has been removed from the panel and the status card. The score now reads as a clean value (for example, "87 / 100"), which is easier to read at a glance.
- Consistent Title Case
All on-chart state and workflow text now uses Title Case (Stable Up, Noisy Up, Stable Down, Noisy Down, Mixed, Stable Path, Noisy Path, Trend Up, Trend Down) instead of all-caps. Panel rows for direction, stability, and mode follow the same calmer style.
- Tidier status card
The right-side status card was simplified so the path state, stability score, and efficiency ratio stay clear and uncluttered.
- No logic changes
The trend direction engine, path-efficiency classifier, stability scoring, ribbon, and all alerts behave exactly as before.
------------------------
Visual Improvements
------------------------
- Improved chart readability by simplifying the score readout and unifying label casing across state labels, the status card, and the panel.
- Reduced visual noise so the active trend-stability state stands out more clearly.
- Refined the visual hierarchy between the stability ribbon, the state labels, and the right-side status card.
- Kept state labels offset above and below candles so they stay clear of price.
------------------------
Interface & Usability
------------------------
- Cleaner panel value formatting for a more balanced, premium appearance.
- More consistent wording between the panel, the state labels, and the status card.
- Default visual settings remain tuned for clean public-release screenshots.
- Overall user experience improved without changing core logic.
------------------------
Behavior Notes
------------------------
This update does not change the core analytical logic of the script.
The goal is to improve clarity and presentation, not to introduce new predictive behavior.
Users should interpret outputs the same way as before, now with a cleaner and more consistent on-chart readout.
------------------------
Limitations Reminder
------------------------
The script remains a rule-based analytical tool.
Market conditions such as volatility, liquidity, and timeframe differences may affect how trend-stability states 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.
ملاحظات الأخبار
🔧 UPDATE NOTES - v1.6This update focuses on decision confidence and proof.
The core purpose of the script remains unchanged.
This release adds a confirmation-anchored proof layer that measures how past
directional calls on the current symbol followed through and held.
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 past directional calls on the current symbol and timeframe
resolved. Each new directional regime (up or down) is tracked forward over a configurable
horizon:
- Follow Rate : share of calls that advanced one follow-through distance in the call
direction before the direction reversed
- Hold Rate : share whose direction did not reverse through resolution
- React Rate : share that produced an early favorable push inside the reaction window
- Flip Rate : share whose direction reversed within the horizon
A sample size (n) is shown so the rates are read in context, and they display as
"building" until at least one call has resolved.
• Added hidden data exports
Stability score, efficiency ratio, and the Follow / Hold / React / Flip rates are exposed
as hidden plots so these values can be referenced by alerts, screeners, or other tools
without changing the chart visuals.
------------------------
Visual Improvements
------------------------
• Grouped the proof metrics into a clean block under a dedicated "Proof @ Confirm" heading.
• Preserved the existing stability ribbon, glow, state labels, and right-edge status card.
• Refined panel structure so the stability state, workflow read, and proof context form
a single, scannable decision card.
• Kept all on-chart labels offset away from candles for clean readability.
------------------------
Interface & Usability
------------------------
• Optimized panel layout for clearer information flow with the new proof block.
• Improved at-a-glance interpretation by reporting directional follow-through reliability.
• Adjusted default visual settings for a more balanced appearance.
• Added a Proof input group (show/hide, proof horizon bars, follow-through ATR, reaction
window bars, reaction progress threshold) so the proof layer is fully configurable
without affecting the core stability logic.
------------------------
Behavior Notes
------------------------
This update does not change the core analytical logic of the script.
The proof rates are descriptive statistics of past directional calls on the current
symbol and timeframe. They measure directional follow-through and reversal frequency, not
trade performance, and they do not change how direction or path stability is classified.
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 amount of available history and on the current symbol and
timeframe; a small sample (low n) should be treated with caution. Each directional call is
counted once, anchored to a new up or down regime. Market conditions such as volatility,
liquidity, and timeframe differences may affect how calls 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.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
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
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
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
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.