Reliable SuperTrend + VWAP + BOS + MTF | Intraday Pro Indicator# 🚀Reliable SuperTrend + VWAP + BOS + MTF | Intraday Pro Indicator
## 🔍 Overview
This indicator is a **professional-grade intraday trading system** built to align with **market structure, volatility, and institutional flow**.
By combining **Pivot-based SuperTrend**, **VWAP positioning**, and **Break of Structure (BOS)** logic, it filters out low-quality trades and highlights only high-probability opportunities.
---
## 🧠 What Makes It Different?
Unlike traditional indicators that rely on lagging signals, this system focuses on:
* ✔ Real market structure (pivot-based trend logic)
* ✔ Institutional bias (VWAP positioning)
* ✔ Smart entries (pullbacks instead of chasing)
* ✔ Early exits (structure-based, not reactive)
👉 Result: **Cleaner signals, better timing, and improved consistency**
---
## ⚙️ Core Features
### 📈 Pivot-Based SuperTrend
* Uses adaptive pivot levels instead of fixed ATR bands
* Tracks real support/resistance zones
* Provides dynamic trailing stop
---
### ⚖️ VWAP Smart Filter
* Trades only when price is decisively above/below VWAP
* Includes ATR-based buffer to avoid noise
* Helps align with institutional trading zones
---
### 🎯 Clean Trend Signals
* One signal per trend → avoids overtrading
* Filters out choppy market conditions
* Focuses on high-quality setups
---
### 🔁 Pullback Entry Engine
* Identifies retracements near VWAP
* Confirms entries using strong momentum candles
* Improves risk-to-reward ratio significantly
---
### 💥 Break of Structure (BOS)
* Tracks recent swing highs/lows
* Detects true structure breaks
* Automatically resets levels to prevent repainting
---
### 🚨 Early Exit System
* Exits trades when structure breaks against position
* Helps protect profits before reversals
* Reduces dependency on stop-loss
---
### 🔍 Advanced Filters
* Volume Filter → avoids weak participation
* Volatility Filter → avoids sideways markets
* Higher Timeframe (HTF) Filter → trade with dominant trend
---
## 📊 Signal Types
* 🟢 **BUY** → Strong bullish trend with VWAP confirmation
* 🔴 **SELL** → Strong bearish trend with VWAP confirmation
* 🔵 **Pullback Buy** → Retracement + bullish momentum
* 🟠 **Pullback Sell** → Rally + bearish rejection
* ❌ **EXIT** → Structure break → exit early
---
## 🎯 How to Use (Simple Workflow)
1. Identify overall trend (optional HTF filter)
2. Wait for main BUY/SELL signals in trending markets
3. Use pullback signals for refined entries
4. Exit early on structure break signals
---
## ⚡ Best Use Cases
* Intraday trading (3m / 5m / 15m)
* Index trading (Nifty / BankNifty)
* Futures and liquid stocks
---
## 💡 Pro Tip
> Trade in the direction of the higher timeframe,
> enter on pullbacks near VWAP,
> and exit on structure break.
> Remove Pullback Buy/Sell for clear chart
---
## ⚠️ Disclaimer
This indicator is for educational purposes only and does not guarantee profits. Always use proper risk management.
---
## 👨💻 Author Note
This system is designed for traders who want **clarity over clutter** — fewer signals, better quality, and structured decision-making.
---
مؤشر

Daily Trade Plan Generator [AGPro Series]Daily Trade Plan Generator
Daily Trade Plan Generator — complete morning briefing tool that generates a structured, rules-based trade plan for every new trading day. Combines key levels, multi-timeframe bias, projected volatility range, and adaptive Plan A/B/C playbooks into one premium dashboard.
🔷 OVERVIEW
Most traders start their day scattered — flipping through charts, trying to remember yesterday's highs and lows, guessing where the market might move. Daily Trade Plan Generator replaces that chaos with a single structured briefing. Every new trading day (either at UTC midnight for crypto or at a configurable exchange session open), the script automatically generates a complete plan: where the key levels are, which direction has the stronger multi-timeframe bias, how wide the day is likely to trade, and what the Plan A, Plan B, and Plan C playbooks look like. It is the first tool to open every morning — and it is self-updating, so you never have to reset it.
This is not a signal generator and not a strategy. It is a briefing tool, designed for traders who want to start every session with the same structured preparation a professional desk would do — without spending 30 minutes on it manually.
🎯 UNIQUE EDGE
What separates this script from generic level indicators and daily-high-low plotters:
• All-in-one daily briefing — levels, bias, volatility, and Plan A/B/C in one dashboard, not four separate indicators cluttering the chart.
• Multi-timeframe bias score (0 to 100) blending 1H, 4H, Daily, and Weekly EMA structure with three configurable weighting modes (Fast, Balanced, Conservative) so the bias matches your trading style.
• Asset-class-aware round numbers — the script auto-detects price magnitude and picks sensible round-number intervals (1000 for BTC-scale assets, 0.01 for forex majors, and so on) without manual setup.
• Projected daily range as a visual zone — ATR-based expected high and low rendered either as a semi-transparent rectangle, dashed lines, or both, giving you an immediate read on where price is likely to operate.
• Plan A / Plan B / Plan C structure (user-configurable 1 to 3) — deliberate "Plan" terminology to avoid confusion with pivot S/R notation. Plan language uses historical-pattern framing with no forecasting claims.
• Two refresh anchors plus a "both visible" option — crypto traders get UTC midnight, equities/futures traders get configurable session open, swing traders can see both markers.
• Timeframe-adaptive behavior — on weekly and higher timeframes, PDH/PDL automatically hide (since "previous day" is not meaningful there), and Plan A/B references shift to PWH/PWL for consistency.
• Smart label collision avoidance — PROJ HI/LO, PDH/PDL, and PWH/PWL labels intelligently reposition when too close together, keeping every chart readable at any scale.
• Volatility regime classification (Low / Normal / High) with a context-aware risk note that adapts to market conditions.
🧩 METHODOLOGY
LEVELS. Previous Day High/Low and Previous Week High/Low are pulled via higher-timeframe requests and rendered as persistent lines extending from today's session open to the right. The nearest round number is drawn as a single dotted line on the chart; the full list of nearby round numbers is shown in the dashboard panel to keep the chart clean.
BIAS SCORE. For each timeframe (1H, 4H, 1D, 1W), three components are evaluated: fast EMA versus slow EMA relationship, close versus fast EMA position, and fast EMA slope direction. Each component contributes plus or minus one, averaged to a per-timeframe score between -1 and +1. The four timeframe scores are then combined using the selected weighting mode and normalized to a 0-100 scale. Scores above 65 are labeled Bull, below 35 Bear, and in between Neutral.
VOLATILITY. Daily ATR over the configurable length (default 14) determines the expected range. The range is centered on today's session open and expanded by the Range Multiplier input. ATR as a percentage of open price classifies the regime: below 1% is Low, above 4% is High, in between is Normal.
PLANS. The script composes Plan A (primary, aligned with bias), optionally Plan B (alternative, opposite-side rejection path), and optionally Plan C (range / mean-reversion, activated when volatility is low or bias is neutral). Plan references adapt automatically to chart timeframe — intraday and daily charts use PDH/PDL, weekly and higher charts use PWH/PWL. The language is deliberately conditional and references historical patterns rather than predicting future prices.
🔔 SIGNALS & ALERTS
The script includes five built-in alert conditions:
• New Daily Plan Generated — fires when the daily refresh anchor triggers.
• Price Broke PDH — crossover above Previous Day High.
• Price Broke PDL — crossunder below Previous Day Low.
• Price Exceeded Projected High — crossover above ATR-projected high (volatility expansion).
• Price Exceeded Projected Low — crossunder below ATR-projected low (volatility expansion).
Each alert includes the ticker and relevant price in the message payload, ready to route into any alert handler.
⚙️ KEY INPUTS
• Daily Refresh Anchor — UTC Midnight, Exchange Session, or Both Visible.
• Exchange Session Open Hour — 0 to 23, used when Exchange or Both is selected.
• Key Levels toggles — PDH/PDL, PWH/PWL, Round Numbers individually toggleable.
• Round Numbers in panel — 1 to 5 levels above and below the current price.
• Bias Calculation Mode — Fast (HTF-weighted), Balanced, or Conservative (MTF-weighted).
• EMA Fast / Slow periods — defaults 20 and 50.
• ATR Length and Range Multiplier — control the width of the projected daily range.
• Expected Range Visualization — Zone (Box), Dashed Lines, or Both.
• Number of Plans — A, A+B, or A+B+C.
• Panel Location — six corner/middle positions.
• Panel and Label font sizes — Tiny through Huge, default Normal.
• Panel Theme — Dark or Light, adapts to chart background.
🛠️ HOW TO USE
1. Add the script to your chart at the start of each trading day (or leave it on permanently — it refreshes automatically).
2. Read the dashboard panel top to bottom: LEVELS tell you where the battle lines are, BIAS tells you the dominant direction, VOLATILITY tells you how much room the market has, PLANS give you conditional playbooks for the day.
3. Check the "Risk Note" line — it adapts to the volatility regime and bias. Low volatility suggests patience, high volatility suggests reducing size, neutral bias suggests waiting for a clean break.
4. Use the plotted levels as structural references for your own entries and exits. The projected range box highlights where mean-reversion trades are statistically more likely to work.
5. Set alerts on PDH/PDL breaks and projected-range expansion events to get notified when your Plan A or Plan B is being tested.
6. Adjust the bias mode to match your style: intraday scalpers benefit from Fast (HTF-weighted), position traders often prefer Conservative (MTF-weighted).
⚠️ LIMITATIONS & TRANSPARENCY
• This is a briefing tool, not a strategy or signal generator. It does not open, close, or manage trades.
• All levels and plans are derived from historical data (previous day/week highs and lows, ATR, EMA structure). Past structure does not guarantee future behavior.
• Projected ranges are statistical estimates based on ATR — actual daily ranges can and do exceed them, especially during news events or regime shifts.
• The multi-timeframe bias score is a momentum/trend structure measurement, not a prediction. Markets can reverse at any time regardless of bias.
• Plan language uses historical-pattern framing deliberately. No plan is a forecast; it is a conditional reference for discretionary decision-making.
• On weekly and higher timeframes, PDH/PDL are hidden by design because "previous day" is not a meaningful unit for weekly-horizon decisions. Plan A and Plan B use PWH/PWL as reference in those cases.
• The script does not repaint on closed higher-timeframe bars. The daily open, PDH, PDL, PWH, PWL are locked once the respective higher-timeframe bar closes.
• Round-number auto-detection uses price magnitude; for unusual instruments (very high or very low priced), review the levels manually.
🛡️ RISK DISCLOSURE
Trading involves substantial risk of loss. This script is a technical analysis tool provided for informational and educational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to trade any instrument. Past performance of any pattern, level, or methodology shown is not indicative of future results. Always conduct your own analysis, manage your position size according to your risk tolerance, and consider consulting a qualified financial professional before making trading decisions. The author and AGProLabs assume no liability for any trading outcomes resulting from the use of this tool.
مؤشر

ICT Smart Money Footprint [AGPro Series]ICT Smart Money Footprint
🔷 OVERVIEW
ICT Smart Money Footprint is a multi-timeframe price action engine that maps institutional liquidity behavior directly onto your chart. It combines higher-timeframe reaction zones (BSL/SSL) derived from swing pivots with candle-by-candle lower-timeframe footprint states — Liquidity Grab, Displacement, and Reclaim — into one cohesive visualization. A live panel tracks session bias, daily event counts, and zone lifecycle, giving price action traders a complete context window for ICT-style analysis across every timeframe.
🧭 UNIQUE EDGE
Most Smart Money Concept indicators plot every swing as a zone, producing cluttered charts that obscure the very structure they aim to reveal. This tool takes a different route. It separates the question "where is liquidity?" (answered at HTF with wide, contextual zones) from "what is price doing right now?" (answered at LTF with footprint labels). The two layers communicate through a single panel and a shared color palette, so the trader always sees both the macro landscape and the tactical footprint without layering multiple scripts. Priority filtering ensures only the highest-conviction event is printed per bar, and confluence windowing prevents label clustering.
⚙️ METHODOLOGY
The script runs two parallel engines.
The HTF Zone Engine pulls pivot highs and lows from a higher timeframe using request.security with lookahead disabled. Each confirmed pivot anchors a reaction zone sized by HTF ATR × 1.5, ensuring natural visibility on any chart view. Buy-Side Liquidity (BSL) zones form above price at pivot highs; Sell-Side Liquidity (SSL) zones form below price at pivot lows. Zones extend right via line.new with extend.right and a linefill between the two edges. When price tags a zone, the zone is marked mitigated: its lines switch to dashed style, width drops, color fades, and right extension freezes at the touch point.
The LTF Footprint Engine evaluates each confirmed candle for three events. Liquidity Grab triggers when price sweeps the prior LTF swing with a buffer and closes back inside range in the opposite direction. Displacement triggers when candle range exceeds ATR × multiplier and the candle breaks the prior bar's extreme. Reclaim triggers when price recovers a recently lost swing level within a 20-bar window. A priority filter (DISP > LG > REC) prints only the strongest event per bar and direction. A session bias score accumulates these events and resets daily, tinting the chart background and updating the panel in real time.
📡 SIGNALS & ALERTS
Six alert conditions are built in:
• Liquidity Grab (bull or bear)
• Displacement (bull or bear)
• HTF Mitigation (any zone tagged)
• Reclaim (bull or bear)
• Bias Turned Bullish
• Bias Turned Bearish
All alerts include ticker and interval placeholders for multi-chart monitoring.
🎛️ KEY INPUTS
HTF Source — Auto scales the higher timeframe to your chart (15m→4H, 1H→D, 4H→W, 1D→M), or pick a manual HTF.
HTF Pivot Length — controls strength threshold of liquidity zones.
HTF Zone Height (ATR x) — default 1.5; tune for wider or tighter zones.
LTF Pivot Length — swing sensitivity for LG and REC detection.
Displacement ATR Multiplier — default 2.0; raise for only the most explosive candles.
Sweep Buffer — extra cushion above or below swing levels for LG qualification.
Confluence Window — suppresses back-to-back same-direction labels.
Session Bias Band — subtle background tint reflecting daily event accumulation.
Panel Location, Theme, Font Size — full control over on-chart presentation.
🧩 HOW TO USE
Start with your normal trading timeframe. The HTF Source set to Auto will anchor the zones to a relevant higher timeframe. Watch how price interacts with the BSL and SSL zones: unmitigated HTF zones act as liquidity targets and reaction areas, while mitigated (dashed) zones mark where liquidity has already been absorbed.
Use the LTF footprint labels to read the tactical story inside those zones. A Liquidity Grab near an SSL zone hints at institutional accumulation. A Displacement candle after an LG often precedes a structural shift. A Reclaim of a recently lost level signals inducement and potential continuation. The panel's Session Bias gives you a running directional read; when it flips, an alert can fire.
Traders typically combine this tool with their own execution framework: HTF zones for bias and target selection, LTF footprints for timing and confirmation. The indicator provides the map; risk management, entry rules, and position sizing remain the trader's responsibility.
⚠️ LIMITATIONS & TRANSPARENCY
This indicator is an analytical mapping tool, not a trading strategy. It identifies structural patterns and plots them for visual analysis.
HTF zones rely on request.security with lookahead disabled, which means new zones appear only after the HTF pivot is fully confirmed — this introduces a natural lag consistent with non-repainting practice but means some reactions may occur before the zone is drawn.
LTF footprint labels are confirmed on bar close. Intrabar signals during live bars may flicker until the bar closes.
Different market conditions produce different zone densities. Ranging markets generate more mitigated zones; trending markets leave more unmitigated zones above or below price. Use the Max Active Zones input to cap chart clutter.
Past structural patterns do not guarantee future outcomes. Liquidity sweeps can mark reversals or simply precede continuation moves. Always validate signals with your own analysis and broader market context.
📌 RISK DISCLOSURE
This script is provided for educational and analytical purposes only. It does not constitute financial advice, investment advice, or a recommendation to buy or sell any asset. Trading involves substantial risk of loss. Past performance does not guarantee future results. Users are solely responsible for their trading decisions, risk management, and position sizing. The author assumes no liability for any outcome arising from the use of this indicator. مؤشر

مؤشر

Round Number Magnet Map [AGPro Series]Round Number Magnet Map
════════════════════════════════════════
🔹 OVERVIEW
Round numbers act as psychological magnets on every liquid market. Traders cluster stop orders, limit orders, and mental entries around levels like 2000, 2400, 50000. These levels attract price, get tested repeatedly, and either hold with sharp reactions or break with decisive momentum. Yet most round-number tools ship a hard-coded list (100, 500, 1000) that works on some charts and fails on others.
Round Number Magnet Map is a psychological level engine that detects the right round numbers for any symbol automatically, tracks every touch with a composite reaction grading system, and ranks the strongest magnets in a professional leaderboard. It works out of the box on Bitcoin at 100k, on Ethereum at 2k, on Solana at 10, on EUR/USD at 1.05, on the S&P 500 at 5000, and on gold at 2400 — no configuration required. Traders who prefer manual control can override the auto-detected tiers with their own comma-separated list.
The indicator is asset-agnostic, non-repainting, bar-confirmed, and optimized for speed. It is designed to be a permanent chart companion on any timeframe.
🔹 UNIQUE EDGE
What separates Round Number Magnet Map from generic round-number indicators:
1. Asset-aware auto-detection. The script reads current price magnitude and selects the correct tier spacing automatically — 10000/5000/1000 for high-cap assets, 100/50/10 for mid-cap, 0.01/0.005/0.001 for forex majors. Three nested tiers render simultaneously so both major and minor psychological levels are visible with a clear visual hierarchy.
2. Composite reaction grading. Each touch is not just counted — it is graded. The script combines three inputs: ATR reaction (how many ATRs price traveled after the touch), wick rejection ratio (how strongly the touch bar rejected the level), and relative volume (whether institutional flow confirmed the reaction). The result is a 0-100 score mapped to A/B/C/D grades, so traders can distinguish a truly respected magnet from a level that price simply grazed.
3. Broken-level recovery logic. Most tools mark a level as "broken" the first time price closes through it and leave it broken forever. That is wrong on round numbers — price oscillates around 2000, 3000, 10000 repeatedly across months and years. This engine un-breaks a level the moment price returns to its zone, so the map always reflects current reality.
4. On-chart leaderboard. The panel ranks the top 5 most-touched levels visible in the current chart window, with touch count and composite grade, so the strongest magnets are always one glance away.
5. Clean by design. Rendering is restricted to an ATR-scaled window around current price, with optional toggles to hide broken and untouched levels. The chart stays readable even on high timeframes where dozens of round numbers would otherwise clutter the view.
🔹 METHODOLOGY
Tier generation. When auto-detect is enabled, the script classifies current price into a magnitude bucket (>10000, 1000-10000, 100-1000, 10-100, 1-10, <1, etc.) and assigns a three-tier spacing. Tier 0 is the major step, tier 1 is a half-step, tier 2 is a fine step. All three tiers are generated around current price within an ATR-scaled search range, deduplicated, and capped at a configurable maximum (default 20).
Touch detection. Each level is surrounded by a zone of thickness (ATR × configurable multiplier, default 0.20). A touch is registered when a bar's high-low range intersects the zone and at least N bars have passed since the last touch on that level (cooldown, default 5). This prevents a single consolidation from inflating the touch count.
Reaction grading. Exactly N bars after a touch (default 5), the script computes:
• ATR reaction (60% weight): maximum favorable excursion from the level in the direction of the test, normalized against a target of 2 ATRs = score 100.
• Wick rejection (25% weight): the rejection wick on the touch bar relative to the bar's range.
• Relative volume (15% weight): volume on the touch bar relative to the 20-bar average.
The three components are combined into a single 0-100 composite score. Scores of 80+ are grade A, 65-80 are grade B, 45-65 are grade C, below 45 are grade D.
Break detection. A level is marked as broken only when, during a reaction grading, price has closed beyond the zone by an additional 0.3 ATR in the opposite direction of the test. This strict criterion avoids false breaks from single wicks or low-conviction closes. Broken levels are un-marked automatically when price returns to the zone.
Rendering. Active non-broken levels render as solid blue lines with an optional S/R-style zone box. Broken levels render as dashed gray lines with a BRK badge. Labels show price, touch count, and grade. Priority-0 (major) levels render with increased line width, and levels within 1 ATR of price render thicker still (magnet effect).
🔹 SIGNALS & ALERTS
The script generates four non-repainting, bar-confirmed alert conditions:
• Touch — price has entered a round-number zone.
• Held (Strong Reaction) — a touch has resolved with a composite score ≥ 60, meaning the level held with meaningful reaction strength.
• Broken — a level has been decisively broken by a strong close beyond the zone.
• Magnet Approach — price is within 0.5 ATR of a level, approaching without yet touching.
Each alert fires at bar close and carries ticker and timeframe tokens for routing to external automation.
🔹 KEY INPUTS
Detection
• Auto-Detect Tiers — asset-aware tier selection (recommended).
• Custom Tiers — comma-separated override (e.g., "1000,500,100" for BTC).
• Level Search Range — how far from price to generate levels, in ATR-scaled units.
• Max Active Levels — hard cap on rendered levels (default 20).
Touch & Zone
• Zone Thickness — size of each round-number zone in ATR units (default 0.20).
• ATR Length — period for ATR used in zone and reaction calculations (default 14).
• Touch Cooldown — minimum bars between touches on the same level (default 5).
• Reaction Window — bars after a touch used for reaction grading (default 5).
Reaction Grading
• Weight: ATR Reaction / Wick Rejection / Relative Volume — configurable composite weights. Weights are normalized automatically if they do not sum to 1.
• ATR Normalization Target — the ATR-reaction value that maps to score 100.
Visuals
• Show Zones, Show Level Labels, Hide Broken Levels, Hide Untouched Levels, Magnet Effect.
• Far Levels Transparency, Label Size, Label Offset.
Panel
• Show Panel, Panel Location (6 options), Panel Theme (Dark/Light), Panel Font Size.
Alerts
• Independent toggles for Touch, Held, Broken, Magnet Approach.
🔹 HOW TO USE
The indicator is designed for discretionary trading and framework-based decision making. A few practical patterns:
1. Use the nearest Above and Below levels in the panel as your immediate target and invalidation reference. The Strongest line on the panel is the highest-conviction magnet in view.
2. Grade A and B levels are historically respected by this market. When price approaches one, expect a reaction. When price approaches a Grade D level, expect a clean pass-through or a trap.
3. Confluence with other tools. Round numbers combined with a swing high/low, a moving average, or a Fibonacci level are far more likely to hold than a round number alone. Treat this indicator as one layer in a stacked decision framework.
4. Timeframe selection. Use higher timeframes (1D, 4H) to identify the dominant magnets for position trading, and drop to lower timeframes (1H, 15m) for execution around those same levels.
5. Broken levels are still information. A dashed level with 20+ historical touches is a zone where liquidity has been swept and where retests often provide re-entry opportunities.
🔹 LIMITATIONS & TRANSPARENCY
• This tool identifies psychological levels and grades their historical reaction quality. It does not predict price direction and it is not a trading strategy. Use it as part of a complete decision framework.
• Reaction grades are historical, not forward-looking. A level that held five times may still break on the next test, especially in strong trending conditions or during high-impact news events.
• Touch counts depend on chart history. On symbols with limited history, recent levels may have fewer touches than their true significance warrants.
• The reaction window is fixed (default 5 bars). Reactions that take longer to develop will be graded as weaker than they truly are. Adjust the window to match the instrument and timeframe.
• Extremely low-volume symbols may produce noisy reaction scores because the relative-volume component becomes unreliable. Reduce its weight to 0 in such cases.
🔹 RISK DISCLOSURE
This indicator is a technical analysis tool for educational and discretionary decision support. It does not constitute financial advice, investment advice, a solicitation, or a recommendation to buy or sell any instrument. Past reactions at any level do not guarantee future behavior. All trading involves substantial risk of loss. You are solely responsible for your trading decisions and for managing your capital.
مؤشر

Harmonic Ratio Scanner [forexobroker]Harmonic Ratio Scanner detects simple harmonic ratios between consecutive price swings. Instead of waiting for rare full XABCD patterns, this indicator finds individual Fibonacci retracement ratios that occur frequently and provide actionable trade setups.
🔶 WHAT MAKES THIS UNIQUE
Traditional harmonic scanners require complete 5-point patterns (Gartley, Butterfly, Bat, Crab). These are complex, rare, and often subjective. The Harmonic Ratio Scanner takes a fundamentally different approach: it measures the ratio between any two consecutive swings.
If swing B retraces 61.8% of swing A, that single ratio represents natural market rhythm at a Fibonacci level. These individual ratios occur far more frequently than full patterns, giving traders more opportunities while still capturing the core principle of harmonic trading.
🔶 HOW IT WORKS
1. The indicator detects swing highs and lows using pivot logic
2. It stores the most recent swings in memory
3. For each pair of consecutive swings, it calculates the retracement ratio
4. If the ratio matches a known harmonic value (within configurable tolerance), a harmonic ratio is detected
5. The swing direction determines if the ratio is bullish or bearish
🔶 DETECTABLE RATIOS
- 38.2% - Shallow retracement (continuation likely)
- 50.0% - Half retracement (optional, disabled by default)
- 61.8% - Golden ratio (highest probability)
- 78.6% - Deep retracement (strong reversal zone)
Each ratio can be individually enabled or disabled.
🔶 SIGNAL LOGIC
BUY signals fire when:
- A bullish harmonic ratio is detected (swing low forming after swing high)
- Volume confirms the setup (above 20-period SMA)
- Bar is confirmed (no repainting)
SELL signals fire under inverse conditions.
A 15-bar cooldown prevents signal clustering.
🔶 VISUAL GUIDE
- Colored lines connect the detected harmonic swings
- Ratio percentage labels appear at swing midpoints
- Green lines and arrows for bullish ratios
- Pink lines and arrows for bearish ratios
- Info table displays the last detected ratio, direction, and active filters
🔶 RECOMMENDED SETTINGS
- Swing trading (1H-4H): Default settings work well
- Scalping (5m-15m): Reduce swing lookback to 3, increase tolerance to 5%
- Position trading (Daily): Increase swing lookback to 8-10
- For more signals: Enable the 50% ratio
- For higher quality: Disable 38.2%, keep only 61.8% and 78.6%
🔶 ALERTS
9 alert conditions available including buy/sell signals, ratio detection, bullish/bearish ratio alerts, and volume surge notifications. JSON-formatted alerts supported for webhook integration.
🔶 LIMITATIONS
- Swing detection requires lookback bars to confirm. There is an inherent delay equal to the swing lookback setting.
- Not all harmonic ratios lead to reversals. The ratio identifies a zone of interest, not a guaranteed outcome.
- On very low timeframes, swing noise may produce false ratios. Increase the minimum swing size filter.
- This indicator does not repaint. Swings are confirmed only after the lookback period completes.
- Past performance does not guarantee future results. Always use proper risk management.
مؤشر

High/Low Daily,Weekly, monthly. NY-Asia-LdnHTF Candle High/Low Projection (D/W/M/Y)
This indicator automatically projects the highs and lows of higher timeframe candles directly onto the current chart.
It supports Daily, Weekly, Monthly, and Yearly levels.
Each time a higher timeframe period closes:
the script records that candle’s high and low,
then draws them as horizontal levels on the chart,
with a clear label showing their origin: D, W, M, or Y.
These levels remain visible until price touches them for the first time.
Once a level is hit by a wick, the projection stops exactly at that point, allowing the trader to clearly identify where the market reacted.
The indicator is fully customizable:
enable or disable each timeframe individually,
choose custom colors for Daily, Weekly, Monthly, and Yearly levels,
adjust line style, line width, label size, and label offset,
control the maximum number of active objects on the chart.
This makes it useful for identifying:
higher timeframe liquidity,
important reaction zones,
untouched highs and lows,
and key areas where price may seek or react.
In short, this tool helps traders keep important HTF reference levels visible at all times in a clean and structured way. مؤشر

Key Levels Pro [AGPro Series]Key Levels Pro
🔑 Overview
Key Levels Pro is a comprehensive, non-repainting level tracker that consolidates every institutionally significant price reference into one clean overlay. Previous day, week, and month highs/lows (PDH, PDL, PWH, PWL, PMH, PML) are plotted alongside Asian, London, and New York session highs and lows. Every level is actively monitored — touch count, break count, and respect rate update in real time, giving you a live quality score for each price zone.
Most level scripts stop at drawing lines. Key Levels Pro goes further: lines automatically thicken on repeated touches, switch to dashed style when broken, and fade to muted color to signal invalidation. Zone rectangles extend back to the formation bar of each level, making historical respect visible at a glance. An ATR-aware label collision system keeps the chart readable on every timeframe, and same-price levels are intelligently deduplicated so you never see four overlapping labels at the same price.
───────────────────────────────────────────────────────
📐 Unique Edge
Unlike generic pivot or S/R scripts, Key Levels Pro tracks the behavioral quality of each level — not just its existence. A level that has been tested five times without breaking carries a different weight than a fresh, untested one. Key Levels Pro surfaces that difference automatically through line width, style, and panel data.
What makes it distinct:
🔹 Complete previous-period coverage (PDH/PDL, PWH/PWL, PMH/PML) in one overlay, without redundant current-period duplicates.
🔹 Live session tracking for Asian, London, and New York simultaneously, with automatic hiding on Daily and higher timeframes.
🔹 Per-level touch count, break count, and respect rate computed from actual historical price interaction.
🔹 Dynamic line thickening on repeated touches (width 1 → 2 → 3).
🔹 Auto-broken state with dashed style + muted color — no distracting flags or banners.
🔹 Historical zone boxes extending back to the formation bar of each level.
🔹 ATR-aware label collision resolution that stacks overlapping labels vertically.
🔹 Price-based deduplication: when two levels share the same price, the higher-priority one wins (Monthly > Weekly > Daily > Session).
🔹 ATR-normalized proximity to the nearest level above and below the current price.
───────────────────────────────────────────────────────
🔬 Methodology
Previous-period levels are pulled from the daily, weekly, and monthly timeframes using request.security() with lookahead enabled for the completed-period values. This approach is standard, transparent, and non-repainting — historical data does not change.
Session levels are tracked bar by bar using customizable session time inputs. Each session resets at its start time and tracks the running high and low until the session closes. The Asian, London, and New York sessions can each be configured independently.
Touch detection uses an ATR-based tolerance band (default 10% of ATR). When price closes within that tolerance of a level, the touch counter increments. A break is registered when price closes on the opposite side of a level compared to the prior bar. Respect rate is calculated as touches / (touches + breaks) × 100.
Line width scales with touch count: 1 touch = width 1, 2–4 touches = width 2, 5+ touches = width 3. Broken levels switch to dashed style and a muted color.
The label collision system operates in three stages: first, all enabled levels are collected into a sorted array; second, same-price levels are deduplicated based on priority (Monthly highest, Session lowest); third, an upward sweep enforces minimum vertical spacing using a blend of ATR and chart-range heuristics, ensuring labels never overlap regardless of market volatility.
───────────────────────────────────────────────────────
📊 Signals & States
This script is a visualization and data tool — it does not generate buy or sell signals.
Level states are communicated visually:
🔹 Active (solid line, full color): level has not been broken.
🔹 Touched (thicker line, 2–3px): level has been tested one or more times.
🔹 Broken (dashed line, muted slate color): level has been decisively closed through.
Info panel states:
🔹 Session: active market session (Asian / London / New York / Off-Hours / N/A on Daily+).
🔹 Near Above / Near Below: price of the closest active level on each side of the current close.
🔹 Dist Above / Below ATR: distance expressed as a multiple of ATR(14).
🔹 Touch and respect rate data for PDH, PDL, PWH, PWL.
───────────────────────────────────────────────────────
⚙️ Key Inputs
Level Groups: Toggle previous day, week, month, and session levels independently.
Session Times: Fully customizable start/end times for Asian, London, and New York sessions in exchange timezone.
Zone Style: Enable/disable S/R zones and adjust zone transparency.
Lines & Labels: Set line extension length, toggle labels, choose label density (All / Reduced / Minimal), set font size, and enable or disable same-price deduplication.
Info Panel: Toggle panel, set location (six positions), and choose theme (Dark / Light).
ATR Settings: Set ATR period and touch tolerance as an ATR multiple (0.02 to 0.50).
───────────────────────────────────────────────────────
📖 How to Use
1. Add the script to a chart — all major levels appear immediately.
2. Adjust session times if trading non-crypto markets.
3. Watch line thickness: thicker = more tested = stronger historical reaction zone.
4. Dashed + muted color = broken. Treat broken levels as potential new S/R from the opposite side (role reversal).
5. Use the panel's Near Above and Near Below fields to gauge proximity before entry or exit decisions.
6. Use "Reduced" density (default) for cleaner charts, or switch to "All" when you need session context.
7. Works on all asset classes: crypto, forex, equities, indices, commodities.
Recommended timeframes: 15m–4H for session levels; 1H–1D for previous-period levels.
───────────────────────────────────────────────────────
⚠️ Limitations & Transparency
🔹 Session tracking is session-relative and resets each new session.
🔹 Touch tolerance is an ATR-based heuristic and may need adjustment on extremely low-volatility instruments.
🔹 All data is historical. Touch count and respect rate describe past price behavior, not future outcomes.
🔹 This script is not a trading strategy, does not issue trade signals, and cannot predict market direction.
🔹 On exotic or illiquid instruments with large gaps, formation-bar zone boxes may appear truncated if the level formed outside the chart's visible range.
───────────────────────────────────────────────────────
🛡️ Risk Disclosure
This script is provided for informational and educational purposes only. It does not constitute financial advice, investment advice, or a recommendation to buy or sell any financial instrument. All trading involves risk. Past level behavior does not guarantee future results. Always use proper risk management and test any approach in a demo environment before committing real capital. مؤشر

مؤشر

Phantom Structure Engine [JOAT]Phantom Structure Engine
Overview
Phantom Structure Engine is a comprehensive Smart Money Concepts (SMC) framework built entirely in Pine Script v6 using typed User-Defined Types and methods. It maps institutional price structure across five dimensions simultaneously: swing Break of Structure (BOS), Change of Character (CHoCH), Order Blocks (OB), Fair Value Gaps (FVG), Equal Highs/Lows (EQH/EQL), Liquidity Sweeps, and dynamic Premium/Discount/Equilibrium zones — all rendered with an institutional-grade dark visual palette and managed via object arrays.
Why a Unified SMC Framework?
SMC concepts are deeply interconnected. A BOS creates the context for a valid Order Block. A CHoCH signals a structural regime shift that invalidates existing OBs. A liquidity sweep above an EQH often precedes a reversal into a Discount zone. Displaying these concepts in isolation (as separate indicators) breaks the logical chain between them. Phantom Structure Engine fuses all layers into a single coherent visual, so each element is always read in its correct structural context.
Core Engine — Swing Structure
Two separate pivot engines run concurrently:
- Swing pivots (configurable left/right bars, default 10/10): define the major structure highs and lows used for BOS and CHoCH detection
- Internal pivots (default 3/3): track minor structure shifts for shorter-term intrabar analysis
BOS Detection with Confirmation Counter
Rather than firing on the first close beyond a swing level, the engine counts consecutive closes above the last swing high (or below the last swing low). A BOS only registers when the close count reaches or exceeds the configurable confirmation threshold (default 1, max 5). This suppresses false breaks caused by wicks and momentary spikes while remaining responsive.
- BOS (Break of Structure): Close beyond swing level, structure direction confirmed. Displayed as a horizontal line from the pivot bar to the break bar, with a BOS label.
- CHoCH (Change of Character): BOS that occurs against the prevailing structural direction (e.g., a bullish break when the prior confirmed direction was bearish). Displayed in gold with a dashed line and CHoCH label.
Order Block Detection
When a BOS or CHoCH fires, the engine scans backward (configurable lookback, default 10 bars) for the last opposing candle — a bearish candle before a bullish BOS, or a bullish candle before a bearish BOS. This candle becomes the Order Block zone.
Each OB is drawn with a two-layer box: a wide semi-transparent outer box and a tighter inner highlight. The OB extends forward on every bar and automatically invalidates (turns grey) when price closes through the opposite boundary — the exact behaviour seen when an OB has been mitigated by institutional flow.
Fair Value Gap Detection
A bullish FVG is identified when bar .low > bar .high (a gap in price between the current bar's low and two bars ago's high), indicating that price moved so fast upward that no trading occurred in that range. Bearish FVG is the mirror. FVGs are drawn as dotted-border boxes that extend forward and auto-fill (turn grey) when price returns to close the gap.
Equal Highs / Equal Lows (EQH / EQL)
At each new swing pivot, the engine compares the current pivot value against the previous pivot of the same type. If the absolute percentage difference is less than 0.15%, they are classified as equal and an EQH or EQL label is stamped at the midpoint. These levels represent liquidity pools resting above or below price — targets for institutional sweeps.
Liquidity Sweeps
A sweep is detected when price wicks beyond the last confirmed swing high or low but closes back on the opposite side. This is the classic liquidity grab: price hunts stops above a high (or below a low), then reverses. Sweep labels fire at the wick extreme in gold — one of the highest-probability reversal signals in institutional analysis.
Premium / Discount / Equilibrium Zones
After each confirmed BOS, the engine identifies the full range between the last confirmed swing high and swing low. This range is divided into three zones:
- Premium (top 38.2%): Statistically expensive — short bias in a bearish structure
- Equilibrium (38.2%–61.8%): Fair value — reduce exposure
- Discount (bottom 38.2%): Statistically cheap — long bias in a bullish structure
Previous zones are deleted and redrawn on each new BOS, keeping the chart clean.
Periodic Levels (PDH / PDL / PWH / PWL)
Previous Day High/Low and Previous Week High/Low are fetched via request.security() with lookahead disabled (barmerge.lookahead_off), preventing any future-bar contamination. These levels render as step-line plots and represent the primary reference levels used by institutional order desks at open.
Institutional Funding Candles
Bars where the true range exceeds 1.5× ATR(14) AND volume exceeds 2× the 20-bar volume SMA are highlighted as funding candles. These represent institutional participation bars and are coloured based on the current structural direction: teal (bullish structure), red (bearish structure), gold (neutral).
Dashboard (Top Right)
A compact 2-column, 8-row table displays: current structural direction, active OB count, open FVG count, last confirmed swing high/low values, and current sweep status for both sides.
Inputs Reference
Structure Settings
- Swing Pivot Left/Right Bars (10/10) — major swing sensitivity
- Internal Pivot Left/Right (3/3) — minor structure sensitivity
- BOS Confirmation Closes (1–5) — consecutive closes needed to confirm BOS
- Show BOS Labels / CHoCH Labels / HH-HL-LH-LL labels
Order Blocks
- Show Order Blocks
- OB Lookback Candles (10) — how far back to scan for the OB candle
- Max Active OBs (6) — older OBs are deleted when limit is reached
Fair Value Gaps
- Show Fair Value Gaps
- Max Active FVGs (5)
Premium / Discount
- Show PD Zones / EQH-EQL / Liquidity Sweeps
Periodic Levels
- Show Prev Day H/L / Prev Week H/L
Visual
- Theme: Dark, Light, Auto
- Show Funding Candles
How to Use
1. Apply on any liquid instrument. Allow the warmup period (driven by pivot lookback) before trusting the signals.
2. Read structure direction from the dashboard. BOS labels in teal confirm a bullish shift; CHoCH in gold signals a potential trend reversal.
3. Look for price to pull back into a valid (not invalidated) OB or into the Discount zone before considering long entries. Reverse for shorts.
4. FVG zones often act as magnets — price tends to revisit them before continuing in the BOS direction.
5. Treat Liquidity Sweep labels as potential reversal alerts, particularly when they align with OBs or Discount/Premium zones.
Non-Repainting Design
All BOS, CHoCH, sweep, and FVG signals are gated by barstate.isconfirmed. Periodic levels use close with lookahead_off. No pivot value is read until the required right-bar confirmation period has elapsed. Historical labels never shift position.
Limitations
- SMC is a discretionary framework. This indicator automates detection but cannot replace contextual judgment on higher-timeframe bias.
- In extremely fast-moving markets, FVGs may form and fill within the same session, reducing their relevance as future targets.
- EQH/EQL detection uses a 0.15% price equality threshold — this may need adjustment for very low-priced or highly volatile instruments.
- OBs are detected from the most recent opposing candle before a BOS. On some instruments, the true institutional OB may be further back.
Disclaimer
This indicator is provided for educational and informational purposes only. SMC concepts describe price behaviour patterns and do not guarantee any future market outcome. Always conduct your own analysis and use proper risk management.
Made with passion by officialjackofalltrades
مؤشر

Auto Support Resistance ChannelsAuto Support Resistance Channels
This indicator builds support and resistance zones from confirmed pivot structure and then ranks those zones using a multi-factor scoring model. Its purpose is not simply to mark swing highs and lows, but to convert repeated price interaction into structured channels that reflect how often a level formed, how price reacted from it, and how well it held over time.
This script is inspired by the support/resistance concepts and earlier implementations shared by LonesomeTheBlue. The current version extends that idea with a custom zone construction and scoring model, including pivot clustering, reaction-based weighting, and structural filtering. The implementation and logic have been independently developed and differ from the original approach.
The script begins by detecting confirmed pivot highs and pivot lows using a user-defined pivot length. Each pivot becomes a candidate anchor point for a future zone. Around every pivot, the indicator creates an initial price band whose width is scaled by ATR. This makes the zone size adaptive to current market volatility rather than fixed in ticks or points.
From there, the script groups nearby pivots into shared zones. If multiple pivots occur within the allowed ATR-based distance, they are treated as evidence of the same structural area. This allows the indicator to build broader support or resistance channels from repeated interaction instead of drawing isolated single-price levels.
What distinguishes the script is its scoring framework. Each candidate zone receives a base score from the number of pivots it contains, but that is only the starting point. The script also evaluates the post-pivot reaction: if price moves away from a pivot with sufficient impulse, measured in ATR, and does so without excessive early retracement, that pivot contributes additional reaction score to the zone. In other words, zones are rewarded not only for existing, but for producing meaningful rejection.
The script then applies several penalties that reduce the quality score of weaker zones. If price later closes through the zone, the score is reduced. If candle bodies spend time inside the zone, suggesting acceptance rather than rejection, the score is reduced further. If candles repeatedly close inside the zone, the script applies an additional penalty. These filters are designed to separate cleaner structural rejection zones from areas where price trades through too freely.
A further contextual filter evaluates where the zone sits inside the recent trading range. Zones near the middle of the range can receive a penalty, reflecting the idea that mid-range levels are often less structurally meaningful than levels formed near the outer edges of a swing. Conversely, zones closer to the recent range high or low can receive a swing bonus, which increases the score of edge-of-range structures.
After all candidate zones are scored, the script checks for similar or overlapping zones and merges them where appropriate. It then selects the highest-scoring non-overlapping zones, up to the user-defined display limit. The final result is a ranked map of support and resistance channels, with color intensity reflecting the relative zone score.
This makes the indicator different from simple pivot-based support and resistance tools. It does not plot every swing point indiscriminately. Instead, it evaluates whether repeated pivot clustering, clean reaction, and subsequent holding behavior justify promoting an area into a displayed channel.
Key concepts implemented in the script:
Confirmed pivot high and pivot low detection
ATR-based adaptive zone width
Clustering of nearby pivots into shared zones
Reaction scoring based on post-pivot excursion and retracement quality
Penalties for breaks, dwell inside the zone, and closes inside the zone
Context filter using recent range position
Optional swing-edge bonus for zones near range extremes
Selection of top-ranked non-overlapping zones
How to use:
The plotted boxes represent the highest-ranked support and resistance areas found within the active lookback. Wider ATR multipliers create broader zones, while higher pivot lengths make the script more selective. Increasing the reaction requirements makes the indicator focus more on pivots that produced stronger directional rejection. Increasing the penalty weights makes the scoring stricter and reduces tolerance for zones that price trades through frequently.
Auto Lookback can be used to reset the analysis at the start of each new day, while Manual Lookback keeps the zone construction tied to a fixed historical window. The color gradient helps distinguish relatively weaker zones from stronger ones based on the script’s internal score.
This indicator does not predict future price direction and does not generate standalone trade signals. It is designed to formalize support and resistance channel construction into a repeatable process based on pivot clustering, reaction quality, and subsequent price behavior. مؤشر

مؤشر

GFX CISDThis indicator is designed to identify CISD (Change in State of Delivery) with precision and clarity, helping traders visualize shifts in market structure and potential directional bias in real time.
Built with a focus on simplicity and accuracy, GFX CISD highlights key moments where price delivery changes, allowing traders to anticipate continuation or reversal setups with confidence.
🔹 Key Features:
-Automatic detection of CISD (Change in State of Delivery)
-Clean and minimal visual plotting directly on candle opens
-Optimized for indices, forex, and commodities
-Helps confirm entries alongside displacement and structure
-Designed for intraday and scalping strategies
🔹 How to Use:
Use CISD signals in confluence with your existing strategy (e.g., VWAP, EMAs, kill zones, or higher timeframe bias). A valid CISD can indicate a shift in delivery, often leading to high-probability setups when aligned with market structure.
🔹 Philosophy:
This tool is not meant to be used in isolation. It is built to enhance decision-making, improve timing, and bring clarity to price action. مؤشر

Adaptive Confluence Engine [CLEVER]📌 Overview
Adaptive Confluence Engine is a structured, multi-layer technical analysis framework built to evaluate market conditions through weighted confluence rather than single-indicator signals.
The script integrates trend alignment, momentum structure, volatility conditions, participation metrics, and higher timeframe context into a unified scoring model. Instead of treating indicators as isolated tools, each component contributes a defined weight toward an overall directional bias. A signal is generated only when multiple independent conditions align and a structural trigger confirms participation.
This design reduces reliance on any one variable and emphasizes contextual agreement across:
Long-term trend positioning
Medium-term directional structure
Momentum continuation or exhaustion zones
Volatility expansion conditions
Volume confirmation
Higher timeframe bias alignment
Basic price action structure (engulfing behavior)
The engine uses a transparent scoring system where each condition adds measurable value to either bullish or bearish pressure. When the total score exceeds a defined threshold (based on selected signal mode), and a structural EMA crossover occurs, a trade signal is produced.
Importantly, all calculations are performed using confirmed bar data with no forward-looking references. Higher timeframe values are requested with lookahead_off, ensuring non-repainting behavior.
The system does not attempt to forecast price direction. Instead, it identifies moments where market structure, momentum, and volatility conditions are statistically aligned within the current chart environment. The goal is to provide a structured decision-support framework that helps traders evaluate confluence strength and manage risk using adaptive ATR-based projections.
Additionally, the script includes:
Dynamic ATR-based stop loss and multi-target mapping
Optional higher timeframe trend filter
Fair Value Gap (3-candle imbalance) visualization with mitigation tracking
Real-time performance tracking dashboard
Clean visual presentation with minimal chart clutter
This framework is designed as a modular confluence model, allowing traders to adjust signal sensitivity while maintaining consistent internal logic.
📐 Core Concepts
1️⃣ Multi-Factor Confluence Framework
This script is built on the principle of multi-factor condition alignment rather than single-indicator triggering. Instead of generating signals from isolated crossovers or oscillator thresholds, the system evaluates multiple independent analytical dimensions simultaneously. These dimensions include trend structure, momentum state, volatility expansion, participation behavior, directional strength, and higher timeframe alignment. The objective is not to predict price movement, but to measure how many independent technical conditions agree at the same time and quantify that agreement through a structured framework.
2️⃣ Weighted Scoring Architecture
At the core of the engine is a weighted scoring system. Each validated technical condition contributes a predefined numerical value toward a directional bias. When multiple components align in the same direction, their weights accumulate into a total score. That score is then compared against a configurable threshold. Only when the required level of alignment is reached does the system recognize directional bias as structurally valid. This transforms qualitative confluence into a measurable and rule-based evaluation model.
3️⃣ Trend Structure Evaluation
Trend structure within the script is evaluated through moving average positioning and relational hierarchy. Instead of defining trend purely from price direction, the system analyzes the relationship between short-, mid-, and long-term exponential moving averages. It evaluates their order, spacing, and crossover behavior to determine whether the market is in expansion, compression, or transition. This approach treats trend as a dynamic structural condition rather than a fixed directional assumption.
4️⃣ Momentum Confirmation Logic
Momentum is used as a confirmation layer rather than a standalone trigger. Oscillator behavior and crossover states are analyzed in relation to the broader trend structure. Instead of interpreting extreme values as reversal signals, the system evaluates whether momentum supports the existing structural direction. This ensures momentum acts as reinforcement of trend alignment rather than an independent signal source.
5️⃣ Volatility State Measurement
Volatility is measured using the relationship between current Average True Range (ATR) values and their historical average. This allows the system to identify whether the market is in a compression phase or an expansion phase. The measurement does not attempt to predict directional outcomes; it simply classifies the current volatility environment to provide context for price behavior.
6️⃣ Volume Participation Context
Volume is evaluated relative to its moving average baseline to determine whether current participation is above or below recent norms. Instead of assigning directional meaning to volume changes, the system uses it as a contextual filter. It helps identify whether price movement is occurring under increased or reduced market participation conditions.
7️⃣ Higher Timeframe Alignment
The system optionally incorporates higher timeframe trend context by comparing price with higher timeframe EMA structure. This allows lower timeframe signals to be filtered based on broader directional alignment. Higher timeframe data is retrieved using non-forward-looking methods to ensure historical consistency and avoid repainting behavior.
8️⃣ Structural Trigger Dependency
Signal generation requires both scoring alignment and a structural trigger condition. Even when the weighted score meets the required threshold, a structural event such as a moving average crossover is needed for activation. This separation ensures that signals only appear when both internal agreement and structural transition occur simultaneously.
9️⃣ Volatility-Adjusted Risk Projection
Risk levels, including stop loss and target projections, are calculated using ATR-based multipliers. This allows all distance measurements to adapt dynamically to current market volatility. Instead of using fixed values, the system scales projections according to changing market conditions, ensuring consistency across different volatility regimes.
🔒 Data Integrity Principle
All calculations are based on confirmed historical bar data. No future price references are used, and higher timeframe requests are configured without lookahead. Signal generation occurs only after all conditions are fully confirmed, ensuring consistent and non-repainting behavior.
🎯 Key Features
1️⃣ Multi-Condition Confluence Engine
This script is designed around a multi-condition evaluation system where multiple technical components are assessed simultaneously. Instead of relying on a single indicator signal, it combines trend, momentum, volatility, volume, and structural behavior into one unified framework. Each condition contributes independently to the overall directional assessment, allowing the system to evaluate market context through layered confirmation rather than isolated signals.
2️⃣ Weighted Scoring-Based Signal Logic
Signal generation is driven by a weighted scoring model. Each technical condition is assigned a predefined contribution value based on its role in market structure interpretation. These values are accumulated into a total score for both bullish and bearish scenarios. A signal is only considered valid when the accumulated score exceeds a defined threshold, ensuring that multiple independent confirmations are required before any directional output is produced.
3️⃣ Structural Trend Identification
Trend direction is determined through a structured evaluation of exponential moving averages and Supertrend positioning. The relationship between short-term, mid-term, and long-term averages is analyzed to classify market direction and structure. This approach focuses on relative alignment between trend components rather than relying on price alone, allowing clearer identification of directional bias conditions.
4️⃣ Momentum Alignment Layer
Momentum is incorporated as a supporting confirmation layer rather than a standalone signal source. Indicators such as MACD, RSI, and stochastic behavior are evaluated in relation to trend direction. The purpose of this layer is to verify whether internal market momentum aligns with the broader structural direction, helping filter conditions where trend and momentum are inconsistent.
5️⃣ Volatility-Based Dynamic Risk Levels
Risk parameters are calculated using Average True Range (ATR) to adapt to current market volatility. Stop loss and take profit levels are derived using ATR multipliers, allowing distance levels to adjust automatically according to market conditions. This ensures that risk and reward projections remain consistent across both high and low volatility environments.
6️⃣ Higher Timeframe Context Filtering
The system includes an optional higher timeframe filter that evaluates broader market direction using EMA-based structure. This filter helps ensure that lower timeframe signals are aligned with higher timeframe bias when enabled. The higher timeframe data is requested in a non-repainting manner to preserve historical consistency and prevent future data influence.
7️⃣ Structural Signal Trigger Mechanism
Signals are not generated solely from score conditions. A structural trigger, such as an EMA crossover, is required to activate a trade signal. This separation between “condition agreement” and “execution trigger” ensures that signals only appear when both momentum alignment and structural transition occur together.
8️⃣ Fair Value Gap (FVG) Detection & Tracking
The script identifies Fair Value Gaps based on three-candle price imbalance structures. These zones are visualized on the chart and extended dynamically until price interacts with them. Once a gap is fully mitigated by price movement, it is automatically removed. This feature provides structural imbalance visualization without making predictive assumptions.
9️⃣ Trade Level Mapping System
Upon signal generation, the system automatically maps entry, stop loss, and three target levels based on ATR multiples. These levels are plotted on the chart and updated dynamically according to the active trade direction. This creates a structured visual framework for risk and reward reference points.
🔒 Non-Repainting Data Processing
All calculations are based strictly on confirmed bar data. The script does not use future values in any calculation or signal generation. Higher timeframe requests are configured with lookahead disabled to maintain historical accuracy and ensure consistent behavior across all timeframes.
⚙️ How It Works
1️⃣ Data Collection Layer
The script begins by collecting real-time market data from price, volume, and higher timeframe sources. It calculates multiple foundational indicators including exponential moving averages, RSI, MACD, stochastic values, ATR, ADX, Supertrend, and volume averages. Each of these components represents a different aspect of market behavior such as trend direction, momentum strength, volatility state, and participation level. Higher timeframe data is also optionally retrieved to provide broader market context.
2️⃣ Independent Condition Evaluation
After data collection, each technical component is evaluated independently against predefined conditions. For example, moving averages are checked for alignment, momentum indicators are analyzed for directional bias, volatility is compared against its historical average, and volume is assessed relative to its moving average. Each condition produces a logical outcome that contributes to either bullish or bearish interpretation.
3️⃣ Confluence Scoring Process
All evaluated conditions are then passed into a weighted scoring system. Each valid condition adds a specific numerical value to either the bullish or bearish score. These values are accumulated separately for both directions. The system does not rely on a single dominant indicator; instead, it measures the combined agreement of multiple conditions. The final score represents the overall strength of directional alignment at that moment.
4️⃣ Threshold Validation System
Once scoring is completed, the total values are compared against a configurable threshold. The threshold is based on the selected signal mode (Aggressive, Balanced, or Conservative). Only when the accumulated score meets or exceeds the required threshold does the system consider the market condition strong enough for potential signal activation. This step ensures that weak or partial alignment conditions are filtered out.
5️⃣ Structural Trigger Confirmation
Even after passing the scoring threshold, a signal is not generated immediately. The system requires a structural trigger, such as an EMA 21 and EMA 50 crossover or crossunder, to confirm directional transition. This step ensures that signals are only activated when both internal strength (score) and structural movement (trend shift) occur together.
6️⃣ Higher Timeframe Validation (Optional)
If enabled, the system checks higher timeframe trend alignment using EMA-based structure. This step ensures that lower timeframe signals are aligned with broader market direction. If the higher timeframe filter does not support the current direction, signal generation is restricted. This layer acts as a contextual filter rather than a primary trigger.
7️⃣ Risk Level Calculation
Once a valid signal is confirmed, the script calculates entry, stop loss, and take profit levels using Average True Range (ATR). ATR acts as a volatility measurement, allowing risk levels to adjust dynamically based on current market conditions. This ensures that distance between entry and risk/reward levels expands or contracts according to market volatility.
8️⃣ Trade State Management
After signal generation, the system tracks active trade state internally. It records entry price, stop loss level, and three separate target levels. As price moves, the system monitors whether each target or stop level has been reached. This tracking allows structured visualization of trade progression without manual intervention.
9️⃣ Fair Value Gap Monitoring
In parallel with signal logic, the system continuously scans for Fair Value Gaps using three-candle imbalance structures. When such gaps are detected, they are plotted and extended until price revisits the zone. Once price fully interacts with the imbalance area, the gap is removed from the chart. This process runs independently of the main signal system.
🔒 Execution Principle Summary
Overall, the system operates in a sequential flow:
data collection → condition evaluation → score aggregation → threshold validation → structural confirmation → risk mapping → trade tracking.
Each layer functions independently but contributes to a unified decision framework. The design ensures that signals are only generated when multiple analytical conditions align and are confirmed through structural market behavior.
🧭 How to Use This Script
1️⃣ Chart Setup and Activation
To use this script, it should be added directly to a TradingView chart as an overlay indicator. Once applied, it automatically begins analyzing live market data based on the selected symbol and timeframe. The system does not require manual calculation inputs, as all indicators, scoring logic, and structural conditions are computed internally.
After activation, users can optionally enable or disable visual components such as moving averages, Supertrend, and candle coloring. These settings are designed to allow customization of visual clarity without affecting the underlying logic of signal generation.
2️⃣ Selecting Signal Mode
The script provides three signal sensitivity modes: Aggressive, Balanced, and Conservative. These modes control the minimum score required for signal consideration.
Aggressive mode requires lower confirmation levels and produces more frequent signals
Balanced mode uses a moderate confirmation threshold
Conservative mode requires stronger multi-condition alignment before a signal is displayed
This setting does not change indicator behavior; it only adjusts how strict the confirmation requirement is before signal activation.
3️⃣ Understanding Signal Conditions
Signals are generated only when two conditions are met simultaneously: a structural trend change and sufficient multi-factor score alignment. A trend change is identified through EMA crossover logic, while the score represents the combined strength of multiple technical conditions such as momentum, trend alignment, volatility state, and volume behavior.
Users should understand that signals are not based on a single indicator but on the combined agreement of multiple analytical layers. Therefore, signals appear only when multiple conditions align in the same directional bias.
4️⃣ Reading Buy and Sell Signals
Buy signals appear when bullish conditions align and are confirmed by structural crossover logic. Sell signals appear under the opposite conditions. These signals are displayed directly on the chart using labeled markers.
Each signal represents a point where multiple conditions agree on directional bias and structural confirmation has occurred. Signals should be interpreted as analytical outputs rather than automatic trade instructions.
5️⃣ Using Entry, Stop Loss, and Targets
After a signal is generated, the system automatically plots an entry reference level along with stop loss and three take profit levels. These levels are calculated using ATR-based multipliers, which means they adjust dynamically according to market volatility.
Entry represents the reference price level at signal activation
Stop loss is calculated below or above entry depending on direction
TP1, TP2, and TP3 represent staged target levels based on volatility expansion
These levels are visual guides for structured risk and reward planning and are not fixed price predictions.
6️⃣ Monitoring Trade Progress
Once a signal is active, the system tracks price movement relative to defined levels. If price reaches any target or stop level, it is recorded internally and displayed on the chart. This allows users to observe how price interacts with predefined structure over time.
The system does not automatically execute trades; it only tracks conditions and displays outcomes based on price interaction with levels.
7️⃣ Using Higher Timeframe Filter
If enabled, the higher timeframe filter adds an additional layer of confirmation by checking broader market direction. When this filter is active, signals that conflict with higher timeframe trend are restricted.
This feature is useful for aligning lower timeframe signals with overall market structure, reducing conflicting directional bias across timeframes.
8️⃣ Interpreting Fair Value Gaps
The script also highlights Fair Value Gaps (FVGs), which represent price imbalance areas formed between candles. These zones are displayed on the chart and extended forward until price revisits them.
When price fully interacts with a gap zone, it is automatically removed. These zones are used for structural context only and do not represent guaranteed reversal or continuation areas.
🔒 Practical Usage Summary
In practical use, the workflow is simple:
apply indicator → select signal mode → observe signals → monitor risk/target levels → use higher timeframe filter for context → reference FVG zones for structure.
The system is designed to provide structured technical analysis by combining multiple market factors into a single visual and rule-based framework, without requiring manual calculations.
⚙️ Settings & Customization
1️⃣ Signal Mode Customization
The script provides a Signal Mode option that controls how strict the confirmation logic is before a signal is displayed. This setting adjusts the internal score threshold required for signal validation, without changing the underlying calculations.
Aggressive Mode lowers the confirmation requirement, allowing signals to appear with fewer aligned conditions.
Balanced Mode applies a moderate threshold and represents a middle-ground filtering approach.
Conservative Mode increases the confirmation requirement, meaning more conditions must align before a signal is generated.
This setting is used to control signal sensitivity based on user preference and market style.
2️⃣ Moving Average Visibility Settings
Users can enable or disable different moving averages to customize chart clarity.
EMA 200 represents broader structural trend and can be enabled for long-term context
EMA 50 provides mid-term trend structure reference
EMA 21 is used internally for signal logic and crossover detection
These options are visual only and do not affect internal calculations or signal generation logic.
3️⃣ Supertrend Display Control
The Supertrend line can be toggled on or off depending on user preference. When enabled, it provides an additional visual representation of directional trend structure. This setting is designed purely for chart visualization and does not modify the scoring or signal logic.
4️⃣ Candle Coloring Option
The script includes an optional candle coloring feature based on trend direction relative to EMA 200. When enabled, candles are visually colored to reflect broader market bias.
This feature is only for visual assistance and does not influence signal generation or internal decision-making.
5️⃣ Risk and Reward Configuration (ATR Multipliers)
The script allows full customization of risk and reward structure using ATR-based multipliers:
Stop Loss multiplier controls how far stop levels are placed relative to entry
TP1, TP2, and TP3 multipliers define progressive target distances
Higher values increase distance between entry and levels, while lower values reduce spacing. These settings adapt automatically to volatility because they are based on ATR rather than fixed price points.
6️⃣ Higher Timeframe Filter Settings
Users can enable or disable higher timeframe confirmation. When enabled, the script compares current price structure with a higher timeframe EMA 200 trend.
If enabled, signals are filtered based on broader directional alignment
If disabled, only current timeframe conditions are used
The timeframe itself can also be adjusted, allowing flexibility in how broader market structure is evaluated.
7️⃣ Fair Value Gap (FVG) Settings
The FVG module includes customization options for imbalance detection and visualization.
Bullish and bearish FVG colors can be adjusted for clarity
Maximum active FVG limit controls how many zones remain visible on the chart
This ensures chart performance remains stable even during high activity conditions.
8️⃣ Dashboard Position Customization
The analytics dashboard can be placed in different chart areas:
Top Left
Top Right
Bottom Left
Bottom Right
This allows users to adjust layout based on chart space and personal preference. The dashboard itself displays live system data and does not affect calculations.
🔒 Customization Principle Summary
All settings in the script are designed to control visual appearance, signal sensitivity, and risk structure, without modifying the core analytical engine.
The internal logic always remains consistent, while customization options allow users to adjust how signals are filtered, displayed, and interpreted.
⚙️ Mashup Design Justification (House Rules Safe Explanation)
This script combines multiple technical components, but it is not a simple “indicator stacking” or random merge. It is structured as a single analytical framework where each component has a defined role inside a unified decision model. The purpose of combining these tools is to evaluate different dimensions of market behavior in a controlled and rule-based manner.
1️⃣ Why the Scoring Model Exists
The scoring model exists to convert multiple independent market conditions into a single structured evaluation output. In traditional single-indicator systems, signals are generated when one condition is met, which can lead to inconsistent behavior across different market environments.
In this framework, each indicator does not act as a standalone signal generator. Instead, each one contributes a weighted value representing a specific market dimension such as trend alignment, momentum strength, volatility state, or participation level. These values are accumulated into a total score.
The purpose of this design is to measure confluence strength, meaning how many independent technical conditions are aligned at the same time. A signal is only considered valid when enough conditions agree, which is why scoring is used instead of binary logic.
2️⃣ Why EMA Crossover is Used as a Trigger
The EMA 21 and EMA 50 crossover is used as a structural trigger mechanism, not as a standalone trading signal.
The scoring model identifies whether market conditions are aligned, but it does not define when the market is actually transitioning. The EMA crossover is used to detect this transition point in structure.
This separation is important:
Scoring = evaluates market condition strength
EMA crossover = confirms directional structural change
A signal is only generated when both conditions occur together. This prevents signals from appearing during weak or sideways alignment where no structural shift has occurred.
3️⃣ Why Higher Timeframe (HTF) Filter is Used
The higher timeframe filter is included to provide multi-layer market context. Markets behave differently across timeframes, and lower timeframe signals can sometimes conflict with broader directional structure.
The HTF filter compares current price structure with higher timeframe EMA-based trend direction. When enabled, it ensures that lower timeframe signals are only considered when they are not opposing the broader trend environment.
The purpose of this filter is not prediction, but context alignment, ensuring that signals are consistent across multiple timeframes instead of being isolated to a single chart view.
4️⃣ Why ATR-Based Risk Model is Used
ATR (Average True Range) is used to define dynamic risk levels because market volatility is not constant. Fixed stop loss and target values do not adapt to changing market conditions, which can lead to inconsistent risk structure across different volatility phases.
In this script, ATR is used to calculate:
Stop loss distance
Take profit levels (TP1, TP2, TP3)
This ensures that all risk and reward levels automatically adjust based on current market volatility. During high volatility, levels expand; during low volatility, they contract.
The purpose of this design is to maintain volatility-adjusted consistency, not to predict price movement.
5️⃣ Why Multiple Indicators Are Combined
Each included indicator serves a different analytical function:
EMA system → trend structure
Supertrend → directional confirmation
MACD → momentum alignment
RSI → relative strength positioning
Stochastic → short-term momentum shifts
ADX → trend strength measurement
Volume filter → participation context
ATR → volatility scaling
HTF filter → higher timeframe structure
FVG detection → imbalance visualization
These are not combined to create multiple signals. Instead, they are used to evaluate different dimensions of the same market condition.
The system only generates output when multiple independent conditions agree, which is why it is structured as a confluence-based analytical model, not a simple indicator mashup.
🔒 Final Compliance Summary
This script is designed as a unified decision framework where:
Indicators do not function independently as signal generators
Scoring system evaluates confluence strength
EMA crossover defines structural transition
HTF filter ensures contextual alignment
ATR ensures volatility-adjusted risk mapping
The combination is structured to represent a single rule-based system for market condition evaluation rather than multiple disconnected indicators.
📝 Final Notes (House Rules Safe)
This script is designed as a structured analytical framework that combines multiple technical components into a single unified evaluation system. Each included element serves a specific role within the overall logic, such as trend identification, momentum evaluation, volatility measurement, structural confirmation, and contextual filtering.
The system does not rely on any single indicator to generate signals. Instead, it uses a rule-based confluence approach where multiple independent conditions must align before a signal is considered valid. This reduces dependence on isolated market readings and ensures that outputs are generated only when broader technical agreement is present.
All indicators used in the script are applied in a supporting role within a scoring and confirmation structure. They are not interpreted individually as standalone buy or sell signals. The scoring model ensures that each condition contributes proportionally to a combined directional assessment.
Signal generation is further controlled through a structural trigger mechanism, such as moving average crossover logic. This ensures that signals only appear when both condition alignment and structural transition occur together, rather than from static or partial alignment.
Risk and target levels are calculated using ATR-based volatility measurement, allowing all distance-based projections to adjust dynamically according to current market conditions. This ensures consistency across different volatility environments without relying on fixed values.
Higher timeframe filtering is optionally included to provide broader market context and ensure alignment with larger structural direction when enabled. This helps maintain consistency between lower timeframe signals and overall trend environment.
Fair Value Gap detection is used as a structural visualization tool to highlight price imbalance areas. These zones are tracked dynamically and removed when mitigated by price interaction, providing additional context without influencing signal logic.
Overall, the system operates as a rule-based confluence engine where multiple market dimensions are evaluated together. The goal is to present structured, condition-based analysis rather than isolated indicator outputs, while maintaining consistent, non-repainting behavior based on confirmed data only.
⚠️ Final Notes
This indicator is designed as a multi-layer confluence engine that combines trend, momentum, volatility, and market structure into a single scoring-based decision system. It is important to understand that no trading system guarantees accuracy in all market conditions, and this tool should be treated as a decision-support framework, not a standalone trading guarantee.
The strength of this model comes from its confluence logic, where multiple independent signals (trend direction, momentum strength, volume activity, and higher timeframe bias) must align before a valid trade signal is generated. This reduces random entries and focuses only on structured market conditions where probability is higher.
The built-in ATR-based risk system (SL/TP) ensures that trade management adapts dynamically to volatility rather than using fixed pip values. However, risk levels should always be adjusted according to account size and personal risk tolerance.
The dashboard and scoring system are intended to provide transparency, helping traders understand why a signal is generated rather than blindly following entries. Users are encouraged to test and optimize settings based on their own trading style and market conditions.
⚠️ Disclaimer
This script is developed for educational and informational purposes only. It does not provide financial advice, investment recommendations, or guaranteed trading outcomes.
Trading in financial markets (Forex, crypto, indices, or stocks) involves high risk, and you may lose part or all of your capital. Past performance of this indicator does not guarantee future results.
Users are solely responsible for their trading decisions. It is strongly recommended to:
Use proper risk management
Test the strategy on demo accounts first
Avoid over-leveraging
Combine with personal analysis before execution
The developer holds no responsibility for any financial losses incurred from the use of this indicator. مؤشر

مؤشر

مؤشر

Break-Retest Quality [AGPro Series]Break-Retest Quality
🎯 OVERVIEW
Break-Retest Quality is a precision-focused structure toolkit that detects pivot-based breaks of structure (BOS) and grades the first retest of the broken level using a transparent, multi-factor quality score. Instead of only drawing a break line and leaving you to guess whether the retest "looked clean", the script quantifies the retest with a 0-100 score and an A / B / C / F letter grade so you can quickly separate high-conviction pullbacks from low-quality ones. It is a discretionary context tool built for price action traders, SMC / ICT practitioners and anyone who builds setups around break-and-retest logic.
The system is fully automated, non-repainting after confirmation, and works on any symbol and timeframe that TradingView supports.
📐 UNIQUE EDGE — WHAT MAKES IT DIFFERENT
Most break-of-structure indicators stop at drawing a line and an arrow. Break-Retest Quality goes further:
🔹 Every retest is scored on six independent factors and translated into an A / B / C / F grade
🔹 The acceptance zone is an ATR-scaled rectangle that changes color and state as the setup evolves (live WATCH → graded RETEST)
🔹 A "Min Grade To Display" filter keeps weak retests off the chart, so the visual footprint stays clean
🔹 A right-edge WATCH tag pins the currently active level so you never lose track of the live setup
🔹 A compact two-line retest marker shows grade, score and a short outcome tag in a minimal footprint
🔹 Built-in cooldown and single-retest-per-break logic prevent label clutter on choppy price action
This is not a repackaged BOS indicator — it is a quality filter on top of BOS / retest logic.
🧪 METHODOLOGY
1. STRUCTURE DETECTION
Pivot highs and lows are detected with a user-defined Pivot Length. A break is registered when price clears the most recent pivot by at least Min Break ATR Filter × ATR, either on a close (default) or on a wick.
2. RETEST TRACKING
After a confirmed break, the script opens an acceptance zone of ± Retest Tolerance ATR × ATR around the broken level and watches for the first price revisit within Max Bars For Retest.
3. QUALITY SCORING (0-100)
The first retest is graded on six weighted factors:
🔸 Reclaim (25 pts) — how decisively the close reclaims the correct side of the level
🔸 Rejection (20 pts) — wick / body composition on the retest bar
🔸 Depth (20 pts) — how close the extreme of the retest bar lands to the level (no excessive overshoot)
🔸 Speed (15 pts) — how quickly the retest prints after the break
🔸 Volatility (10 pts) — bar range discipline relative to ATR
🔸 Volume (10 pts, optional) — relative volume vs 20-bar SMA
Final score → Grade: A ≥ 80, B ≥ 65, C ≥ 50, F < 50.
4. CONFIRMATION LOGIC
A retest is marked "confirmed" only if the score meets the Min Grade For Confirmation threshold AND the close lands on the correct side of the broken level.
🔔 SIGNALS & ALERTS
Three TradingView alert conditions are exposed:
🔹 Structure Break Detected — fires the moment a valid break is registered
🔹 First Retest Detected — fires on the first qualifying revisit inside the acceptance zone
🔹 High-Quality Retest Confirmed — fires only when the graded retest meets the confirmation threshold
⚙️ KEY INPUTS
STRUCTURE
• Pivot Length, Use Close Confirmation, Min Break ATR Filter, ATR Length
RETEST
• Max Bars For Retest, Retest Tolerance ATR, Cooldown Bars After Completed Setup, Resolved Zone Extension
SCORING
• Show Numeric Score / Grade, Use Volume Confirmation, Min Grade For Confirmation, Min Grade To Display
VISUALS
• Show Break Line / Labels / Retest Marker / Retest Zone / Watch Zone Text / Resolved Zone Text / Active Level Glow / Right-Edge Watch Tag / Invalidation Line / Outcome Text, Use Grade Colors, Zone Forward Extension, Label Size
PANEL
• Show Panel, Panel Position, Panel Font Size, Show Last Result Row
RUNTIME
• Keep Last Setups (controls how many historical setups stay on the chart)
🧭 HOW TO USE
1. Add Break-Retest Quality to any chart and timeframe. Adjust Pivot Length to match the structure you care about (lower on intraday, higher on swing).
2. Wait for a BRK▲ or BRK▼ label to print — this confirms a structure break.
3. Observe the live acceptance zone and the right-edge WATCH tag. These mark the level and the remaining retest window.
4. When price returns to the zone, read the two-line retest marker: grade + score on the top line, short outcome tag (Strong / Valid / Weak / Failed) on the bottom line.
5. Use the panel to monitor live state, active level, remaining window and the last completed result with its full outcome description.
6. Combine with your own confluences — higher-timeframe bias, liquidity levels, session context, volume profile — before acting on any signal.
⚠️ LIMITATIONS & TRANSPARENCY
🔹 This is an analytical and educational tool, not a strategy. It does not generate buy / sell orders and does not measure historical performance.
🔹 Grades describe the geometric and relative-volume quality of the retest bar at the moment it prints. They are not predictions of future price movement.
🔹 Scores calculated at bar close are final; intra-bar readings can shift until the bar closes.
🔹 The volume factor depends on exchange-supplied volume data. Turn it off on instruments where volume is unreliable or missing.
🔹 Pivot-based structure is sensitive to the Pivot Length setting. Choose it deliberately for the timeframe and symbol you are analyzing.
📢 RISK DISCLOSURE
Trading involves substantial risk and is not suitable for every investor. Past price behavior is not indicative of future results. This indicator is provided for educational and analytical purposes only and does not constitute financial advice, investment advice, or a solicitation to trade any instrument. Always perform your own research and risk management before acting on any signal. مؤشر

Positional Trading IndicatorWhat it shows:
1. Vol Val (Volume Value)
A liquidity filter. Computes the volume-weighted average price (VWAP) of the last 7 bars multiplied by total volume over the same period, expressed in Indian Rupee Crores. Colour-coded for quick reads:
🔴 Red — below ₹5 Cr (illiquid, avoid)
🟡 Yellow — ₹5–20 Cr (moderate liquidity)
🟢 Green — above ₹20 Cr (sufficient liquidity for positional sizing)
2. Trend (Pivot Structure)
Classifies the current trend using confirmed Pivot Highs and Lows (default 5/5 left-right, adjustable). Compares the last two confirmed pivot highs and lows to determine market structure:
🟢 Positive — Higher High + Higher Low (uptrend structure)
🟡 Neutral — Mixed structure (consolidation or transition)
🔴 Negative — Lower High + Lower Low (downtrend structure)
3. Mansfield Relative Strength
Plots the stock's performance relative to a benchmark index (default: NSE:CNX500) as a ratio, smoothed by a 52-week SMA — adapted from the classic Mansfield RS methodology used in Stage Analysis. Indicates whether the stock is outperforming or underperforming the broader market:
🟢 RS Positive — Stock ratio is above its 52W MA (outperforming)
🔴 RS Negative — Stock ratio is at or below its 52W MA (underperforming)
4. Demand Zones
Automatically identifies and draws the most recent active demand zone on the chart. A zone is defined by a minimum of 3 touch points (wick entries or closes inside the zone), with at least 2 bars between consecutive touches. Zone width is ATR-based (default 0.5× ATR), anchored at the low of the zone. Overlapping zones are merged into a single clean box. Zones are invalidated and removed once price closes below them.
5. Pivot Level Lines
Draws dashed horizontal lines from the most recent confirmed Pivot High (light blue) and Pivot Low (red), extending to the right — giving you instant visual reference for key structural levels.
Inputs & Customisation:
All parameters are adjustable — Vol Val lookback, liquidity thresholds, pivot left/right lengths, ATR multiplier, demand zone lookback, minimum touches, gap between touches, RS benchmark symbol, and RS MA length. مؤشر

Fractal Breakout Scanner [forexobroker]🔶 OVERVIEW
Fractal Breakout Scanner is an overlay indicator that automates support and resistance level detection using Williams fractals — mathematically confirmed pivot points where price has reversed. It tracks these levels as persistent S/R lines on the chart, counts how many times each level has been tested, and generates breakout signals when price closes beyond a tested level with volume confirmation.
The advantage over manually drawn S/R levels is objectivity and consistency. Human-drawn levels are subjective — two traders looking at the same chart will draw different lines. Fractals provide a mathematical definition: a pivot high requires the high to be the highest point within a configurable number of left and right bars, and vice versa for pivot lows. Levels that are tested multiple times become stronger (the lines become thicker and more opaque), and breakouts through multi-tested levels carry more significance.
This indicator is designed for traders who want systematic, objective support and resistance analysis with automated breakout detection.
🔶 CONCEPTS
Fractals in trading are mathematically defined turning points in price. A fractal high occurs when a bar's high is higher than the highs of a set number of bars on both sides — it is a confirmed local top. A fractal low is a confirmed local bottom. These points naturally correspond to where buying or selling pressure reversed price, making them logical support and resistance levels.
The strength of an S/R level increases with each touch. When price approaches a level and bounces away, it validates the level and attracts more attention from traders who place orders at that price. A level tested three or four times has more resting orders than one tested only once. When that well-tested level finally breaks, it represents a significant shift — the orders that were defending the level have been overwhelmed, and price is likely to continue in the breakout direction.
The concept of role reversal is also important: broken resistance tends to become support, and broken support tends to become resistance. While this indicator does not explicitly implement role reversal, the breakout signals identify the moment of the break, which is the optimal entry timing for this phenomenon.
🔶 HOW IT WORKS
• Fractal highs and lows are detected using configurable left and right bar counts — the pivot must be the highest high (or lowest low) across both sides to qualify
• Each fractal is added as a support or resistance level, and nearby levels within an ATR-based proximity zone are merged (increasing the touch count) rather than duplicated
• S/R lines are drawn on the chart with color intensity and line width proportional to the touch count — lightly tested levels are thin and transparent, heavily tested levels are thick and bold
• Breakout signals fire when price closes beyond a tracked level on a confirmed bar with volume above its SMA and cooldown satisfied — the signal label includes the specific level price and touch count
• Separate touch tracking updates each level's count when price approaches within the touch zone and then retreats
🔶 HOW TO USE
1. Add the indicator to any chart — fractal dots and S/R lines will populate automatically based on recent pivot points
2. Watch for resistance lines (pink) and support lines (green) that grow thicker and more opaque over time — these are the levels being tested repeatedly and building significance
3. When a "BULL BREAK" or "BEAR BREAK" signal fires, the label shows the exact level that was broken and its touch count — higher touch counts suggest more significant breakouts
4. After a breakout signal, consider using the broken level as a stop-loss reference (broken resistance becomes support, broken support becomes resistance) and target the next S/R level visible on the chart
🔶 FEATURES
• Non-repainting signals (uses barstate.isconfirmed)
• Works on all timeframes and instruments
• 9 alert conditions with webhook JSON support
• Professional dashboard with resistance/support counts, total touches, and cooldown status
• Automatic level merging that combines nearby fractals into stronger consolidated levels
• Glow-effect fractal dots with diamond markers at confirmed pivot points
🔶 SETTINGS GUIDE
• Left Bars / Right Bars — Number of bars on each side required to confirm a fractal pivot (default: 3 / 3)
• Max S/R Levels — Maximum number of fractal levels tracked simultaneously (default: 5)
• Breakout Buffer (ticks) — Extra distance past a level required to confirm a breakout; 0 means the close must simply exceed the level (default: 0)
• Signal Cooldown — Minimum bars between consecutive breakout signals (default: 15)
• Volume SMA Length — Volume filter period for breakout confirmation (default: 20)
• Show Fractal Dots — Toggle diamond markers on confirmed fractal pivots
• Show S/R Lines — Toggle the support and resistance level lines
• Line Extension — How many bars forward S/R lines extend beyond current price (default: 50)
• Show Info Table — Toggle the level statistics dashboard
🔶 ALERTS
• FBS Buy Signal — Fires on confirmed bullish breakout above resistance
• FBS Sell Signal — Fires on confirmed bearish breakout below support
• FBS Any Signal — Fires on any confirmed breakout
• FBS Fractal High — Fires when a new fractal high is confirmed
• FBS Fractal Low — Fires when a new fractal low is confirmed
• FBS Any Fractal — Fires on any new fractal formation
• FBS Volume Spike — Fires when volume exceeds its SMA
• FBS 20-Bar High — Fires when price makes a new 20-bar high
• FBS 20-Bar Low — Fires when price makes a new 20-bar low
🔶 LIMITATIONS & DISCLAIMER
• This is a technical analysis tool, not financial advice
• Past patterns do not guarantee future results
• Best used alongside price action context and proper risk management
• Fractal detection has an inherent lag equal to the right-bar count — the pivot is confirmed only after the right-side bars complete, so the fractal appears retroactively
• In strongly trending markets with few pullbacks, the indicator may generate fewer S/R levels because fractals form less frequently — this is a feature, not a bug, as it prevents plotting irrelevant levels in directional markets
مؤشر

Dynamic Fibonacci Auto [forexobroker]🔶 OVERVIEW
Dynamic Fibonacci Auto calculates Fibonacci retracement and extension levels automatically from confirmed swing highs and swing lows, updating dynamically as new pivots form. The indicator highlights the 50%-61.8% "Golden Zone" -- the area where the highest-probability retracements tend to find support or resistance -- and fires entry signals when price bounces from this zone with trend, volume, and candle direction confirmation.
This tool is designed for traders who use Fibonacci levels as a core part of their analysis but want to eliminate the manual process of dragging retracement tools onto the chart every time a new swing forms. It works on any instrument and any timeframe, automatically adapting its levels to the most recent confirmed market structure.
🔶 CONCEPTS
Fibonacci retracement levels are derived from the mathematical Fibonacci sequence and are used to identify potential support and resistance levels during a pullback within a trend. The key levels -- 23.6%, 38.2%, 50%, 61.8%, and 78.6% -- represent proportions of a prior move where price is statistically more likely to find a reaction. The 50%-61.8% range is known as the "Golden Zone" because it represents a deep enough retracement to offer favorable risk-reward, yet not so deep that it suggests the prior trend has failed. Extension levels (127.2%, 161.8%) project potential targets beyond the original swing.
🔶 HOW IT WORKS
- Detects swing highs and swing lows using a configurable pivot lookback length on both sides
- Determines trend direction based on whether the most recent swing low preceded the most recent swing high (uptrend) or vice versa
- Calculates all standard Fibonacci retracement levels (23.6%, 38.2%, 50%, 61.8%, 78.6%) and extension levels (127.2%, 161.8%) from the last confirmed swing range
- Draws levels as horizontal lines with a highlighted Golden Zone box between the 50% and 61.8% levels
- Fires signals when price enters the Golden Zone, forms a directional candle (bullish for uptrend, bearish for downtrend), closes above the zone midpoint, confirms with EMA trend alignment and volume filter
🔶 HOW TO USE
1. Add the indicator to any chart -- Fibonacci levels and the Golden Zone appear automatically once swing points are detected
2. Watch for price to pull back into the highlighted Golden Zone (the shaded area between 50% and 61.8%)
3. BUY arrows fire during uptrends when price bounces bullishly from the Golden Zone; SELL arrows fire during downtrends
4. Signal labels show the nearest Fibonacci level, current price, and suggested SL/TP levels based on ATR
5. Use extension levels (127.2%, 161.8%) as potential profit targets beyond the original swing. Always confirm with broader market context and define your stop-loss.
🔶 FEATURES
- Non-repainting signals (barstate.isconfirmed)
- Works on all timeframes and instruments
- 9 alert conditions with JSON webhook support
- ATR-based stop-loss and take-profit levels on signal labels
- Visual Golden Zone highlight with optional background tint when price is inside the zone
🔶 SETTINGS GUIDE
- Swing Detection Length -- Bars to the left and right required to confirm a pivot point
- Trend EMA Length -- Period for the EMA used to confirm trend direction on bounce signals
- Volume SMA Length -- Period for the volume filter
- Signal Cooldown -- Minimum bars between signals
- Show 23.6% / 38.2% / 50% / 61.8% / 78.6% -- Toggle individual Fibonacci levels
- ATR Length -- Period for stop-loss and take-profit calculation
- SL ATR Multiplier -- Stop-loss distance as a multiple of ATR
- Show SL/TP on Labels -- Toggle stop-loss and take-profit display
- Show Extension Levels -- Toggle 127.2% and 161.8% extension lines
- Show Golden Zone Fill -- Toggle the shaded box between 50% and 61.8%
- Show Golden Zone Background -- Toggle background tint when price is inside the zone
- Show Info Table -- Toggle the dashboard
🔶 ALERTS
- Bullish Fib Bounce -- Price bounces bullishly from Golden Zone in uptrend
- Bearish Fib Bounce -- Price bounces bearishly from Golden Zone in downtrend
- Price in Golden Zone -- Price enters the 50%-61.8% zone
- New Swing High -- New confirmed swing high detected
- New Swing Low -- New confirmed swing low detected
- Any Fib Signal -- Any confirmed Fibonacci bounce signal
- Unconfirmed Bull Bounce -- Golden Zone bounce without full filter confirmation
- Unconfirmed Bear Bounce -- Golden Zone bounce without full filter confirmation
- Fib Range Expansion -- Fibonacci range expands significantly (new wider swing detected)
🔶 LIMITATIONS & DISCLAIMER
- This is a technical analysis tool, not financial advice. Always use proper risk management.
- Fibonacci levels are not guaranteed support/resistance -- they represent areas of potential interest, not certainties.
- Swing detection requires lookback bars on both sides, so levels update with a delay equal to the Swing Detection Length setting.
- In strongly trending markets with shallow pullbacks, price may not reach the Golden Zone before continuing.
مؤشر

Pivot Channel Map [AGPro Series]Pivot Channel Map
🔹 OVERVIEW
Pivot Channel Map is a structural channel engine that automatically detects and classifies market structure channels from confirmed swing pivots. It organises every qualified channel into a clear 8-family taxonomy (Major / Minor × External / Internal × Up / Down) and renders them as a living map of trend, range and reversal context. The script works on all instruments and timeframes, with a focus on intraday and swing analysis.
Instead of plotting a single trendline or band, the engine maintains a continuously updated structural map: active channels, their midlines, interaction pockets around the rails, preserved broken channels, and post-break retest / reclaim signals. A compact right-corner panel summarises live channel counts, qualification state, nearest channel distance in ATR units, and the prevailing Major tilt.
The goal is to give discretionary traders a moderation-safe, clutter-controlled view of where price is inside the broader structure — not to predict future prices.
🔸 UNIQUE EDGE
Most channel indicators draw one or two parallel lines and call it a day. Pivot Channel Map adds structural classification, qualification, memory and post-event follow-through on top of the channel geometry:
- Eight channel families instead of a single pair of rails
- ATR-normalised qualification engine (Off / Balanced / Strict) to filter structurally weak channels
- Broken Channel Memory that preserves invalidated structure as faded historical context
- Interaction Zones (right-edge ATR pockets) around active channel rails
- Post-Break Retest / Reclaim tracker that tags the first valid touch after a confirmed break
- Break and React event markers on Major channels
- ATR-based distance tagging in the info panel (Near / Mid / Wide / Far)
The result is a richer structural read than a standard channel script, while still staying visually clean through emphasis, opacity and clutter controls.
🔹 METHODOLOGY
1. Pivot detection. A configurable Pivot Period drives ta.pivothigh and ta.pivotlow to produce confirmed swing pivots. The script then classifies each pivot into H / HH / LH / HL / LL / L roles and promotes / demotes them between Major (M*) and Minor (m*) status based on close breaks versus the current Major range.
2. Channel construction. From the classified pivot stream, eight channel families are built:
- Major External Up / Down
- Major Internal Up / Down
- Minor External Up / Down
- Minor Internal Up / Down
External channels trace structural HH/LL extremes, Internal channels trace LH/HL interior swings.
3. Qualification. Each candidate channel is width-measured against ATR and span-measured in bars. The Qualification Engine (Off / Balanced / Strict) filters out structurally weak channels before they are drawn.
4. Life-cycle management. Active channels are redrawn and extended forward each bar until an origin-rail or channel-rail break is confirmed. On break, the previous structure can be preserved by Broken Channel Memory (Off / Major Only / All) with its own style and opacity.
5. Event detection. Confirmed origin-rail breaks produce BREAK events; wick-through-then-close-back moves produce REACT events on Major channels. A cooldown and an ATR-based price-distance filter prevent label clusters when price oscillates around the same rail.
6. Post-break follow-through. After a confirmed break, the script tracks the first valid touch inside a configurable window and tags it as RETEST (channel-rail break) or RECLAIM (origin-rail break).
🔸 SIGNALS & ALERTS
On-chart events:
- BREAK — confirmed close-based break of a Major channel rail
- REACT — wick through the Major rail with a close back inside, filtered by bar cooldown and ATR distance
- RETEST / RECLAIM — first valid touch of the broken rail inside the post-break window
- Interaction Zone contact — visual ATR pocket around active channel rails
- Channel Quick Tags (MEX / MIN / mEX / mIN, Up / Dn) — compact family labels on active channels
Alert conditions (all 16 toggleable, Major alerts On by default, Minor Off by default):
- Break: Major External Up / Down
- React: Major External Up / Down
- Break: Major Internal Up / Down
- React: Major Internal Up / Down
- Break: Minor External Up / Down
- React: Minor External Up / Down
- Break: Minor Internal Up / Down
- React: Minor Internal Up / Down
Message frequency is configurable (All / Once Per Bar / Once Per Bar Close). Alerts include symbol, timeframe, time zone and event description.
🔹 KEY INPUTS
- Pivot Engine: Pivot Period (default 5)
- Per-family Visibility: 8 Show / Delete-Previous / Color / Style / Extend / Width groups
- Channel Qualification: Mode (Off / Balanced / Strict), Apply To (All / Major Only / Minor Only), ATR Length
- Broken Channel Memory: Scope (Off / Major Only / All), Keep (Last 1 / Last 2), Style
- Channel Midline: Show, Apply To, Scope, Style, Width, Opacity
- Active Map Clarity: Line Emphasis, Base-Line Focus, Event Markers, React Cooldown, React Min Price Distance, Quick Tags, Tag Scope, Tag Size, Event / Quick Tag Vertical Offsets
- Interaction Zones: Scope, Rails, Zone Width ATR, Extend Bars, Opacity, Zone Text
- Post-Break Retest / Reclaim: Scope, Window Bars, Label Offset ATR
- Panel: Show, Position, Font Size
- Alerts: 16 per-family Break / React toggles, Alert Name, Frequency, Time Zone
🔸 HOW TO USE
Getting started:
1. Apply the indicator on any symbol and timeframe.
2. Start with default settings: Qualification Off so the full structural map is visible.
3. If the chart feels busy on lower timeframes, switch Qualification to Balanced or Strict.
Reading the panel:
- Major Live / Minor Live — active channels per class
- Nearest Channel — closest active channel, with ATR distance and Near / Mid / Wide / Far tag
- Qualification — current filter mode and scope
- Interaction — interaction zone scope and rails
- Post-Break — tracker scope, window and prevailing Major tilt
Common workflows:
- Trend continuation: wait for price to hold an Active Major channel and look for a REACT at the rail inside the channel direction.
- Break-and-retest: after a BREAK event, watch for the RETEST / RECLAIM label inside the Post-Break window.
- Confluence: use Interaction Zones to spot where Major and Minor rails meet at the right edge of the chart.
- Higher-timeframe context: open a higher timeframe tab with the same script to map macro structure around your execution timeframe.
Suggested defaults:
- Intraday traders: 15m–1H base TF, Balanced qualification
- Swing traders: 4H–1D base TF, Balanced or Off qualification
- Higher-timeframe context: 1D–1W with Qualification Off
🔹 LIMITATIONS & TRANSPARENCY
- Pivot-based. Pivots require the configured number of bars to confirm, so the most recent swing always lags by Pivot Period bars. This is a structural property of confirmed pivots, not a bug.
- Redraw behaviour. Active channels are extended forward each bar until a break is confirmed on close. Channel end-points can therefore adjust as new pivots qualify.
- Alerts fire on confirmed conditions. Break and React alerts require barstate.isconfirmed, so intra-bar touches do not trigger alerts.
- Timeframe behaviour. On very high timeframes with limited history (e.g. weekly / monthly on newer instruments), the total pivot count can be small. Keep Qualification at Off on higher timeframes to avoid over-filtering.
- This is a visualisation / structure tool. It is not a trading strategy, it does not manage risk, and it does not generate buy / sell recommendations. All entries and exits are the trader’s responsibility.
🔸 RISK DISCLOSURE
This script is a technical analysis tool intended for educational and analytical purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any asset. Past chart behaviour does not guarantee future results. Trading involves significant risk and can result in the loss of capital. Always do your own research, use proper risk management, and consider consulting a licensed financial advisor before making trading decisions. مؤشر

Prism Channel Architecture [JOAT]Prism Channel Architecture
Introduction
Prism Channel Architecture is a dual-channel overlay indicator that layers two mathematically distinct structural frameworks onto your price chart simultaneously: a best-fit Pivot Channel derived from actual price pivot points, and a Linear Regression Channel built from statistical least-squares fitting. Together they create a structural prism through which trend direction, channel quality, and breakout momentum can be evaluated from multiple angles at once.
Most channel tools force you to choose between objectivity and responsiveness. Pivot channels adapt to real market structure but can lag. Regression channels are statistically rigorous but ignore actual swing highs and lows. PCA runs both engines in parallel and highlights the moments when they agree — bull alignment and bear alignment states — as the highest-conviction reads in the system.
Core Concepts
Pivot Channel Fitting
The indicator collects up to a configurable maximum of confirmed pivot highs and pivot lows using TradingView's built-in pivot functions:
float pivHigh = ta.pivothigh(high, pivLeft, pivRight)
float pivLow = ta.pivotlow( low, pivLeft, pivRight)
From those stored pivot arrays, it searches for the best pair of recent pivot highs to fit the upper channel boundary, and the best pair of recent pivot lows to fit the lower channel boundary. The quality score for each candidate pair is computed by checking how many of the recent bars were actually contained below the upper line (or above the lower line) within an ATR tolerance:
for k = 0 to checks - 1
float lineY = linePrice(x2, y2, x1, y1, bar_index - k)
if high <= lineY + atrVal * 0.3
contained += 1
float q = safeDiv(float(contained), float(checks), 0.0)
The pair with the highest containment ratio wins and becomes the drawn channel. This means the upper channel line is always the tightest valid resistance line through recent pivot highs, not an arbitrary parallel projection.
Linear Regression Channel
The regression channel computes a full manual least-squares fit over the lookback window, producing slope, intercept, and residual standard deviation:
float slope = safeDiv(n * sumXY - sumX * sumY, n * sumXSq - sumX * sumX, 0.0)
float intc = safeDiv(sumY - slope * sumX, n, close)
float stdDev = math.sqrt(safeDiv(ssRes, n, 0.0))
The upper and lower bands are drawn at `stdDev × Deviation Multiplier` distance from the regression midline, giving bands that are statistically calibrated to the actual spread of price around the trend. Color shifts from bull to bear when slope changes sign.
Channel Alignment Confluence
The system declares a Bull Alignment when both channels simultaneously agree price is in a bullish position — the regression slope is rising AND price is above the regression midline, AND price is in the upper half of the pivot channel (between the midline and the upper band):
bool lrBull = close > midNow and slope > 0.0
bool pivBull = close > uMid and close < uNow
bool alignBull = lrBull and pivBull
This confluence state is highlighted with a subtle background color — a quiet but meaningful signal that two independent structural frameworks are pointing in the same direction.
ATR-Based Breakout Detection
Breakout signals fire when price moves more than a configurable ATR multiple beyond the prior bar, provided the regression slope confirms direction:
bool brkUp = ta.crossover(close, close + crossTol * atrVal) and lrSlope > 0.0
bool brkDn = ta.crossunder(close, close - crossTol * atrVal) and lrSlope < 0.0
Breakout labels (▲ BRK / ▼ BRK) appear above or below the breakout bar and are alert-enabled.
Features
Pivot Channel — best-fit upper/lower boundaries through recent pivot highs/lows, quality-scored by containment ratio
Regression Channel — least-squares midline with statistically calibrated deviation bands, auto-colored by slope direction
Channel midline — dashed neutral midline bisecting the pivot channel for zone positioning
Bull and Bear Alignment detection — background highlight when both channels agree on direction
ATR-normalized breakout labels — ▲ BRK and ▼ BRK when price breaks out with trend confirmation
Channel Quality score — displayed in dashboard as percentage of recent bars contained
Pivot position classification — Bull Zone (upper half) or Bear Zone (lower half)
Up to 40 pivot highs and 40 pivot lows stored and evaluated
10-bar channel projection extended to the right of the last bar
Dashboard: LR direction, deviation mult, pivot quality, pivot position, alignment, breakout, ATR, pivot count
Alerts for bullish breakout, bearish breakout, bull alignment, and bear alignment
Webhook JSON alert format
Watermark
Input Parameters
Pivot Channel
Pivot Lookback Left — bars to the left required to confirm a pivot high or low (default 10)
Pivot Lookback Right — bars to the right required to confirm a pivot high or low (default 5)
Max Pivots Stored — maximum number of pivot highs and lows held in memory (default 30)
Quality Check Length — number of recent bars used to score channel containment (default 20)
Breakout ATR Mult — ATR multiplier threshold for breakout label generation (default 1.5)
Show Pivot Channel — toggle the pivot channel lines on/off
Regression Channel
Regression Length — bars used in the least-squares fit (default 50)
Deviation Mult — standard deviation multiplier for band width (default 2.0)
Show Regression Channel — toggle the regression channel lines and fill on/off
ATR Settings
ATR Length — lookback for ATR calculation used in breakout detection and containment tolerance (default 14)
Visuals
Bull Color — color for uptrending channels and bullish labels
Bear Color — color for downtrending channels and bearish labels
Neutral Color — color for channel midlines and neutral dashboard text
Show Dashboard — compact structural summary panel
Show Watermark
Show Breakout Labels — toggle ▲ BRK / ▼ BRK label markers
Alerts
Webhook JSON Format — switches alert messages to JSON format for automation pipelines
How to Use
Add PCA to your chart as a main-pane overlay indicator.
Let the chart load enough history so both channels initialize. A warmup period of at least 60 bars is enforced before channels begin drawing.
Use the Regression Channel to assess macro trend direction. If the midline slope is rising and price is above it, the macro environment is bullish.
Use the Pivot Channel to identify the structural support and resistance boundaries formed by actual price pivots. The upper pivot line is the tightest valid resistance. The lower pivot line is the strongest structural support.
Watch for Bull Alignment (cyan background) when both systems agree price is in a bullish structural position. This is the highest-conviction environment for long setups.
Watch for Bear Alignment (red background) for bearish structural setups.
Treat Breakout labels as momentum confirmation signals — they only fire when an ATR-significant price move occurs in the direction of the regression slope.
Check the Pivot Quality score in the dashboard. A quality above 65% means the channels are actively containing price well. Below 40% means the channel fit is loose and breakouts are less reliable.
Indicator Limitations
Pivot channel fitting evaluates only the 8 most recent pivot highs and the 8 most recent pivot lows when searching for the best pair. In very choppy markets with many closely-spaced pivots, the fitted channel may appear narrow or erratic.
The regression channel is recalculated on every bar over a fixed lookback window. It will repaint the past visually as new bars are added — the channel reflects the lookback window ending at the current bar, not a fixed historical period.
Channel quality scores can be artificially high in low-volatility trending conditions where price barely touches the edges of the channel.
Breakout signals require both an ATR threshold move AND a confirming regression slope. In sideways markets the slope condition filters out most breakout candidates, which may lead to missed signals on genuine horizontal range breaks.
Originality Statement
Prism Channel Architecture is an original Pine Script v6 publication. The dual-engine architecture combining a quality-scored best-fit pivot channel with an independently computed least-squares regression channel, and the definition of alignment confluence as agreement between those two distinct structural systems, is an original design. The pivot quality scoring methodology — measuring the containment ratio of recent bars within the candidate channel bounds with ATR tolerance — is an original technique not derived from any existing published indicator.
Disclaimer
This indicator is for educational and informational purposes only. Channels, alignment states, and breakout labels are analytical tools and do not constitute financial advice. Channel boundaries can and will be violated without warning. Always apply proper risk management and never trade solely based on indicator signals.
-Made with passion by jackofalltrades
مؤشر

Daily Bias | Flux ChartsGENERAL OVERVIEW
Daily Bias is a session-based bias tool built to help traders understand whether the current session is more likely to be bullish, bearish, or neutral.
It tracks the key liquidity levels from the Asia, London, and New York sessions, along with important higher-timeframe levels like the previous 1-hour, 4-hour, and daily highs and lows. It then watches for sweeps of those levels, checks whether price rejects them or keeps moving, reads what the previous session likely did, and uses a simple lower-timeframe structure to confirm direction.
All of that is combined into one clear dashboard, so instead of only showing a bullish or bearish bias, the indicator also shows why that bias is being given.
[SCREENSHOT: Chart showing session zones, HTF liquidity lines, and the Daily Bias dashboard
WHAT IS THE THEORY BEHIND THIS INDICATOR?
The main idea behind this indicator is that one session often sets up the next one.
Price will often run above a known high or below a known low to take liquidity first. After that, the important question is whether the price keeps going, or rejects that move and turns back. That reaction gives a clue about the likely direction of the next session.
For example, if the previous session trades above a key high but then falls back below it, that shows rejection from the highs and can suggest bearish pressure for the current session. If the previous session trades below a key low but then climbs back above it, that shows rejection from the lows and can suggest bullish pressure for the current session.
This indicator reads that behavior automatically by looking at what the previous session did around important liquidity levels. It also keeps an eye on major intraday reference points like the previous 1-hour high and low, 4-hour high and low, and previous day high and low, because price often reacts around those areas.
Then it checks whether the market is starting to confirm that idea on lower timeframes. After that, everything is brought together into one final bias: bullish, bearish, or neutral. The dashboard does not just show the bias — it also shows the reasoning behind it, so traders can quickly understand why the indicator is leaning in a certain direction.
SCREENSHOT: Example showing a liquidity sweep followed by a reversal.
DAILY BIAS FEATURES
The Daily Bias indicator includes 9 main features:
Sessions Liquidity (Asia, London, NY)
Higher Timeframe Liquidity (1H, 4H, Previous Day)
Liquidity Level Labels
Sweep Markers
Historical Levels
Session Profile Classification
Lower Timeframe Structure Confirmation
Final Bias Engine
Daily Bias Dashboard
Each component operates independently while sharing the same underlying liquidity logic. All features feed into a unified dashboard that displays the current state of the bias decision, along with detailed tooltips on every cell.
SESSIONS LIQUIDITY
🔹 What Is a Session?
A session is a fixed time window within the trading day during which a major financial center is most active. The Asia session corresponds to the Tokyo trading window, London corresponds to the European morning, and NY corresponds to the US morning. Each session tends to deliver a characteristic style of price action, and the highs and lows formed inside them often act as draws on liquidity for the next session.
🔹 How the Indicator Tracks Sessions
The Daily Bias indicator tracks three key trading sessions and maps out each one directly on the chart with its own colored range, session high and low, and session label.
By default, the sessions are based on the New York time zone:
Asia: 20:00 – 22:00
London: 02:00 – 04:00
New York: 10:00 – 12:00
As soon as a session begins, the indicator starts building that session’s range in real time. It expands the zone as price moves and keeps updating the session high and session low until the session closes. Once the session is complete, the final high, low, open, and close of that session are saved and used later by the bias logic.
This matters because the completed session range becomes an important liquidity reference for the sessions that follow. In other words, the indicator is not just drawing session boxes for visuals, it is using those completed session highs and lows as part of the read on where price may want to trade next.
These session drawings only appear on intraday charts and are automatically hidden on daily and higher timeframes.
SCREENSHOT: Asia, London, and NY session boxes plotted across an intraday chart
🔹 Session Titles and Extension Lines
When enabled, each session displays a title label above its box. Once a session ends, its high and low are extended forward as horizontal lines until replaced by the next instance of that same session. Each session has independent color controls for its high line and low line. Default colors are teal/maroon for Asia, blue/orange for London, and purple/green for NY.
SCREENSHOT: session extension lines with titles active after the session closes
🔹 Customization Options
Show / Hide toggle per session
Session zone color and opacity per session
High and low line colors per session
Session titles toggle and label size (Tiny, Small, Normal, Large, Huge)
Line style (Solid, Dashed, Dotted) and line width (1-5)
HIGHER TIMEFRAME LIQUIDITY
🔹 What Is Higher Timeframe Liquidity?
A higher-timeframe high or low is the extreme price reached during the most recently completed candle on a higher timeframe. These levels are visible on every higher timeframe chart, which makes them natural locations for stop-loss orders and pending breakout orders to accumulate.
🔹 How the Indicator Tracks HTF Liquidity
The indicator tracks three higher-timeframe liquidity sources: the previous 1-Hour high and low, the previous 4-Hour high and low, and the previous Day high and low. When a new higher-timeframe candle begins, the previous candle's final high and low are archived and drawn as horizontal lines on the chart. These levels remain visible until replaced by the next completed candle and are also used by the bias engine to classify session profiles.
SCREENSHOT: 1H, 4H, and Previous Day high and low extension lines on 5m chart
🔹 Extend Levels
When Extend Levels is enabled, all HTF liquidity lines extend forward by a user-defined number of bars beyond the current bar, making them easier to see as future targets. The extension distance is shared across all three HTF sources.
🔹 Customization Options
Show / Hide toggle per source (1H, 4H, Previous Day)
High and low line colors per source
Extend Levels toggle and bar count (0-100)
Line style (Solid, Dashed, Dotted) and line width (1-5)
LIQUIDITY LEVEL LABELS
The Daily Bias indicator displays labels next to each tracked liquidity level on the right edge of the chart. When two or more sources fall on the exact same price, the text is automatically merged with an ampersand (for example, "1H & 4H High") so the label shows at a glance how many sources align there.
SCREENSHOT: merged liquidity labels showing combined sources
🔹 Customization Options
Show Labels toggle
Label color (global)
Label size (Tiny, Small, Normal, Large, Huge)
SWEEP MARKERS
A liquidity sweep occurs when the price trades beyond a previously established high or low, triggering resting stop orders at that level. When Sweep Markers is enabled, a small red diamond appears above any candle that sweeps a high-side liquidity level, and a small green diamond appears below any candle that sweeps a low-side level.
SCREENSHOT: chart with sweep markers active, showing both high and low sweep diamonds
The same sweep events also feed the Current Status section of the dashboard and the bias engine, regardless of whether the markers are visually enabled.
🔹 Customization Options
Show / Hide toggle (off by default)
HISTORICAL LEVELS
By default, the Daily Bias indicator shows only the most recent set of sessions and HTF liquidity lines. When Historical Levels is enabled, older lines from previous sessions and previous higher-timeframe candles remain visible on the chart, anchored at their original times. Up to 60 historical lines per side per source are kept on the chart at once. When the limit is exceeded, the oldest line is automatically deleted.
SCREENSHOT: chart with Historical Levels enabled showing older session and HTF lines
🔹 Customization Options
Show / Hide toggle (off by default)
SESSION PROFILE CLASSIFICATION
🔹 The Four Profiles
Once a session ends, the indicator examines how the session interacted with all tracked liquidity sources and assigns one of four profiles:
◇ Consolidation: the session did not clearly sweep any tracked liquidity level
◇ Manipulation (Sweep Only): the session swept one side of liquidity but did not close back through it
◇ Reversal: the session swept one side of liquidity and closed back through it in the opposite direction
◇ Complex: the session swept both high-side and low-side liquidity, making direction unreliable
SCREENSHOT: example of a Bullish Reversal session that swept a low and closed back above it
SCREENSHOT: example of a Complex session that swept both highs and lows
🔹 How the Indicator Classifies Sessions
At the close of each session, the indicator checks whether the session high exceeded any tracked high-side liquidity level and whether the session low exceeded any tracked low-side level. If both sides were swept, the profile is Complex. If neither side was swept, the profile is Consolidation. If only one side was swept, the indicator then checks whether the session close ended back inside the range — if yes, the profile is Reversal; if no, the profile is Manipulation.
🔹 Profile Direction and Color Coding
Each profile carries an associated direction and color in the dashboard:
◇ Consolidation: Neutral (gray)
◇ Manipulation: Neutral, leaning bullish or bearish (orange)
◇ Bullish Reversal: Bullish (lime)
◇ Bearish Reversal: Bearish (red)
◇ Complex: Neutral (yellow)
LOWER TIMEFRAME STRUCTURE CONFIRMATION
🔹 What Is Structure Confirmation?
Structure confirmation is a check against the previous 5-minute and 15-minute highs and lows. The current bar's close must trade above one of those previous highs to qualify as bullish-confirmed, or below one of those previous lows to qualify as bearish-confirmed.
🔹 How the Indicator Uses Structure Confirmation
When Use 5m/15m Confirmation is enabled (default on), the bias engine requires the structure check to agree with the expected direction before assigning Bullish or Bearish to the Final Bias. If structure is not yet confirmed, the bias remains Neutral and the dashboard reason explains that the engine is waiting for confirmation. When disabled, the bias engine assigns direction purely from the session profile and current liquidity events.
The dashboard 5m/15m Structure cell displays one of four states: Bullish, Bearish, Not Confirmed, or Off.
FINAL BIAS ENGINE
🔹 How the Engine Decides Direction
The Final Bias is the indicator's primary output. It combines the previous session's profile, the current session's live liquidity activity, and (optionally) the lower-timeframe structure confirmation into a single directional decision. The decision logic is rule-based and depends on the previous session's profile.
◇ If the previous session was Consolidation: the engine waits for the current session to perform its own manipulation and reversal. If the Current Status shows a remembered Bullish Reversal and structure agrees, the Final Bias becomes Bullish. The bearish case is symmetric.
◇ If the previous session was Manipulation (Sweep Only): the engine waits for the current session to confirm the reversal the previous session left incomplete.
◇ If the previous session was Reversal: the engine expects continuation in the same direction.
◇ If the previous session was Complex: the engine refuses to assign a directional bias. The Final Bias is Neutral.
◇ If no session is currently active: the Final Bias is Neutral with reason "No active session."
🔹 Final Bias Output
The Final Bias is displayed in the dashboard as Bullish (lime), Bearish (red), or Neutral (gray). Every bias decision is paired with a Reason line that explains the exact rule that produced the current value.
SCREENSHOT: dashboard Final Bias showing Bullish with corresponding Reason line
DAILY BIAS DASHBOARD
The Daily Bias indicator includes a built-in dashboard that displays the current state of every component used in the bias decision. The dashboard is divided into four sections: a header, Session Context, Bias Engine, and Reason. Every cell that contains a value also includes a tooltip that explains what the value means and why it currently shows what it does.
🔹 Session Context
Current Session: the session price is trading in right now (Asia, London, NY, or None)
Previous Session: the session that immediately preceded the current one
Current Status: the most recent remembered liquidity event from any tracked source, updated every time a sweep or reversal occurs, and remembered until a newer same-source event replaces it
🔹 Bias Engine
Previous Profile: the classification of the previous session (Consolidation, Manipulation, Reversal, or Complex)
Previous Direction: the directional takeaway from the previous session profile
Expected Now: what the engine expects from the current session based on the previous session's profile
5m/15m Structure: the current structural state from the lower-timeframe confirmation system
Final Bias: the engine's current directional decision
🔹 Reason
The bottom row displays the exact reason behind the current Final Bias in plain English. This text changes dynamically as the engine state changes.
🔹 Tooltips
Every cell has its own tooltip that explains both what the field means in general and why the current value is what it is. For example, hovering over Previous Profile when the value is Bullish Reversal reveals: "Previous Profile means the profile of the previous session, which is NY. It is Bullish Reversal because that session swept low-side liquidity at PD Low and then closed back above it." This makes the dashboard fully self-documenting.
🔹 Customization Options
Show / Hide Dashboard toggle
Text size (Tiny, Small, Normal, Large)
IMPORTANT NOTES
The Daily Bias indicator is designed to run on intraday timeframes. Session tracking is automatically disabled on Daily, Weekly, and Monthly charts. The indicator uses the America/New_York time zone for all session calculations. The 5m/15m structure confirmation reads only closed previous candles and produces no future-looking data. The bias engine is intentionally session-anchored — outside of the three tracked sessions, the Final Bias remains Neutral with reason "No active session."
UNIQUENESS
The Daily Bias indicator focuses on session-anchored directional bias by combining session profile classification, live liquidity event tracking, and lower-timeframe structure confirmation into a single transparent system. Unlike indicators that only display levels or only show signals, every decision the engine makes is exposed on the dashboard along with a plain-English Reason line and detailed tooltips on every cell. The session profile system classifies each completed session into one of four distinct states by examining how it interacted with three higher-timeframe liquidity sources and two cross-session sources at once. The Current Status system remembers the most recent valid liquidity event across all six tracked sources. The bias engine combines profile, expected behavior, current status, and structure into a single directional decision that is fully traceable from cell to cell. مؤشر
