指標

Smart Money Concepts Engine [Quantum Algo]Smart Money Concepts Engine
====================================================
🔶 OVERVIEW
Smart Money Concepts Engine is an all-in-one smart money concepts (SMC) indicator that unifies market structure, order blocks, fair value gaps with inversions, liquidity, and premium and discount analysis into a single engine — and then goes one layer deeper than drawing tools: it scores the confluence of everything on the chart into a transparent zero-to-one-hundred Confluence Score, and narrates the current market read in plain language on a live dashboard.
Most smart money indicators draw concepts and leave the interpretation to you. This engine interprets. At any moment the dashboard answers the questions an institutional-style trader actually asks: What is the structure doing on both tiers? Has liquidity been taken? Is price in premium or discount? Are there fresh zones nearby? How much of this stacks together right now?
🔶 WHAT ARE SMART MONEY CONCEPTS?
Smart money concepts describe how large market participants leave footprints in price: they break structure to reveal intent (Break of Structure and Change of Character), they enter from unmitigated zones of prior aggression (order blocks), they leave imbalances behind fast moves (fair value gaps), they engineer stop runs above equal highs and below equal lows (liquidity sweeps), and they favor buying in the discount half of a range and selling in the premium half. This engine detects, draws, and tracks the life cycle of every one of these elements.
🔶 WHY THIS SCRIPT IS ORIGINAL
1. Confluence Score. A transparent zero-to-one-hundred score built from five weighted, observable conditions: swing and internal structure alignment (25), correct premium or discount positioning for the bias (25), a fresh order block near price (20), imbalance confluence (15), and a recent liquidity sweep in the supportive direction (15). Every point is explainable — nothing is a black box.
2. Narrative engine. The dashboard writes the market read as a plain-language story that updates live, for example: "Bullish structure — sell-side taken — price in discount — demand below." No interpretation gap between what the chart shows and what it means.
3. Zone life cycle everywhere. Order blocks are born fresh, brighten when tested, and are removed the moment they are mitigated — the chart only ever shows zones that still matter. Fair value gaps flip into inversion zones when violated and are removed on the second violation. Equal highs and equal lows are struck through and relabeled the moment they are swept.
4. Volume-graded zones. Every order block is labeled with the relative volume of its origin candle (for example "Demand · 1.8× Volume"), so zone quality is visible at a glance.
5. Dual-tier structure. Swing structure (Break of Structure and Change of Character with lines and labels) and internal structure (compact context markers) are tracked as two independent bias states — and their agreement or disagreement feeds the score.
6. Graded zone-tap signals. When price returns to a fresh zone while both structure tiers align and price sits on the correct side of equilibrium, the engine prints a signal stamped with the live Confluence Score. High-scoring signals are highlighted in the accent color.
7. Anti-clutter engineering. Sweep detection carries per-level memory and a cooldown so the same level can never stack duplicate labels. Every drawing family is capped by input, keeping the chart readable and the auto-scale anchored to current price.
🔶 HOW IT WORKS
Market structure: Swing highs and lows are confirmed with a symmetric pivot lookback. A candle close through a confirmed swing level prints a Break of Structure (BoS) in trend continuation or a Change of Character (CHoCH) on reversal, on both the swing tier and the internal tier. All events are evaluated on closed bars only, so structure and signals do not repaint.
Order blocks: On every swing structure break, the engine locates the origin candle of the move — the last opposite candle before the impulse — and projects it forward as a demand or supply zone, graded by the relative volume of that candle. Zones brighten on first touch and are removed when price closes through them.
Fair value gaps: Three-candle imbalances above a minimum size (measured in Average True Range) are boxed. When price closes through a gap, it flips into an inversion zone acting in the opposite direction; a second violation removes it. Gap detection runs in the background for the Confluence Score even when drawing is disabled.
Liquidity: Consecutive swing highs or lows within a tolerance form Equal Highs (EQH) or Equal Lows (EQL) — resting liquidity lines that follow price. A wick through the level with a close back inside marks a sweep: the line is struck through, relabeled, and the event feeds the score. Single-pivot stop hunts are detected the same way, with per-level memory preventing duplicates.
Premium and discount: The range between the last confirmed swing high and low is mapped into premium, equilibrium, and discount, with deeper tinting in the extreme quartiles. The dashboard reports the live position as a percentage of the range.
Dashboard: A compact, fully themeable panel shows swing bias, internal bias, last event, range position, liquidity status, fresh demand and supply counts, imbalance count, the Confluence Score with a strength meter, and the narrative. Text size, position, and every color are adjustable, and long narrative text wraps inside its cell to keep the panel compact.
🔶 HOW TO USE IT
1. Works on any market — cryptocurrency, forex, gold, indices, stocks, futures — and any timeframe. The engine adapts structure size through the swing and internal length inputs.
2. Read the dashboard top to bottom: bias on both tiers, what just happened, where price sits in the range, and whether liquidity has been taken.
3. The highest-quality condition is full alignment: both tiers agree, a sweep has occurred against the move, price trades on the correct side of equilibrium, and a fresh volume-graded zone waits nearby — exactly what the Confluence Score measures.
4. Treat zone-tap signals as locations of interest stamped with their context quality, not as automatic entries. A score above eighty means nearly everything aligns; below fifty means the setup is thin.
5. Use inversion zones as polarity flips: a violated imbalance often acts as support or resistance from the other side.
6. Fair value gap drawing is off by default for a cleaner chart; enable it in settings — the score uses gap information either way.
🔶 SETTINGS
- Swing and internal structure lengths, structure events to keep.
- Order blocks: origin candle lookback and zones to keep.
- Fair value gaps: minimum size, inversion tracking, gaps to keep (drawing off by default).
- Liquidity: equal level tolerance and levels to keep.
- Premium and discount map with adjustable extension.
- Zone tap signals and signals to keep.
- All chart colors, plus a fully themeable dashboard: position, four text sizes, title band, background, frame, grid, and three text colors.
🔶 ALERTS
- Bullish / Bearish Break of Structure
- Bullish / Bearish Change of Character
- Buy-Side / Sell-Side Liquidity Sweep
- Demand Zone Tap / Supply Zone Tap (score-stamped)
- Fair Value Gap Inversion
🔶 FREQUENTLY ASKED QUESTIONS
Does the indicator repaint? No. Structure events, sweeps, inversions, and signals are evaluated on closed bars at confirmed pivots. Pivot confirmation introduces intentional lag equal to the structure length.
What does the Confluence Score mean? It is a transparent sum of five weighted conditions, not a prediction. It measures how much of the smart money checklist is currently aligned — a context meter, not a probability of profit.
Why did an order block disappear? It was mitigated: price closed through it. The engine removes dead zones so the chart only shows levels that still matter.
Why do sweeps print only once at a level? Each swing level carries sweep memory and a cooldown, preventing the duplicate label stacking common in liquidity tools.
Which markets and timeframes work best? All markets with candle data. Higher timeframes produce larger, cleaner structures; the internal tier keeps lower timeframes readable.
🔶 CREDITS
The smart money concepts implemented here — order blocks, fair value gaps, liquidity sweeps, break of structure, change of character, and premium and discount — are trading concepts popularized by the Inner Circle Trader methodology of Michael J. Huddleston, with intellectual roots in the market logic of Richard D. Wyckoff. This script gratefully acknowledges that lineage. The confluence scoring model, the narrative engine, the zone life cycle system, the volume grading, the anti-duplication sweep memory, and all code in this script are original work
🔶 LIMITATIONS
Structure detection is only as good as the chosen pivot lengths; very noisy instruments may need larger values. Volume grading is less meaningful on symbols with unreliable volume reporting. Removed zones are not kept as historical artifacts. The Confluence Score measures alignment, not outcome. No indicator replaces independent analysis.
🔶 DISCLAIMER
This script is provided strictly for educational and informational purposes. It is not financial advice, an investment recommendation, or a solicitation to buy or sell any financial instrument. Past behavior of any structure event, zone, or signal does not guarantee future results. Trading involves substantial risk. Always do your own research and manage risk independently. 指標

Previous Day Week Month Quarter High LowHTF Key Levels
📌 Overview
A clean, lightweight indicator that automatically plots key support and resistance levels from higher timeframes. These levels represent previous period highs and lows - areas where institutional traders and smart money often place orders.
📊 Levels Displayed
PDH / PDL - Previous Day High & Low
D2H / D2L - 2 Days Ago High & Low
PWH / PWL - Previous Week High & Low
PMH / PML - Previous Month High & Low
PQH / PQL - Previous Quarter High & Low
🎯 Why These Levels Matter
Higher timeframe highs and lows act as significant support and resistance zones. Price often reacts at these levels because:
Institutional orders cluster around these areas
They represent clear market structure points
Many traders watch and trade these levels
They serve as natural profit targets and stop loss areas
🔔 Built-in Alerts
Get notified instantly when price touches any level. Alert messages include:
Symbol name
Which level was touched (e.g., PDH, PWL)
The level price
Current price
Example alert: "🔔 XAUUSD touched PDH (Previous Day High) at 2650.50 | Price: 2650.75"
⚙️ Settings
Levels
Toggle each timeframe individually (Day, 2-Day, Week, Month, Quarter)
Customize color for each level
Alerts
Master enable/disable for all alerts
Choose to alert on Highs only, Lows only, or both
Style
Line width (1-4)
Line style (Solid, Dashed, Dotted)
Extend right - how many bars lines extend into the future
📈 Best Used On
Intraday charts (1m, 5m, 15m, 1H, 4H) - See daily and weekly levels
Daily chart - See weekly, monthly, and quarterly levels
💡 How To Use
1. Add the indicator to your chart
2. Enable the timeframes you want to see
3. Customize colors to your preference
4. Set up an alert for "Any HTF Level Touch"
5. Watch for price reactions at these key levels
🔧 Technical Notes
Daily levels only appear on intraday charts
Weekly levels appear on intraday and daily charts
Monthly and quarterly levels appear on all timeframes except monthly
Lines are automatically redrawn at the start of each new period
Labels stay at the end of lines for easy identification
📝 Changelog
v1.0 - Initial release
If you find this indicator useful, please give it a like! 👍 指標

Fair Value Gap (FVG) Supply & Demand Zones [JPT]🔷 OVERVIEW
Fair Value Gap (FVG) Supply & Demand Zones is a market structure indicator that automatically detects Fair Value Gaps (FVGs) together with Supply and Demand Zones to help traders identify potential areas where price may react.
The indicator continuously scans price action for imbalance formations and plots dynamic zones directly on the chart. When price revisits these areas, the indicator highlights potential reaction zones while displaying LONG and SHORT signals based on its programmed logic.
Designed with a clean visual layout, the indicator helps traders monitor market structure without manually drawing imbalance or supply and demand zones.
🔷 HOW IT WORKS
The indicator continuously analyzes price action to identify market imbalances and institutional trading zones.
When qualifying conditions are met, it automatically:
• Detects Bullish Fair Value Gaps (FVG)
• Detects Bearish Fair Value Gaps (FVG)
• Identifies Demand Zones
• Identifies Supply Zones
• Tracks active zones until they are mitigated
• Displays LONG and SHORT signals according to the indicator's programmed conditions
• Updates zones dynamically as new market structure develops
This provides traders with a structured view of areas where price may revisit before continuing or changing direction.
📈 Bullish Demand Setup
1. A bullish imbalance creates a Fair Value Gap.
2. A Demand Zone is established.
3. Price retraces into the zone.
4. The indicator highlights the area and may display a LONG signal when its programmed conditions are satisfied.
📉 Bearish Supply Setup
1. A bearish imbalance creates a Fair Value Gap.
2. A Supply Zone is established.
3. Price revisits the supply area.
4. The indicator highlights the zone and may display a SHORT signal when its programmed conditions are satisfied.
📊 Dynamic Market Structure
Throughout changing market conditions, the indicator continuously updates:
• Bullish Fair Value Gaps
• Bearish Fair Value Gaps
• Supply Zones
• Demand Zones
• LONG Signals
• SHORT Signals
This helps traders monitor developing market structure in real time.
🔷 VISUAL FEATURES
• Automatic Fair Value Gap Detection
• Automatic Supply Zone Detection
• Automatic Demand Zone Detection
• Dynamic Zone Updates
• LONG & SHORT Signal Labels
• Historical Zone Display
• Customizable Colors
• Clean Chart Layout
• Real-Time Market Structure Updates
• Confirmed Calculation Logic
🔷 INPUTS
The indicator includes customizable settings for:
• Fair Value Gap Detection Length
• Supply & Demand Sensitivity
• Zone Extension
• Maximum Number of Zones
• Show LONG Signals
• Show SHORT Signals
• Color Settings
• Historical Zone Display
🔷 USAGE
A common workflow is:
• Monitor newly created Fair Value Gaps.
• Observe active Supply and Demand Zones.
• Watch for price revisiting these areas.
• Use LONG or SHORT signals together with your own market structure and confirmation techniques.
• Apply appropriate risk management before entering any trade.
The indicator is intended to support technical analysis and can be combined with additional tools such as trend analysis, support and resistance, volume, or candlestick confirmation.
🔷 MARKETS
The indicator can be applied to:
• Forex
• Gold (XAUUSD)
• Silver
• Cryptocurrency
• Stocks
• Indices
• Commodities
It is designed to adapt to multiple markets and can be used for intraday, swing, or longer-term analysis.
🔷 IDEAL TIMEFRAMES
Recommended timeframes include:
• 15 Minute
• 30 Minute
• 1 Hour
• 2 Hour
• 4 Hour
• Daily
Higher timeframes generally produce more significant market structure zones, while lower timeframes provide more frequent trading opportunities.
🔷 BEST PRACTICES
Many traders combine this indicator with:
• Market Structure Analysis
• Trend Direction
• Support & Resistance
• Liquidity Analysis
• Volume
• Candlestick Confirmation
• Risk Management Rules
Using multiple forms of analysis can help provide additional context when evaluating potential trading opportunities.
🔷 DISCLAIMER
This indicator is designed as a technical analysis tool and does not predict future market movements. Fair Value Gaps, Supply Zones, Demand Zones, and LONG or SHORT signals are generated according to the indicator's programmed logic and should be used alongside your own market analysis and risk management. No indicator can guarantee profitable trading results.
Developed by Jos-ProTrader (JPT) 指標

SwiftTrend Structure█ OVERVIEW
SwiftTrend Structure is an extended version of the SwiftTrend indicator, designed to provide more reliable trend filtering.
The biggest enhancement over the original version is the introduction of dual trend confirmation. A price crossing of the SwiftTrend line alone is no longer sufficient to change the trend direction. Instead, the move must also be confirmed by a corresponding pivot breakout (BoS/ChoCh).
This approach significantly reduces false trend reversals during ranging markets and noisy price action.
Pivot breakout detection (BoS/ChoCh) is an integral part of the indicator's logic and serves as the confirmation mechanism for trend changes. At the same time, these breakout signals can also be used independently as trade signals based on market structure.
All features of the indicator are fully optional and can be enabled or disabled independently, allowing the tool to be used either as a clean trend filter or as a more comprehensive market structure analysis tool.
█ CONCEPTS
Traditional trend-following indicators often reverse too early during consolidations or too late after a new trend has already developed.
The original SwiftTrend determines trend direction solely by the relationship between price and its dynamic trend line.
SwiftTrend Structure extends this concept by incorporating market structure analysis.
A trend reversal is confirmed only when two conditions are met:
* price breaks the SwiftTrend line,
* the corresponding pivot breakout (BoS/ChoCh) occurs.
After price crosses the trend line, the indicator does not immediately change direction. Instead, it enters a pending state, waiting for additional confirmation.
The pending state ends in one of two ways:
* the required pivot breakout (BoS/ChoCh) confirms the trend reversal,
* or price returns back into the previous trend range, canceling the pending state and keeping the existing trend unchanged.
This mechanism filters out many temporary breaks of the trend line that would otherwise generate false trend reversals.
Besides confirming trend changes, the indicator simultaneously monitors pivot breakouts using two independent pivot lengths.
This allows traders to observe both short-term and longer-term market structure.
BoS/ChoCh signals can also be used independently from the trend confirmation logic, making the indicator useful for discretionary Price Action trading.
█ FEATURES
SwiftTrend
* Average Body Periods – period used to calculate the average candle body size
* Band Multiplier – width of the SwiftTrend band
* Tolerance Multiplier – additional margin used while waiting for trend confirmation
* Uptrend Color
* Downtrend Color
* Show Trend Line
* Fill Shade
* Color Bars
* Highlight Waiting State (bgcolor)
Signals
* Show BOS/ChoCh Signals – displays pivot breakout signals
* Show Only BOS/ChoCh Signals Aligned With Trend – filters signals according to the current trend
* Show Trend Change Labels – displays Buy/Sell labels after confirmed trend changes
BoS/ChoCh Confirmation
* Confirm Trend Change With Pivot Breakout – enables dual trend confirmation
* Pivot Length #1 – first pivot detection period
* Pivot Length #2 – second pivot detection period
* Show Broken Pivot Lines – displays broken pivot levels
* Pivot Line Transparency
Unbroken Pivot Lines
* Show Unbroken Pivot Lines – displays active unbroken pivot levels
* Unbroken Pivot Lines Transparency
* Unbroken Pivot Lines Style
TP/SL
* Show TP/SL Levels – displays entry, Stop Loss and Take Profit levels
* Use ATR × For SL Instead Of %
* ATR Period For TP/SL
* ATR Multiplier For SL
* Stop Loss %
* Risk/Reward Ratio For TP1
* Risk/Reward Ratio For TP2
* Risk/Reward Ratio For TP3
TP/SL Display
Independent visibility control for:
* SL
* TP1
* TP2
* TP3
█ APPLICATIONS
SwiftTrend Structure is designed primarily as a trend filter, rather than a standalone buy/sell signal generator.
Its primary purpose is to identify the market direction with the highest probability of continuation.
For example, if:
* a momentum indicator shows bullish pressure,
* SwiftTrend Structure confirms an uptrend,
* a bullish BoS signal appears,
* and there is no significant resistance above price,
a long position may be considered based on the confluence of multiple independent factors.
The same logic can be applied when looking for short opportunities.
Using two independent pivot lengths allows simultaneous analysis of both short-term and long-term market structure.
The built-in TP/SL module provides an immediate visual risk/reward framework, making trade planning faster and more consistent.
█ NOTES
* Dual trend confirmation significantly reduces false trend reversals, although it may also delay the detection of new trends. This is a deliberate trade-off between faster reactions and higher signal quality.
* Disabling pivot confirmation makes the indicator behave similarly to the original SwiftTrend.
* Every module of the indicator can be enabled or disabled independently.
* BoS/ChoCh signals can be used both as trend confirmation and as standalone market structure signals.
* Best results are achieved when combined with market structure analysis, support and resistance zones, momentum indicators, and additional confirmation tools. 指標

Context Fibonacci Key LevelsContext Fibonacci Key Levels automatically plots Fibonacci retracement and extension levels using the most recently completed Day, Week and Month candles while preserving the directional context of each timeframe.
Rather than treating every Fibonacci equally, the indicator determines whether the previous higher timeframe candle closed bullish or bearish and automatically adjusts the Fibonacci orientation to reflect that completed price movement.
This creates objective reference levels that remain consistent across every chart timeframe.
Automatic Past Day Fibonacci
Automatic Past Week Fibonacci
Automatic Past Month Fibonacci
Automatic bullish or bearish orientation
Retracement and extension levels
Works on every timeframe
Independent colors for each timeframe
Optional labels:
Full Name or Shorthand display mode
How it works
The indicator evaluates the previous completed candle of each selected higher timeframe.
If the candle closed bullish , the Fibonacci is drawn from Low to High.
If the candle closed bearish , the Fibonacci is drawn from High to Low.
This allows every Fibonacci to represent the completed directional movement of its corresponding candle.
Included Fibonacci Levels
0%
23.6%
38.2%
50%
61.8%
78.6%
100%
Customization
Enable or disable Past Day Fibonacci.
Enable or disable Past Week Fibonacci.
Enable or disable Past Month Fibonacci.
Choose an individual color for each timeframe.
Adjust line width.
Show or hide labels.
Display labels using Full Name (Past Day, Past Week and Past Month) or Shorthand (PD, PW and PM).
Use Cases
These levels can be used as objective higher timeframe reference zones for technical analysis, confluence studies, liquidity mapping, retracement analysis, extension targets and general market structure observations.
Because the calculations are always based on the latest completed higher timeframe candle, the levels automatically update whenever a new Day, Week or Month closes.
Disclaimer
This indicator is designed as a technical analysis tool and does not generate trading signals or predict future market direction. It is intended to be used alongside your own trading methodology and additional sources of market confluence. 指標

[ A L P H A X ] MAGNET - Liquidity Magnet EngineAlphaX MAGNET — Liquidity Magnet Engine: Hybrid Pool Detection, Sweep State Machine, Delayed Reclaim Entries, Absorption Pins, FVG Confluence & Weighted Scoring System
AlphaX MAGNET is a professional-grade liquidity-based trading system built around a single foundational observation: price is magnetically attracted to liquidity pools. Buy-side liquidity sitting above Equal Highs and sell-side liquidity sitting below Equal Lows are not random price levels — they are concentrations of institutional stop orders and pending market orders that price is consistently drawn toward before major directional moves begin. MAGNET detects these pools with a dual-method engine (pivot cluster analysis combined with Equal High/Equal Low range scanning), tracks every sweep event through a dedicated state machine, and fires precision entries through four distinct setup types — same-bar sweep and reclaim, delayed post-sweep reclaim, absorption pin bar, and FVG-liquidity overlap — scored through a weighted 9-point confluence system that rewards quality setup combinations over arbitrary filter accumulation. Unlike systems that suppress signals through cascading hard blocks, MAGNET is built on the philosophy that quality comes from the combination of setup type and confluence score, not from eliminating signal opportunities through excessive gating. Designed for active traders across crypto, forex, gold, and indices on any timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💧 The Liquidity Pool Concept — Why Price Is Magnetic
Retail traders place stop losses at technically logical locations — just below swing lows (buy stops become sell orders when triggered, providing sell-side liquidity or SSL) and just above swing highs (sell stops become buy orders when triggered, providing buy-side liquidity or BSL). These clusters are not secrets. Institutional participants, who need massive liquidity to fill their position sizes, deliberately engineer price moves toward these clusters — hunting the stops to generate the counterparty order flow they need.
This creates a recurring, exploitable pattern:
SSL pools below significant lows are swept — price dips below to trigger sell stops, filling institutional buy orders
The sweep reverses sharply as the institutional position is filled and price moves in the intended direction
BSL pools above significant highs are swept — price spikes above to trigger buy stops, filling institutional sell orders
The spike reverses as the selling position is filled
MAGNET is built to detect these pools before the sweep, identify the sweep the moment it occurs, and provide structured entry signals at the precise points where the institutional reversal is most likely to begin. The word "magnet" captures the system's core thesis: liquidity pools are not just price levels to avoid — they are targets that price is attracted to, and the moment after the sweep is the highest-probability institutional entry available.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 The Hybrid Pool Detection Engine
MAGNET identifies liquidity pools using two independent methods running simultaneously, then combines their outputs to determine the single most relevant BSL and SSL level at any moment.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Method 1 — Pivot Cluster Analysis
The first engine detects fractal swing highs and lows using a configurable pivot length (default: 5 bars each side) and tracks clusters of pivots near the same price level. Rather than marking every single pivot as a liquidity level, MAGNET uses a weighted averaging approach:
When a new pivot forms near an existing pivot level (within 1.5× the ATR pool tolerance), the two pivots are merged — the new cluster level is the weighted average of both, and the touch count increments. When a new pivot forms far from the existing cluster, a new level is established.
A pivot cluster only becomes an active liquidity pool when its touch count meets the minimum threshold (default: 2 pivot touches) and its age exceeds the minimum pool age (default: 3 bars). These two conditions ensure the pool represents genuine accumulated stop orders rather than a single swing point that may not yet have attracted meaningful liquidity.
Why pivot clustering matters: A level touched twice or more has drawn retail traders to place stops at it on multiple occasions. Each time price revisits without breaking, more stops accumulate just beyond it. The cluster represents not a single trader's stop but a compounding concentration of stop orders — the largest and most powerful liquidity pools in the market.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Method 2 — Equal High / Equal Low (EQH/EQL) Range Scanning
The second engine scans the entire lookback window (default: 40 bars) to find the highest high and lowest low in the range, then counts how many bars within that window came within the ATR pool tolerance of those extremes. When the touch count meets the minimum EQ touch threshold (default: 2 touches), the extreme qualifies as a genuine Equal High (BSL pool) or Equal Low (SSL pool).
Why EQH/EQL scanning is powerful: The highest level in a range with multiple near-touches is the quintessential Equal Highs pattern — the most widely recognized institutional liquidity target in smart money trading. Every time price approaches but fails to break through the level, another wave of retail traders places buy stops above it "in case it breaks." The more touches, the denser the liquidity cluster above. The EQL range scan identifies these levels objectively and in real time without requiring manual identification.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Pool Selection Logic
From both methods, MAGNET selects the single most relevant active BSL and SSL level at any moment. When both methods have identified a valid pool of the same type, the closer one to the current price is selected — the near-term liquidity target takes precedence over a more distant one. The active pools are displayed on the dashboard as exact prices and plotted as dashed lines extending forward on the chart.
Magnet Above / Magnet Below: The active BSL (if above current price) is displayed as MAGNET ABOVE — the level price is currently being drawn toward on the upside. The active SSL (if below price) is MAGNET BELOW — the downside liquidity target. These two levels are also used as the take-profit targets when TP at Opposing Magnet is enabled, with the opposing pool being the natural delivery target after a sweep reversal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ The Sweep State Machine — Separating Sweeps from Entries
One of MAGNET's most important architectural decisions is the separation of the sweep detection from the entry signal. Many liquidity-based systems fire entries on the sweep bar itself — which frequently catches false sweeps, wicks that briefly cross the pool but are part of a larger continuation move, and cascade waterfall bars that are not genuine reversals.
MAGNET uses a dedicated sweep state machine that tracks every sweep event independently from the entry logic:
Sweep detection:
An SSL sweep is detected when the current bar's low extends below the active SSL pool by more than the minimum sweep depth (default: 0.10× ATR). A BSL sweep is detected when the high extends above the active BSL by more than the minimum depth. Both are registered in memory with the bar index and the exact pool level that was swept.
Sweep window tracking:
After a sweep is registered, the system tracks how many bars have elapsed since the sweep. The configurable reclaim window (default: 8 bars) defines how long a sweep remains "fresh" for delayed reclaim entry qualification. The dashboard's SWEEP WINDOW row displays the active sweep state in real time — "SSL 2b ago" means an SSL sweep occurred 2 bars ago and the reclaim window is still open.
Cascade block (same-bar only):
A "cascade" bar is a strong, large-body continuation bar in the trend direction — close below open, body above 0.45× ATR, closing below the structure EMA and 50 EMA (bear cascade). When a sweep coincides with a cascade bar on the same bar , the same-bar sweep entry (Setup A) is blocked — entering against a waterfall candle in the same bar is the highest-risk stop-hunt entry scenario. Critically, this block only applies to same-bar entries — the cascade does not prevent the delayed reclaim entries (Setup B) that fire on subsequent bars once the cascade has resolved.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷 Four Setup Types — Quality Through Combination
MAGNET's philosophy explicitly rejects quality-through-suppression. Rather than applying increasingly aggressive filters that block more and more signals, MAGNET provides four distinct setup types of varying quality, grades them A or B, scores them through the weighted confluence engine, and lets the score threshold determine which signals reach the chart. Each setup type captures a different institutional entry scenario.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup A — SSL/BSL Sweep + Same-Bar Reclaim (Grade A, Primary)
The highest-conviction single-bar pattern. Fires when the sweep and the reclaim occur within the same bar — the classic stop-hunt candle.
Long conditions (SSL sweep + reclaim):
Current bar's low extends below the active SSL pool by more than the minimum sweep depth
The bar closes back above the SSL pool — the sweep was rejected within the same candle
A qualifying bull trigger candle is present — close above open, body at least 0.22× ATR, and the close-to-low distance exceeds 50% of total range (strong rejection wick)
The bar is not a cascade/waterfall bar — the same-bar cascade block applies
The institutional sequence: Price spikes below the SSL, triggering retail sell stops and filling institutional buy orders. Buyers immediately overwhelm the sell-stop flow and drive price back above the level within the same bar. This same-bar recovery is the clearest possible sign of genuine institutional absorption — they bought the stop-triggered selling and bid price back up in a single candle.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup B — Delayed SSL/BSL Reclaim (Grade A, Primary)
The most powerful setup type for catching genuine post-sweep reversals. Fires in the 1 to N bars following a sweep event — capturing entries that miss the same-bar candle.
Long conditions (delayed SSL reclaim):
A qualifying SSL sweep occurred within the reclaim window (1 to 8 bars ago — the current bar is not the sweep bar)
The current bar's low is within ATR tolerance of the swept SSL level — price has returned to test the swept level
The current bar closes above the swept level — reclaiming it from below
A qualifying bull trigger candle confirms the reclaim with body and wick requirements
Why delayed reclaim is the highest-quality setup: Many genuine institutional sweep-and-reversal sequences do not complete in a single bar. After the sweep candle, price may consolidate below the swept level for 1–3 bars as retail traders interpret the sweep as a genuine breakdown and add to short positions. This consolidation below the swept level creates the highest-quality delayed reclaim entry — buying precisely as the "trapped shorts" below the swept level begin to be squeezed on the reclaim. Entries here have the swept level as a natural structural reference for the stop, the opposing BSL pool as a natural target, and the maximum available momentum from both the original sweep exhaustion and the trapped short squeeze.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup C — SSL/BSL Absorption Pin (Grade B, Secondary)
A volume-confirmed pin bar at the pool zone — institutional absorption without a full sweep event.
Long conditions (SSL absorption):
Price is at or near the active SSL zone (within ATR pool tolerance)
A pin bar forms — lower wick exceeds 42% of the bar range, body is less than 38% of range, bar closes bullish
Volume is spiking above the configured volume threshold (default: 1.05× average) — confirming institutional activity at the zone
The bar closes above the SSL level — the absorption is from the buy side
The absorption scenario: Not every institutional accumulation at a liquidity pool involves a dramatic sweep. Sometimes institutions absorb all available sell-side liquidity at the SSL boundary without price needing to fully breach the level — the large volume at the pin bar low represents the same buying activity, just without the stop-triggering violation. The combination of the pin bar rejection shape and the volume spike at the zone is the visual and volumetric evidence of this absorption.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup D — FVG + SSL/BSL Magnet Confluence (Grade B, Secondary)
The institutional structure overlap entry — a Fair Value Gap forming directly at the liquidity pool level.
Long conditions (FVG + SSL magnet):
A bullish Fair Value Gap is present on the current bar — the current bar's low is above the high of the bar two bars ago, creating a gap in the price structure
The FVG zone (between the current bar's low and the two-bars-ago high) overlaps with the active SSL pool level within ATR tolerance
A qualifying bull trigger candle confirms
The FVG-liquidity overlap concept: When a bullish FVG coincides with an SSL pool level, two independent institutional frameworks are pointing to the same price zone simultaneously. The FVG represents an imbalance in order flow that price will fill. The SSL pool represents a liquidity concentration that price is magnetically drawn toward. When they overlap at the same level, the zone has double-layer institutional significance — it is both an unfilled order imbalance and a liquidity pool, making it the highest-value structural level available at that moment.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Weighted Confluence Scoring — Quality Through Combination
MAGNET uses a weighted scoring system where primary setups (A and B — sweep and reclaim) count for 2 points while secondary setups (C and D — absorption and FVG) count for 1 point. The remaining 7 points come from confluence quality layers. The default minimum threshold is 5 points.
Score structure (maximum: 9 points):
Setup Type (2 points for primary, 1 for secondary) — the foundational quality weighting. A sweep or delayed reclaim inherently carries more institutional evidence than an absorption or FVG overlap
Active Pool Valid (1 point) — the SSL (for bull) or BSL (for bear) pool is currently active and qualified. Signals without a valid pool cannot score this point — there is no institutional liquidity reference without a qualified pool
HTF Bias Alignment (1 point) — the higher timeframe EMA structure agrees with the signal direction. Unlike most AlphaX systems where HTF is a hard block, MAGNET treats HTF as a soft confluence layer — counter-HTF trades can still fire if other confluence is sufficient. This reflects the reality that sweep-and-reclaim sequences frequently work counter-HTF precisely because institutions are sweeping retail positions that were trading with the HTF trend
Volume Layer (1 point) — current bar volume meets or exceeds the volume spike threshold. Confirms institutional participation on the signal bar
Structural Bias (1 point) — price is above the Structure EMA or RSI is above 45 for longs (close > structure EMA or RSI > 45); price below EMA or RSI < 55 for shorts. This dual condition accepts both trend-aligned and momentum-recovering entries
RSI Exhaustion (1 point) — RSI below 38 for longs with a recent SSL sweep, or RSI above 62 for shorts with a recent BSL sweep. This bonus point rewards entries where the RSI is genuinely oversold or overbought at the sweep level — the classic exhaustion reversal condition that historically produces the sharpest recoveries
Non-Chop Market (1 point) — Choppiness Index below the configured threshold (default: 65). Also enforced as a hard gate — unlike the HTF, extreme chop does block all signals regardless of score
At Pool Zone (1 point) — the current bar is within the pool tolerance of the active SSL (bull) or BSL (bear) zone. Rewards entries that are precisely positioned at the institutional level
Score examples:
A primary sweep reclaim (2 points) with valid pool, HTF alignment, volume, structural bias, and non-chop market reaches 7/9 — a high-conviction signal. A secondary FVG entry (1 point) with valid pool, volume, structural bias, and non-chop but no HTF alignment reaches 5/9 — the minimum threshold. The scoring naturally produces a gradient of signal quality without hard-blocking any combination.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Magnet-Anchored Stop Loss and Target
Stop Loss Placement:
For bull signals, the stop is placed at the minimum of the current bar's low and the swept SSL level (using the stored sweep level from the state machine when a sweep occurred), minus the configured ATR buffer (default: 1.0× ATR). For bear signals, the maximum of the bar's high and the swept BSL level plus the ATR buffer.
This produces stops anchored to the structural invalidation point — the level that proves the institutional thesis wrong. A bull stop below the swept SSL means: if price closes below the sweep level after the reclaim, the sweep thesis has failed and institutions are not actually buying at this level.
Take Profit — Opposing Magnet (default: on):
When TP at Opposing Magnet is enabled, the take profit target is automatically set to the opposing liquidity pool — the BSL pool above price for long entries, the SSL pool below for shorts. This is the single most powerful TP mechanic available for liquidity-based trading: after a sweep of the SSL, the natural delivery target is the opposing BSL pool, because institutions who bought the SSL sweep will deliver price toward the next concentration of liquidity above. The magnet-to-magnet target represents the true institutional delivery destination.
When no opposing magnet is available (pool not yet qualified), the fallback is a configurable R-multiple target (default: 2.5R).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The 17-row real-time dashboard displays the complete internal state across five sections.
LIQUIDITY
BSL (EQH) — the active buy-side liquidity pool price. The current institutional overhead target. Red dashed line on chart with BSL · EQH label
SSL (EQL) — the active sell-side liquidity pool price. The current institutional downside target. Yellow-green dashed line with SSL · EQL label
Magnet Above — the BSL pool when it is above current price — the upside delivery target
Magnet Below — the SSL pool when below current price — the downside delivery target
SWEEP STATE
Sweep Window — live sweep state: "SSL 2b ago" when within the reclaim window, "BSL 3b ago" for BSL sweeps, or — IDLE when no recent sweep is active. This is the critical pre-signal awareness row — when it shows an active sweep state, Setup B entries are monitoring for the reclaim
SETUPS
Long Setup — the currently active long setup type: SWEEP, RECLAIM, ABSORB, FVG, or — when none is active
Short Setup — the currently active short setup type
FILTERS
HTF Bias — ▲ BULL, ▼ BEAR, or — FLAT. Soft confluence layer for scoring
Chop Index — live Choppiness Index value. Orange when above the block threshold — the only hard filter in MAGNET
CONFLUENCE
Bull / Bear — live scores displayed as "x / y" with a ▲ or ▼ arrow when either score meets the minimum threshold
Playbook — the current actionable state: LONG A, SHORT A, LONG B, SHORT B when a signal just fired; WATCH RECLAIM ▲ or ▼ during active sweep windows; WATCH MAGNETS when pools are defined but no active sweep
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
BSL Pool Line (red dashed) — the active buy-side liquidity level with "BSL · EQH" label extending to the right. Redrawn on the last bar to reflect the current pool state
SSL Pool Line (yellow-green dashed) — the active sell-side liquidity level with "SSL · EQL" label
▲ Large Triangle (below bar, yellow-green) — Grade A long signal. SSL sweep or delayed reclaim with qualifying confluence
▲ Small Triangle (below bar, dim yellow-green) — Grade B long signal. Absorption pin or FVG magnet setup
▼ Large Triangle (above bar, red) — Grade A short signal
▼ Small Triangle (above bar, dim red) — Grade B short signal
● Sweep Circles (optional, orange) — appear above (BSL sweep) or below (SSL sweep) the bar when a sweep event is detected. Off by default — sweeps are tracked internally regardless of marker visibility
SL Guide (red dotted circles) — sweep-anchored stop loss below or above the pool level
TP Guide (yellow-green dotted circles) — opposing magnet target or R-multiple fallback
Live confluence label — B x · S x near the current price on the last bar, updating in real time
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX MAGNET — Step by Step
Step 1 — Read the Liquidity Map
Check the dashboard BSL and SSL rows. These are the current institutional targets — price will be drawn toward both levels over time. Note which is closer to current price
Check Magnet Above and Magnet Below. These are your directional delivery destinations. If SSL is below and BSL is above, the market is sandwiched between two magnets — the next major move will likely target one of them
Note the Chop Index. When it is approaching or above the threshold (65), the liquidity pool targets lose reliability — pools become harder to reach when the market is oscillating without direction
Step 2 — Monitor the Sweep Window
The Sweep Window row is the most critical pre-signal dashboard row. "SSL 1b ago" means an SSL sweep just occurred one bar ago and the reclaim window is wide open — Setup B is actively scanning the next bars for a qualifying reclaim candle
WATCH RECLAIM ▲ in the Playbook row is the highest-priority alert state. Prepare your entry parameters immediately — the delayed reclaim may fire on the very next qualifying bar
Watch the chart for the reclaim candle forming at or above the swept SSL level with a bullish rejection body
Step 3 — Enter on the MAGNET Signal
A large ▲ triangle (Grade A) confirms a sweep or delayed reclaim with qualifying confluence. This is the primary MAGNET entry
A small ▲ triangle (Grade B) confirms an absorption or FVG setup. Valid entry with slightly lower setup-type evidence — manage with smaller size if preferred
The SL guide is plotted below the swept level plus ATR buffer. Your structural invalidation
The TP guide points to the opposing BSL magnet when available — the institutional delivery target. When this lines up with the opposing pool, you have a magnet-to-magnet trade with a clear institutional narrative
Step 4 — Manage the Trade
Monitor the Sweep Window — if a new sweep of the opposing pool occurs while you are in a trade, it may be a signal that the delivery is completing or extending
When price approaches the MAGNET ABOVE level (for long trades), consider taking partial profit — the opposing pool is the target but also potential new resistance
If a new valid sweep of your entry SSL occurs in the opposite direction during the trade, this could indicate the SSL was not the final sweep — reassess the position
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
Chop Index above threshold — this is the only hard filter in MAGNET. All signals are blocked. More importantly, in extreme chop, liquidity pools are being tested repeatedly without producing clean sweeps and reversals — the institutional dynamic is absent
BSL and SSL are very close to each other — when the two magnets are tightly compressed around current price, the market is ranging within a narrow liquidity cluster. Sweeps in this environment frequently continue through multiple levels rather than reversing at the first pool
Sweep Window shows IDLE for an extended period — no sweeps means no primary setup type is available. Only absorption and FVG setups (Grade B) can fire. If you prefer primary setups only, wait for a sweep to register
HTF Bias strongly opposes the signal — while HTF is a soft confluence layer in MAGNET, a strongly opposing HTF reduces the score by 1 point. In these conditions, a Grade B signal at the minimum threshold becomes marginal — consider requiring a higher score for counter-HTF entries
Grade B signals with minimum score (5/9) in a non-trending market — absorption pins and FVG overlaps require more supporting confluence to be reliable in Balance or transitional markets. When Grade B fires at exactly the minimum score without HTF support, reduce size or skip
Multiple consecutive sweeps of the same level without recovery — when price sweeps the SSL three times in succession, each time recovering only partially before sweeping again, the level is being absorbed in stages by a larger institutional seller rather than being swept for a reversal. Do not continue entering on each successive sweep
The ideal MAGNET setup:
Clear, well-aged SSL or BSL pool with multiple touches (3+ pivots or EQ touches)
Clean, decisive sweep below SSL with a single strong bar
1–3 bar consolidation below the swept level (confirming trapped shorts)
Delayed reclaim candle forming at the swept level with bull trigger confirmation
RSI below 38 at the sweep low (exhaustion bonus point)
Volume spike on the reclaim bar
HTF aligned bullish
Opposing BSL pool clearly defined above — the magnet-to-magnet trade
Score at 8–9/9
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
💧 Hybrid dual-method pool detection — pivot cluster analysis (weighted average clustering with touch count and age requirements) combined with Equal High/Equal Low range scanning (touch count across lookback window)
🎯 Active pool selection logic — nearest qualified pool to current price is selected as the active target, ensuring the most immediately relevant liquidity level is always the reference
⚡ Dedicated sweep state machine — sweeps are detected and stored independently from entry logic, enabling delayed reclaim entries 1–8 bars after the sweep event with full state persistence
🛡 Cascade block (same-bar only) — waterfall continuation bars are blocked from triggering same-bar sweep entries while preserving all delayed reclaim opportunities
🏷 Four setup types with grade classification — Setup A (same-bar sweep reclaim), Setup B (delayed reclaim), Setup C (absorption pin), Setup D (FVG liquidity overlap), each graded A or B by primary/secondary classification
📊 Weighted confluence scoring — primary setups count 2 points, secondary count 1, with 7 additional quality layers scoring independently. Quality through combination, not suppression
🔴 RSI exhaustion bonus — extra confluence point when RSI is genuinely exhausted at the sweep level, rewarding the highest-quality reversal conditions
📡 HTF bias as soft layer — higher timeframe alignment adds to the score but does not hard-block counter-HTF entries, reflecting the institutional reality that sweep reversals frequently work counter to the prevailing HTF trend
🎯 Opposing magnet TP system — take profit automatically targets the opposing liquidity pool when available, providing an institutionally justified delivery destination rather than an arbitrary ATR multiple
📍 Sweep-anchored SL placement — stop loss anchored to the swept pool level plus buffer, not an arbitrary ATR distance from entry
💹 Live Sweep Window tracking — dashboard shows active sweep state with bars elapsed since sweep, providing pre-signal awareness before the delayed reclaim fires
📊 Live Playbook row — displays WATCH RECLAIM ▲/▼ during active sweep windows, preparing you for the imminent Setup B signal
📊 17-row live dashboard — Liquidity, Sweep State, Setups, Filters, and Confluence sections updated in real time
🔔 4 alert conditions — long/short entries and SSL/BSL sweep events
🎨 Fully cohesive dual-tone color system — yellow-green for SSL/SSL-related bull elements, red for BSL/BSL-related bear elements, orange for sweep markers and alerts
⚙ Fully configurable — pivot length, EQH/EQL lookback, pool tolerance, touch minimums, pool age, sweep depth, reclaim window, signal body minimum, all four setup enables, confluence minimum, HTF timeframe and EMAs, chop threshold, volume filter, session, SL buffer, TP mode and R-multiple, and all colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Liquidity Pool Engine
Pivot Length — fractal sensitivity for pivot high/low detection (default: 5 bars each side)
EQH/EQL Scan Lookback — bars used for the Equal High/Equal Low range scan (default: 40)
Pool Tolerance (xATR) — ATR multiple defining the zone width around a pool level (default: 0.14)
Min Pivot Touches — minimum pivot cluster touches for a pivot pool to qualify (default: 2)
Min EQ Touches — minimum near-touches for an EQH/EQL level to qualify (default: 2)
Min Pool Age (bars) — minimum bars since first pivot detection before the pool is active (default: 3)
ATR Length — ATR calculation lookback (default: 14)
Sweep & Reclaim
Min Sweep Depth (xATR) — minimum extension beyond the pool for a sweep to register (default: 0.10)
Reclaim Window (bars after sweep) — how many bars after a sweep a delayed reclaim can fire (default: 8)
Min Signal Body (xATR) — minimum candle body size for all entry triggers (default: 0.22)
Show Sweep Markers — toggle optional orange circle markers at sweep detection bars (default: off)
Entry Setups
A · SSL Sweep + Reclaim / A · BSL Sweep + Reclaim — toggle same-bar sweep entries
B · Delayed SSL Reclaim / B · Delayed BSL Reclaim — toggle delayed reclaim entries
C · SSL Absorption Pin / C · BSL Absorption Pin — toggle absorption pin bar entries
D · FVG + SSL Magnet / D · FVG + BSL Magnet — toggle FVG-liquidity overlap entries
Min Confluence Score — minimum weighted score required for a signal (default: 5)
Show Entry Signals — toggle signal triangles
Show Confluence Label — toggle the live B/S score label near the current price
Signal Cooldown (bars) — minimum bars between consecutive signals (default: 5)
Grade Signals (A / B) — when on, primary setups show as large triangles, secondary as small triangles
Filters
HTF Bias Layer — adds 1 confluence point when HTF agrees (does not hard-block counter-trend)
HTF Timeframe / HTF Fast / Slow EMA — higher timeframe parameters (defaults: 60-minute / 21 / 55)
Block Extreme Chop — when on, Choppiness Index above threshold blocks all signals (the only hard filter)
Choppiness Length / Chop Block Above — CI parameters (defaults: 14 / 65.0)
Volume Layer — adds 1 confluence point when volume exceeds threshold
Volume Spike Threshold / Volume Avg Length — volume parameters (defaults: 1.05 / 20)
Session Filter / Active Session — trading hours restriction (default: off)
Structure EMA — EMA used for the structural bias confluence layer (default: 21)
Exit Guidance
Show SL / TP Guides — toggle stop and target dotted circle plots
SL Beyond Sweep (xATR) — ATR buffer beyond the swept pool level for stop placement (default: 1.0)
TP at Opposing Magnet — when on, TP targets the opposing active liquidity pool (default: on)
TP Reward (R) if no magnet — fallback R-multiple target when no opposing pool is available (default: 2.5)
Display
Show Liquidity Pool Lines — toggle BSL and SSL dashed reference lines
Show Dashboard — toggle the full dashboard
Dashboard Position — Top Left / Top Right / Bottom Left / Bottom Right
Colors
Bull / Bull Bright — yellow-green family for all bullish signals and SSL elements
Bear / Bear Bright — red family for all bearish signals and BSL elements
Sweep / Alert — orange for sweep markers and active alert states
BSL Pool (EQH) / SSL Pool (EQL) — individual pool line colors
SL Guide / TP Guide — stop and target circle colors
Dash Text / Dash BG / Dash Header / Dash Section / Dash Frame — full dashboard color control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (4 total)
Entry Alerts
Magnet Long — all conditions confirmed. Long signal fired across any qualifying setup type
Magnet Short — all conditions confirmed. Short signal fired
Sweep Alerts
Magnet SSL Swept — sell-side liquidity pool has been swept. Watch for reclaim within the configured window — Setup B is now monitoring
Magnet BSL Swept — buy-side liquidity pool has been swept. Watch for reclaim — Setup B monitoring active
All alert messages are formatted as const strings for clean webhook and notification platform integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Recommended Settings by Instrument & Timeframe
The default configuration is optimized for XAUUSD, major forex pairs, and crypto on M5–M15 :
Pivot Length at 5 — standard fractal sensitivity for intraday instruments. Captures meaningful swing points without over-sensitivity to micro-noise
EQL Lookback at 40 — approximately 3–4 hours on M5, covering the relevant intraday Equal High/Low structure
Pool Tolerance at 0.14× ATR — tight enough to require genuine proximity to the pool level without missing valid touches due to spread variation
Reclaim Window at 8 bars — on M5 this is 40 minutes, sufficient to capture post-sweep consolidation and delayed reversal entries
HTF at 60-minute as soft layer — adds score for alignment without blocking the counter-HTF sweeps that are often the most powerful entries
For other instruments or timeframes, adjust:
M1–M3 scalping — reduce Pivot Length to 3, reduce Pool Tolerance to 0.10, reduce Reclaim Window to 4–5 bars, reduce Cooldown to 3, increase Min Sweep Depth to 0.15 for tighter scalp sweeps
H1–H4 swing trading — increase EQL Lookback to 80–100, increase Pivot Length to 7–8, increase Reclaim Window to 12–15, increase TP Reward to 3.5–5.0R for wider swing targets
Crypto (BTC, ETH) — increase Pool Tolerance to 0.18–0.22 for the wider tick structure, increase Min Sweep Depth to 0.15–0.20, increase Chop Block to 68–70 for crypto's naturally higher choppiness
Indices (NAS100, US30) — use session filter for cash market hours, increase Pool Tolerance slightly to 0.16, consider reducing EQL Lookback to 25–30 for the shorter-lived Equal High/Low structures in index futures
More primary setups (A and B) — reduce Reclaim Window minimum expectation by ensuring both Setup A and B are enabled, and watch the Sweep Window row actively rather than waiting for signals
Grade A signals only — disable Setup C (absorption) and Setup D (FVG), raise Min Confluence to 6. Only sweep and delayed reclaim entries with strong supporting factors will fire
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
💧 Liquidity sweep traders and stop-hunt entry specialists — MAGNET is the most complete and technically sophisticated liquidity sweep system in the AlphaX suite. Every component — pool detection, sweep state machine, cascade blocking, delayed reclaim, magnet TP — is designed specifically for the institutional stop-hunt-and-reverse pattern
🏦 Smart money concepts and ICT methodology traders — the SSL/BSL, EQH/EQL, and sweep-reclaim framework directly implements the core ICT liquidity concepts with quantitative precision
🥇 Gold (XAUUSD) and forex traders — liquidity sweeps are most consistent and most powerful on institutional instruments where market makers actively hunt stops. Default settings are calibrated for gold intraday
🎯 Traders who want the highest-quality post-sweep entries — the delayed reclaim (Setup B) is the system's most powerful setup type and is specifically designed for traders who have experienced the frustration of missing same-bar sweep reversals only to watch price surge without them
🧠 Systematic traders who want quantified liquidity analysis — the hybrid pool detection, weighted scoring, and sweep state machine replace entirely subjective liquidity level identification with objective, repeatable criteria
📈 Traders who struggle with stop placement on liquidity entries — the sweep-anchored stop placement and opposing magnet TP provide the most structurally appropriate risk parameters available for liquidity-based trading
⚠ Traders who have been stopped out by cascading waterfall bars — the cascade block on same-bar entries and the delayed reclaim system together prevent the most common failure mode of liquidity trading: entering during a genuine continuation move rather than a reversal
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. Pool states, sweep state machine, setup conditions, and confluence scoring all finalize on confirmed bars only
The pivot cluster averaging system means that as new pivots near the same level form, the pool level gradually adjusts toward the weighted average. This means the active pool level may shift slightly over time as new evidence accumulates — this is intentional and produces more accurate pool level estimates than using only the first or last pivot
The cascade block applies only to the same-bar sweep entry (Setup A). Delayed reclaim entries (Setup B) are never blocked by cascade conditions — this is by design, as the cascade's resolution in subsequent bars is precisely the entry condition for Setup B
The delayed reclaim window starts from 1 bar after the sweep (barsSinceSslSweep >= 1). Same-bar reclaims are handled exclusively by Setup A. There is no overlap between the two setup types
When useMagnetTp is on and no opposing magnet is currently active (the opposing pool has not qualified or has been swept/invalidated), the system falls back automatically to the R-multiple TP without any gap in functionality
The Choppiness Index is the only hard filter in MAGNET. All other filters (HTF, volume, structural bias) are soft confluence layers that add or do not add to the score. This reflects the intentional philosophy that quality through combination is superior to quality through suppression
Maximum 500 labels and 500 lines are rendered. Pool lines are redrawn on the last bar, so they do not accumulate over history
The indicator does not track open positions or P&L and does not connect to any broker or account
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Disclaimer
This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. All signals are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Past performance of any signal type does not guarantee future results. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who understand that price does not move randomly — it moves with purpose, toward the liquidity that institutions need, and away from it once that liquidity has been consumed. 指標

指標

S/R Zone Flip Tracker v9.5 - SAMMYS/R Zone Flip Tracker
WHAT IT DOES
This indicator detects support and resistance zones from confirmed price pivots, then tracks when price breaks through a zone and "flips" its role - broken resistance becomes support, broken support becomes resistance. Flipped zones are recolored and highlighted for a configurable number of bars, and flip events fire markers and alerts. A ladder table lists the nearest zones above and below current price, sorted by distance, so you can read the immediate S/R structure at a glance without scanning the chart.
HOW IT WORKS
1. Zone creation: Swing highs and lows are detected with ta.pivothigh / ta.pivotlow. Each confirmed pivot creates a zone centered on the pivot price. Zone half-width is either a multiple of ATR (adaptive to volatility) or a fixed dollar amount, selectable in settings.
2. Zone maintenance: Nearby zones are merged when their midpoints fall within an ATR-based merge threshold. New pivots that land inside an existing zone's dedup radius are discarded instead of stacking duplicates. Zones farther from price than a distance cap (the larger of an ATR window and a percent-of-price window) are pruned, and if more zones remain than the per-mode maximum, the farthest ones are evicted. This keeps only the structurally relevant levels on the chart.
3. Flip detection: On each confirmed bar close, every zone is tested against the break method you select. "Close" requires the candle to close beyond the zone edge plus an ATR-based confirmation buffer. "Wick" allows the high/low to trigger the break. When a zone is broken upward it is reclassified as support; broken downward it becomes resistance. The flip bar is recorded so recently flipped zones render in a stronger highlight color and are tagged "S Flipped" / "R Flipped" until the highlight age expires.
4. Flip throttling: A minimum-bars-between-flips setting suppresses repeated flip signals on the same side within a short window, reducing noise in choppy conditions.
5. Trading modes: Scalping, Intraday, Swing, and Position modes each carry their own independent parameter set (pivot length, zone width, confirmation buffer, flip throttle, zone count, distance caps). "Auto" selects the mode from the chart timeframe. "Manual" exposes a fully custom set. This lets one script behave sensibly from 1-minute charts to weekly charts without retuning on every timeframe change.
6. EMA cloud: An optional 9/21 EMA cloud (lengths configurable) provides directional context behind the zones. Green fill when fast is above slow, red when below.
NON-REPAINTING DESIGN
All flip state changes are gated on barstate.isconfirmed, so flips, markers, and alerts only occur on closed bars and do not change after the fact. The optional higher-timeframe confirmation uses request.security with a confirmed-bar offset so the higher-timeframe value never previews an unclosed HTF bar: on closed chart bars it reads the current HTF value, and on the developing bar it reads the last closed HTF value. Pivots by nature confirm only after the right-side lookback completes, so zones appear a fixed number of bars after the actual swing point - this is inherent to pivot detection, not repainting.
HOW TO USE IT
- Leave Trading Mode on Auto to let the script pick parameters from your chart timeframe, or select a mode explicitly to tune it.
- Watch the ladder table for the three nearest resistance zones above price and three nearest support zones below, with price and percent distance for each. An asterisk marks recently flipped zones.
- "Flip Up" markers print when resistance is confirmed broken and reclassified as support; "Flip Dn" marks the opposite. These are commonly read as breakout-and-retest context: a fresh flip zone is a candidate area for price to retest from the other side.
- Enable MTF Close Confirmation to require the break to hold on a higher timeframe before a flip registers, which filters out breaks that only exist on the chart timeframe.
- Three alerts are available: flip to support, flip to resistance, and any flip.
SETTINGS SUMMARY
- Per-mode: pivot left/right length, zone width ATR multiple, confirmation buffer, minimum bars between flips, max zones shown, distance caps (ATR multiple and percent).
- General: ATR length, break method (Close or Wick), dedup and merge thresholds, zone width mode (ATR or Fixed $), flip highlight age.
- Visual: zone colors for support, resistance, and recently flipped states; EMA cloud toggle and lengths; ladder table position and font size.
LIMITATIONS
- Zones confirm pivot-right bars after the swing point (inherent lag of pivot detection).
- Flip markers older than the Flip Label Lookback are not redrawn on chart reload; live alerts are unaffected.
- Requires roughly pivot length plus ATR length bars of history before the first zones appear.
- This is an analysis tool, not a trading system. It does not predict price and generates no buy/sell recommendations. 指標

Chart Setup [Ribbon + WT Crossover + Flow]TITLE
Ribbon + WaveTrend Crossover + Money Flow
SHORT TAGLINE (for the summary field)
Trend ribbon, WaveTrend/RSI crossover engine, and money-flow confirmation unified in a single indicator — with a three-layer confluence signal, multi-symbol screener table, and full alert suite.
─────────────────────────────────────────────
FULL DESCRIPTION (paste into the publication page)
─────────────────────────────────────────────
█ OVERVIEW
This indicator merges three complementary layers of market analysis into one script, so a complete trend-following workflow loads with a single "Add to chart":
• PRICE LAYER — a two-EMA ribbon cloud that defines trend regime, a slow dotted baseline for macro bias, and "Long / Short Initiated" labels printed at ribbon flips.
• MOMENTUM LAYER — a selectable oscillator engine in its own pane: WaveTrend (default) or RSI + Signal. Blue vs red crossover lines with a shaded green/red regime background.
• VOLUME-FLOW LAYER — a Money Flow wave, normalized and drawn as a compact strip along the bottom of the pane, with "V" flags when flow confirms a fresh bullish impulse.
The script uses Pine's force_overlay capability so the ribbon, labels, and candle coloring render on the price chart while the oscillator and flow strip live in the indicator's own pane — one script, two visual domains.
█ WHY THESE THREE TOGETHER (mashup rationale)
Each layer answers a different question, and each has a known weakness that the others cover:
• The EMA ribbon defines direction but lags and whipsaws in chop.
• The oscillator crossover times entries earlier but fires false signals against the trend.
• Money flow validates whether volume actually supports the move.
The value of the mashup is the CONFLUENCE signal: a diamond prints (and an alert fires) only when all three agree simultaneously — ribbon flips bullish, oscillator line 1 is above line 2, and money flow is positive (mirrored logic for shorts). Individually these are common tools; combined gating is the point of this script.
█ HOW IT WORKS
Ribbon Cloud
Fast EMA (default 20) vs Slow EMA (default 50). The area between them is filled teal when fast > slow, pink when fast < slow. A slow SMA baseline (default 200) is drawn as a dotted line for higher-order bias. Labels print on crossovers of the two EMAs.
Oscillator Engine (selectable)
• WaveTrend mode (default): esa = EMA(hlc3, n1); ci = (hlc3 − esa) / (0.015 × EMA(|hlc3 − esa|, n1)); WT1 = EMA(ci, n2); WT2 = SMA(WT1, 4). Zero midline, configurable overbought/oversold levels (default ±60). WaveTrend concept credit: LazyBear.
• RSI + Signal mode: RSI (default 14) vs its EMA signal line (default 9), with 30/50/70 levels.
The pane background shades green while line 1 > line 2 and red otherwise, making regime changes readable at a glance.
Money Flow Strip
SMA(((close − open) / (high − low)) × multiplier, period), z-score normalized, clamped, and rescaled into a fixed band at the bottom of the pane (the band position auto-adapts to the active engine's scale). A "V" flag prints a configurable number of bars after flow crosses above zero while it remains positive.
Screener Table (optional, off by default)
A compact table on the price chart tracks up to five user-selected symbols on the chart timeframe, showing each symbol's ribbon regime (BULLISH / BEARISH) and the time of its most recent flip. Uses request.security without lookahead.
█ SIGNALS & ALERTS
• Ribbon Long / Ribbon Short — EMA ribbon flip
• Osc Bull Cross / Osc Bear Cross — oscillator line crossover
• Money Flow Bull — flow crosses above zero
• CONFLUENCE LONG / CONFLUENCE SHORT — all three layers aligned (diamond markers on chart)
All are standard alertcondition() alerts and work with webhooks.
█ INPUTS
Every parameter is exposed: ribbon lengths and source, engine selection, WaveTrend channel/average/signal lengths and OB/OS levels, RSI/signal lengths, background transparency, money-flow period/multiplier/flag delay, screener symbols and toggle, and every color used by the script.
█ HOW TO USE
1. Keep the default WaveTrend engine on intraday timeframes (15m shown in the chart example); switch to RSI + Signal if you prefer a bounded 0–100 oscillator.
2. Treat the ribbon as the regime filter: only take oscillator signals in the direction of the cloud color.
3. Use the confluence diamonds as the highest-conviction trigger, and the money-flow "V" flag as an add-on/continuation confirmation.
4. Tune the fast/slow EMA pair to your instrument's rhythm (13/48, 20/50, and 21/55 are common intraday pairs).
█ NOTES & LIMITATIONS
• Signals are evaluated on bar close; the regime background and cloud color on the live bar can change until the bar closes.
• The screener table reads the chart's timeframe for all symbols and is limited to five symbols to stay within request.security limits.
• hline() accepts constants only, so the engine-dependent mid/OB/OS levels are drawn as dotted plot() lines.
• This is a trend-following toolkit: expect whipsaws in low-volatility congestion; the confluence gate reduces but does not eliminate them.
█ CREDITS
WaveTrend oscillator concept: LazyBear (WaveTrend Oscillator ).
Money-flow wave construction is inspired by the money-flow component popularized in Market Cipher-style tools.
Ribbon cloud, engine unification, normalization/band placement, confluence gating, screener table, and all code in this script are original work.
█ DISCLAIMER
This script is for educational purposes only and is not financial advice. Trading futures and options involves substantial risk of loss. Always do your own research and test any tool on historical data and paper trades before using it with real capital.
─────────────────────────────────────────────
SUGGESTED TAGS
trend, wavetrend, rsi, moneyflow, ema, ribbon, crossover, confluence, screener, intraday
CHART TO PUBLISH WITH
Use a clean 15m chart of a liquid NSE F&O stock showing one clear ribbon flip with a confluence diamond, oscillator crossover, and money-flow flag visible — TradingView requires the published chart to clearly demonstrate the script's output with no unrelated drawings or other indicators. 指標

SPY/SPX Expected Move + Session Levels📊 Expected Move + Session Levels (SPY / SPX)
Plots the day's expected move band plus the key session levels — automatic, refreshed daily before the open, nothing to enter or maintain.
🔹 Draws: Expected Move High/Low (the one-standard-deviation daily range implied by options pricing, anchored at the prior close), Prior Day High/Low, and Overnight High/Low (from the ES futures overnight session, rescaled to your chart). Optional shaded band and info table.
⚙️ Settings: every level toggles on/off individually; colors, line width, and label size are adjustable. The overnight source, session window, and IV index can be changed, and setting Horizon to 5 with VIX approximates the weekly move. Best on intraday timeframes.
⚠️ Note: the expected move is a statistical estimate, not a boundary — price is expected to close inside the band roughly two days out of three, and beyond it roughly one in three. Treat the edges as context, not walls; the market will go where it chooses. All levels are built from CBOE volatility indices, daily session data, and CME ES futures. Informational only, not trading advice. 指標

指標

Liquidity Sweep Levels ProLIQUIDITY SWEEP LEVELS PRO
WHAT IT DOES
Liquidity Sweep Levels Pro automatically detects buyside liquidity (BSL) and sellside liquidity (SSL) levels from confirmed swing pivots, draws them as horizontal lines that extend in real time, and identifies liquidity sweep events - moments where price wicks through a level to run resting stop orders and then closes back inside. It then applies a displacement-based confirmation model with confluence grading (A+/B/C) so you can distinguish genuine sweep reversals from continuation breaks.
The concept: swing highs accumulate buy stops and breakout orders above them (buyside liquidity); swing lows accumulate sell stops below them (sellside liquidity). When price pierces a level but fails to close beyond it, that liquidity has been consumed - a condition that frequently precedes a reversal toward the opposite pool. When price closes cleanly through a level instead, that is a break, and the indicator treats it as continuation rather than reversal.
HOW IT WORKS
Level detection: Swing highs and lows are identified using confirmed pivots (pivot length adapts to your chart timeframe in Auto mode, or can be set via Scalping / Intraday / Swing / Position / Manual modes). A pivot only becomes a level once fully confirmed - levels never appear retroactively.
Equal high/low clustering: New pivots forming within an ATR-based tolerance of an existing active level merge into it instead of stacking duplicate lines. Merged and retested levels grow thicker (up to 4x width), visually flagging multi-touch liquidity pools where the largest stop clusters accumulate.
Sweep vs break classification (mutually exclusive by construction):
SWEEP: wick pierces the level by at least the minimum pierce distance (ATR-based, configurable) but the bar closes back inside. Line turns dashed, sweep label prints.
BREAK: bar closes through the level. Continuation event, separate alert.
Displacement confirmation: A sweep alone does not confirm a reversal. After an SSL sweep, a later bar must close above the sweep bar's high within the confirmation window (default 5 bars) to print CONF LONG. Mirror logic for BSL sweeps and CONF SHORT. A close back through the sweep wick invalidates the setup; expiry cancels it silently.
Confluence grading: Each confirmed signal is graded using two optional filters measured on the sweep bar - EMA stack alignment (9/21/55) and relative volume (RVOL) - producing A+ (all confluences), B (partial), or C (none). A minimum-confluence gate can hard-filter signals if desired.
HOW TO USE IT
SSL SWEEP followed by CONF LONG: long setup. Stop below the sweep wick; first target is the nearest active BSL line above.
BSL SWEEP followed by CONF SHORT: short setup. Stop above the sweep wick; first target is the nearest active SSL line below.
Thicker lines mark multi-touch pools - sweeps of these levels are typically the higher-probability reversals.
The status table shows active level counts, nearest BSL/SSL prices, pending setup state with grade, and the last signal.
Six alerts are available: BSL/SSL Sweep, BSL/SSL Break, Confirmed Long, Confirmed Short.
Pine Screener support: persistent latched columns (sweep state, confirmed state, pending direction, confluence score, nearest levels, ATR distances) let you scan an entire watchlist for fresh sweep and confirmation events.
Suggested timeframes: 15m as the primary intraday chart; 5m for scalping in Scalping mode; 1H-Daily for swing context. On lower timeframes, raising Min Sweep Pierce (ATR) to 0.10-0.25 filters shallow wick grazes.
NON-REPAINTING DESIGN
All levels are created only from fully confirmed pivots, and all signals - sweeps, breaks, and confirmations - are evaluated strictly on confirmed bars. No signal, label, or line state changes retroactively. The inherent tradeoff of pivot-based detection is that a level appears only after its pivot confirms (pivot length bars after the actual swing); this is disclosed by design rather than hidden with lookahead.
SETTINGS OVERVIEW
Trading Mode: Auto (timeframe-adaptive) or fixed profiles / manual pivot length
Max Levels Per Side, ATR merge tolerance, retest tolerance
Min Sweep Pierce (ATR), swept/broken line handling
Confirmation Window, Min Confluence gate
EMA lengths, RVOL length and threshold, optional EMA plots
Full visual customization: labels, tags, colors, table position
LIMITATIONS AND NOTES
Levels require pivot confirmation, so the first bars of a session rely on levels carried from prior price action - prior-session highs and lows are typically the highest-quality pools.
Confirmation adds deliberate latency: the entry reference is the confirmation close, not the sweep close. This trades a later entry for a much lower false-positive rate.
This indicator identifies liquidity structure and event conditions. It is an analysis tool, not a trading system, and does not guarantee outcomes. Always apply your own risk management. 指標

MR8 Trend Direction & Signal IndicatorThe MR8 is a dynamic trend-following indicator built on the McGinley Dynamic moving average — one of the most responsive and self-adjusting smoothing algorithms available. Unlike traditional EMAs that can lag or whipsaw in changing market conditions, the McGinley Dynamic automatically adapts its speed based on market velocity, resulting in cleaner, more reliable signals.
How It Works
MR8 plots two McGinley Dynamic lines — a faster Ribbon 8 and a slower Ribbon 9. When the faster line crosses above the slower line, the ribbon turns white, signaling bullish momentum and a potential long entry. When the faster line crosses below, the ribbon turns grey, signaling bearish momentum and a potential short entry. This crossover method filters out the noise and false flips that plague single-line slope-based indicators.
Built-In Stop Loss
MR8 includes an optional visual stop loss line calculated directly from the ribbon's current value — 2% above the line for shorts, 2% below for longs. Toggle it on in settings to see exactly where your risk level sits relative to the indicator itself, on any timeframe.
Alert Ready
MR8 includes two built-in alert conditions — one for long signals and one for short signals — with a webhook-compatible JSON message format. Connect directly to any automated trading bot or notification system with zero additional configuration.
Best Used On
BTC/USD and BTC/USDT
55 minute, 1 hour, and higher timeframes
Futures and spot markets
Settings
Ribbon 8 Length — controls the speed of the faster line (default 12)
Ribbon 9 Length — controls the speed of the slower line (default 21)
Stop Loss % — distance from the ribbon for the optional SL line (default 2%)
Show Stop Loss Line — toggle the SL visualization on or off 指標

指標

EMA Pro+ Suite# EMA Pro+ Suite
**A multi-layer EMA confluence framework for reading market state at a glance.**
---
## What It Is
EMA Pro+ Suite is an overlay indicator built around three exponential moving averages — a Fast (10), Mid (20), and Slow (50) EMA — organized into a structured three-layer state engine that tells you the current market regime, momentum direction, and whether price is in or out of alignment with that regime. Rather than treating each EMA in isolation, the suite reads them together as a system and surfaces a single, coherent market state at all times.
A corner dashboard table updates in real time, giving you an instant read on bias, momentum, alignment, EMA slopes, and price extension — without having to scan the chart manually.
---
## How It Works
The indicator evaluates three distinct layers on every bar:
**Layer 1 — Bias (Trend Regime)**
Defined by price relative to the 50 EMA. Price above = bullish bias. Price below = bearish bias. This is the macro filter — it determines which direction setups should be taken in.
**Layer 2 — Momentum**
Defined by the 10 EMA relative to the 20 EMA. When the fast EMA is above the mid EMA, momentum is bullish. When below, momentum is bearish. Momentum alignment with bias is the confirmation layer.
**Layer 3 — Price vs Fast EMA**
When bias and momentum are aligned but price is on the wrong side of the 10 EMA, the indicator flags a potential pullback or exhaustion condition. In a full bull regime, price dipping below the 10 EMA may represent a high-quality entry opportunity — or an early warning of trend exhaustion. Context determines which.
**Slope Engine**
Each EMA is evaluated for slope using a configurable lookback. RISING / FLAT / FALLING is displayed per EMA in the dashboard. A momentum flip on flat EMAs carries significantly less weight than one on rising or falling EMAs — this is critical for filtering out noise in ranging conditions.
**Price Distance from 50 EMA**
Tracks how extended price is from the slow EMA as a percentage. Large positive or negative readings flag mean reversion risk.
**Bar & Background Coloring**
- Green background + green bars = full bull alignment
- Red background + red bars = full bear alignment
- Yellow bars = conflicting bias and momentum (mixed / transitional state)
- Aqua bars = bull regime, price pulling back below 10 EMA
- Fuchsia bars = bear regime, price popping above 10 EMA
**Cross Signals**
- `M↑` (green) — 10 EMA crossed above 20 EMA in bull zone. Aligned, higher conviction.
- `M↓` (red) — 10 EMA crossed below 20 EMA in bear zone. Aligned, higher conviction.
- `M↑ 🐻` (orange) — Bullish momentum flip firing in bear zone. Counter-trend, lower conviction.
- `M↓ 🐂` (orange) — Bearish momentum flip firing in bull zone. Counter-trend, lower conviction.
**Multi-Timeframe Support**
All three EMAs can be calculated on a higher timeframe and plotted on the current chart. Use this to anchor your bias to the HTF structure while reading entries on a lower timeframe.
---
## Possible Ways to Use It
**Trend Following**
Wait for full alignment — green background, green bars, all three slopes RISING. Only look for long entries. Use the 10 EMA pullback (aqua bars) as a potential entry trigger. Reverse logic for shorts.
**Momentum Flip Entries**
Use aligned `M↑` / `M↓` signals (green/red) as entry triggers when bias and slope confirm. Discard or fade counter-trend orange signals unless you have a specific reason to trade against the regime.
**Regime Filter for Other Systems**
Use the bias layer (price vs 50 EMA) as a filter for another strategy. Only take long signals from your primary system when EMA Pro+ shows bull bias, and vice versa.
**HTF Confluence**
Set the EMA Timeframe to a higher timeframe (e.g. 4H or Daily) while trading on a 15m or 1H chart. The dashboard will show the HTF regime, giving you a structural anchor for your intraday reads.
**Avoiding Chop**
When all three slopes read FLAT and bars are yellow (mixed alignment), the market is in a transitional or ranging state. Consider standing aside or reducing position size until a clear regime re-establishes.
**Mean Reversion Awareness**
When Dist 50 shows a large positive or negative reading, price is extended from the slow EMA. In trending markets this can persist — but it raises the bar for adding to positions and flags potential snapback risk.
---
## Settings
| Setting | Description |
|---|---|
| EMA Timeframe | Blank = current chart timeframe. Enter any TF (e.g. 60, 240, D) for MTF mode. |
| Fast / Mid / Slow EMA Length | Default 10 / 20 / 50. Fully adjustable. |
| Slope Lookback | Number of bars used to calculate EMA slope. Increase on lower timeframes to reduce flat readings. |
| Show EMA Lines | Toggle the three EMA plots. |
| Show Bias Background | Toggle the green/red background tint. |
| Color Bars by State | Toggle bar coloring. |
| Show Cross Signals | Toggle M↑ / M↓ labels on chart. |
| Show Dashboard Table | Toggle the corner HUD. |
| Table Position | Top Right / Top Left / Bottom Right / Bottom Left. |
| Bar Close Reminder Alert | Fires a reminder alert on every bar close to check the setup. |
---
## Alerts
- Momentum Flip Bullish — Bull Zone (aligned)
- Momentum Flip Bullish — Bear Zone (counter-trend)
- Momentum Flip Bearish — Bear Zone (aligned)
- Momentum Flip Bearish — Bull Zone (counter-trend)
- Price Reclaimed 50 EMA (bias flipped bullish)
- Price Lost 50 EMA (bias flipped bearish)
- Bull Pullback Signal (bull regime, price below 10 EMA)
- Bear Pullback Signal (bear regime, price above 10 EMA)
- Bar Close Reminder
---
## Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice, investment advice, or a recommendation to buy or sell any asset. All trading involves substantial risk of loss. Past performance of any signal, strategy, or system is not indicative of future results.
EMA Pro+ Suite is a tool to assist with technical analysis — it does not predict price, guarantee accuracy, or remove the inherent uncertainty of financial markets. No indicator eliminates risk. You are solely responsible for your own trading decisions.
Always conduct your own research, apply proper risk management, and consider consulting a licensed financial professional before making any trading decisions. Only trade with capital you can afford to lose. 指標

SmartTraders Research Labs -Geometric Trend Lines - GTLGEOMETRIC TREND LINES (GTL)
GTL is a research indicator that studies the geometry of price structures. It freezes structural anchors in the past, stretches two right-triangles between those anchors and the live candle, and reads their angles inside a dimensionless coordinate space — then learns from every completed structure to estimate, with calibrated statistics, which way the current one is leaning. It is a structural analysis and research tool, not a trading system.
█ STEP OUT OF THE CHART PLANE
Every trader has drawn a trendline and called it steep. Steep compared to what? Stretch the chart window and the angle flattens. Jump from Bitcoin to a quiet blue-chip stock and a "45-degree rally" becomes a completely different animal. The chart plane mixes two quantities that were never meant to share axes — price and time — so any angle drawn on it is a property of your zoom level, not of the market.
My standard, before any geometry begins, is to take the shape out of the chart plane entirely. GTL maps every point into an Isotropic Coordinate System (ICS) where both axes are pure numbers:
y = log(price) / σ
x = bars / lookback
Price is expressed in units of the instrument's own volatility (σ, estimated with the Yang-Zhang method over 500 bars), and time in units of the analysis window. Nothing on either axis carries dollars, lira, satoshis or minutes anymore.
In this space, a degree finally means something. The angle
θ = atan(Δy / Δx) × 180 / π
is intrinsic: a 60° ceiling angle on gold's 30-minute chart describes the same geometric event as a 60° ceiling angle on a 3-minute meme-coin chart. The instrument's personality — its price level, its tick size, its temperament — has been normalized away, and what remains is pure trajectory. Everything else in this indicator stands on that ground.
The same rally, two zoom levels, two different angles — and on the right, the dimensionless ICS home where θ finally becomes a property of the market, not of your screen.
█ THE TRIANGLE — A SHAPE THAT CARRIES DATA
Of all the shapes humanity has leaned on, the triangle is the one that never let us down. It raised the pyramids, it holds every bridge truss and roof frame you have ever walked under, and it is the only polygon that cannot be deformed without changing the length of a side. Engineers call that property rigidity. I read it as trustworthiness — a triangle does not lie about its geometry.
That is why I chose it as the measuring instrument. On every structure, GTL constructs two right-triangles inside ICS:
The ceiling triangle — from the frozen HH anchor to the live candle's high.
The floor triangle — from the frozen LL anchor to the live candle's low.
Each triangle is not a drawing; it is a container. Four measurements live inside it at every bar:
θ — the signed angle of the hypotenuse, the indicator's core reading
Δy — the signed magnitude of the move in volatility units
area — the geometric surface the structure has swept
centroid — the shape's center of mass in ICS
While price grinds below a frozen ceiling, the ceiling angle sinks degree by degree into negative territory. When price presses up from a frozen floor, the floor angle climbs. Two triangles breathe with the market — one watching from above, one from below — and their angles are the raw language everything downstream of this indicator speaks.
One triangle watches from above, one from below — and θ, Δy, area and centroid live inside each of them.
█ AN ANCHOR IN THE PAST — MEASURING FROM CALM WATER
Picture a storm at sea, and two people trying to measure the waves. One stands on the shore. One sits in a boat, right among them. The observer on the shore, feet on solid ground, reads the height of every wave with precision — however wild the water gets, the ground beneath him does not move. The observer in the boat rises and falls with the very thing he is trying to measure; every number he writes down is contaminated by his own motion.
Most swing-based tools are the observer in the boat. Their reference points — the latest swing high, the latest swing low — are redefined by the market again and again, so any angle or distance measured from them mixes two movements at once: the price's, and the reference's own.
GTL plants its observer on the shore. At the birth of every structure, the highest high and the lowest low of the lookback window are frozen — locked to a fixed bar in the past — and from that moment they do not move. Every angle is measured from calm, settled water toward the storm of the live candle. The reading stays pure: when θ changes, it is because price moved, and for no other reason.
The anchors hold until price closes beyond one of them. That close is the break — the moment the structure completes, is archived with its full geometry, and a fresh pair of anchors freezes for the next chapter.
One naming note, so the chart reads correctly: what GTL labels HH and LL are these frozen anchor levels, not the traditional trailing swing highs and lows.
Solid ground measures the storm precisely; a boat measures mostly itself — GTL is the observer on the shore, and the frozen box below is exactly that shore.
█ WHY 23 — A PRIME WINDOW
The lookback window — the number of bars GTL scans before freezing a new pair of anchors — defaults to 23. The choice is arithmetic, not aesthetic.
23 is prime: its only divisors are 1 and itself. Stated as a condition,
gcd(23, k) = 1 for every k < 23
For a rolling window, that matters mechanically. If a periodic component of length k shorter than the window is present in the data, the window boundary does not keep meeting that component at the same phase. Because 23 and k are coprime, the alignment steps through all k possible phase offsets before it repeats. A composite window gives that protection away: 24 divides cleanly by 2, 3, 4, 6, 8 and 12, so components at those lengths can meet repeated window boundaries at the same phase, allowing anchor placement to inherit regularity from the measuring frame itself.
Engineering solved the same problem with hunting-tooth gear design: tooth counts are chosen coprime so each tooth eventually meshes with every counterpart, instead of the same pairs meeting forever and wearing a repeated pattern into the metal. Periodical cicadas offer a biological analogy — 13- and 17-year emergence cycles, both prime, reduce overlap with shorter recurring cycles.
This is a design principle stated in number theory, not a performance claim. A prime window does not make GTL better by itself, and it does not prove anything about future price. It simply reduces one avoidable source of arithmetic resonance, so repetition in the readings is less likely to be created by the measuring window. The lookback remains a user input; 23 is the default I stand behind.
Every window from 20 to 25 shares a divisor with at least one shorter cycle length — 23 is the only empty row, which is exactly why it is the default.
█ HOW THIS SERIES IS BUILT — CSV OUT, ANALYSIS IN
This episode follows a working method I now treat as the standard for the whole series: nothing ships on intuition alone. The indicator exports its own internal life — every angle, every structure, every break — as plain columns in the Data Window, ready for CSV export. Before publication, those exports were analyzed with AI assistance across a deliberately diverse panel:
7 instruments × 2 timeframes = 14 datasets
gold, Bitcoin, Tesla, Brent crude, Turkish Airlines, Dogecoin, Saudi Aramco
30-minute and 3-minute bars — roughly 550,000 bars, ~30,000 completed structures
What came back from that study entered the code as design decisions, not as promises. Exactly five constants in the learning layer are hard-coded. They are not presented as universal truths or performance guarantees; they are documented design constants selected from the development study and kept fixed so the live model remains transparent and reproducible:
CAL_LAMBDA = 0.999 — fading-factor decay for the calibration counters
CAL_JUMPTH = 2.0 — empirical jumpiness threshold between steady and choppy estimates
CAL_MINW = 30 — minimum effective sample weight before a calibration cell is trusted
CAL_ROLL = 20 — length of the live recent-record window
JUMP_WIN = 5 — bars used for the short-term stability measurement
The methods behind the layer are standard enough to be named — fading-factor prequential counting for online calibration, adaptive Gaussian KDE for local probability estimation, and Kish-style effective sample size for weighted evidence — and the next section walks through each of them with its reference. The fixed values above are GTL's calibrated defaults from that study, not claims that these numbers are optimal for every market, symbol, or timeframe. Everything else the statistics need — bandwidth, confidence, significance — is computed live from the chart's own history.
Two honest disclosures. First, this analysis is development documentation, not an independent audit, and this description makes no accuracy claims from it. Second, the same door is open to you: every column used in that study is exported by the script itself, so you can pull the CSV from your own chart and put the same questions to any tool you trust.
The build loop of this series: the script exports its own life as CSV, analysis turns it into five documented design constants, and the same door stays open to every user.
█ FROM GEOMETRY TO STATISTICS — THE MATH, WITH ITS REFERENCES
An angle is a measurement; an estimate is a statement. Moving from one to the other honestly requires statistics. GTL does not present this layer as a private invention. It combines established statistical components, named here with their sources, and applies them to one specific object: the geometry of frozen price structures.
Volatility normalization. The σ in the ICS y-axis comes from the Yang-Zhang volatility estimator (Yang & Zhang, Journal of Business, 2000). It uses open, high, low and close data, including overnight, open-to-close and Rogers-Satchell-style range components. In GTL, this is what lets angles be measured in volatility-normalized space instead of raw price units.
Local probability. While a structure is alive, its current angle pair (θC, θF) is compared with archived breaks. Each historical break receives a Gaussian weight that decays with distance in angle space. This is a Gaussian KDE-style local weighting scheme. Its bandwidth follows Silverman's rule-of-thumb logic for two dimensions, h = σ̂ · n^(−1/6), recomputed from the chart's own history. Nothing is manually tuned.
Honest sample size. Weighted evidence can look larger than it really is: many tiny weights are not the same as many strong neighbors. GTL therefore uses the Kish effective sample size (Kish, Survey Sampling, 1965),
n_eff = (Σw)² / Σw²
to estimate how much effective evidence the weighted neighborhood actually contains.
Probability with humility. The weighted up/down vote is passed through a Beta(1,1) posterior, using n_eff as the effective evidence scale. The label only speaks when the posterior mean clears a one-sided 95% normal-approximation check against the 50/50 baseline. When that threshold is not met, the label does not force a call; it simply says the structure is too close to call.
Verification. The principle that probability forecasts must be scored against what actually happened goes back to Brier's 1950 paper in Monthly Weather Review, "Verification of Forecasts Expressed in Terms of Probability." In GTL, every estimate is graded when the break reveals the outcome.
Online calibration. Graded outcomes update fading-factor prequential counters, following the stream-learning evaluation framework of Gama, Sebastião and Rodrigues (Machine Learning, 2013). Fresh evidence receives more weight, while older evidence decays with λ = 0.999. The display can therefore show both the raw estimate and how estimates of the same kind have behaved on the current chart.
Stability. GTL also tracks estimate "jumpiness": the population standard deviation of the last five probability readings. The term and the general idea come from ensemble-forecast consistency research, especially Zsóter, Buizza and Richardson (Monthly Weather Review, 2009). GTL uses a chart-specific adaptation of that idea: a steady estimate and a choppy estimate are labeled differently, because a choppy estimate may still flip.
Nothing in this chain is exotic, and none of it is a performance guarantee. The original part is where the chain is pointed: at frozen structural geometry, measured inside a dimensionless coordinate space.
█ WHAT YOU SEE ON THE CHART
Frozen anchors. Two dashed horizontal lines mark the frozen HH and LL of the current structure, each with its exact level, and a dotted vertical line marks the anchor bar in the past where the freeze happened. These lines do not trail price — that is the whole point.
Geometric trend lines. Two solid lines run from the anchors to the live candle: ceiling from HH to the current high, floor from LL to the current low. They are the triangle hypotenuses. When the two lines converge, they stop at their intersection instead of crossing. The live θC and θF values sit as labels at the anchor.
Structure boxes. Every completed structure is archived as a box: one border color for structures that broke up, another for structures that broke down, and a dashed box for the structure still being built. How many past boxes you see is your choice.
Angle map. A table sorts the recent breaks by their break angles — ceiling side and floor side, each with direction and duration. An arrow row shows where the current live reading ranks among them, so you can literally see where "now" sits in the break history. The footer row carries the up/down estimate; once the calibration cell has enough samples, it shows two numbers, raw → calibrated.
Estimate label. A label floats ahead of the last candle and speaks in sentences: which direction the odds favor, what signals of this kind have actually done on this chart (or the estimated odds while calibration is still warming up), whether the signal is steady or choppy, and a living record — how many of the last 20 estimates were right. It only takes a side when the significance check passes; otherwise it says, honestly, that the structure is too close to call.
The pending phase. Between a break and the next freeze, preview anchors appear as dotted gray lines, the table shows an hourglass, and the estimate quietly switches to a second model trained on pending-phase angles to estimate the direction of the NEXT structure's break.
One disclosure that matters: on the live bar, angles and estimates can change until the candle closes. Everything the indicator learns from — and every alert it fires — reads confirmed bars only.
█ UNDER THE CHART — 29 EXPORTED COLUMNS
Everything drawn above is only a rendering. The numbers underneath are all exported to the Data Window, which means TradingView's "Export chart data" hands you a complete CSV audit trail:
Live geometry & estimate, every bar:
Ceiling θ / Floor θ — the two live angles in ICS
Probability UP / Probability DOWN — the per-bar estimate (these two are also plots, so you can build threshold alerts on them directly)
Log Jump Bar — the stability (jumpiness) of the estimate
Log Cell Bar — which calibration cell this bar fell into
Structure snapshot, printed on every break bar:
Str Duration — how many bars the structure lived
Str Frozen HH / Str Frozen LL — the anchor levels
Str Max High / Str Min Low — the extremes reached inside
Str θ Ceil @Max / Str θ Floor @Min — the angles at those extremes
Str Break Dir — +1 up, −1 down
Estimate audit trail, on birth and break events:
Log Event — 1 = birth, 2 = break, 3 = both on one bar
Log θC Birth / Log θF Birth / Log P Birth / Log Sig Birth / Log nEff Birth — the forecast made the moment the structure was born
Log θC Pend / Log θF Pend / Log P Pend / Log Sig Pend / Log nEff Pend — the pending-phase forecast carried into this break
Log Hit Birth / Log Hit Pend — each forecast graded 1 or 0 against the actual break
Log Acc Birth / Log Acc Pend — the running accuracy of each estimate type
This is the same door the development study walked through. Export the CSV from your own chart, open it in a spreadsheet, in Python, or hand it to an AI assistant — and audit every sentence the label has ever told you.
█ SETTINGS THAT STAY OUT OF YOUR WAY
The settings menu is deliberately small: the lookback window, a few visual choices — colors, transparency, border style, table position, label size and offset, how many past boxes to show — and simple on/off toggles. That is the whole surface, because everything statistical is computed live from the chart itself: the KDE bandwidth from Silverman's rule, the effective sample size from Kish's formula, significance from the posterior, the calibrated rate from the fading counters, the pending-phase model switching in and out on its own. There is nothing to tune, and that is by design. The five documented constants from the development study are the only fixed numbers in the machine.
█ ALERTS
Three alerts cover the estimate's life cycle: Signal turns up, Signal turns down, and Signal gets choppy. Each fires once, on entering its state, and reads only confirmed bars — so what fired is what you will still see on the closed candle. For custom thresholds, Probability UP and Probability DOWN are exposed as plots: build Crossing Up or Greater Than alerts on them directly in TradingView's alert dialog, at any level you like, as many as you like. Recommended frequency: Once Per Bar Close.
█ SEVENTEEN LANGUAGES
The angle map, the anchor labels and the estimate label speak 17 languages: English, Türkçe, Deutsch, Italiano, Français, Español, Bahasa Indonesia, Bahasa Melayu, Ελληνικά, Русский, 中文, 日本語, 한국어, हिन्दी, العربية, فارسی and עברית. Right-to-left scripts — Arabic, Persian, Hebrew — mirror the table layout automatically. One honest limitation: input settings and alert messages stay in English, because Pine requires compile-time constant strings there.
█ WHAT THIS IS — AND WHAT IT IS NOT
GTL is a research and structural analysis tool. It measures the geometry of frozen price structures, keeps honest statistics about its own estimates, and shows you both — the raw number and the track record, side by side. It is not a trading system, its estimates are not trade signals, and nothing in this script or this description is financial advice. The calibrated rates describe what has already happened on your chart's own history; they are not a promise about the next bar. On the live candle, readings can change until the close — confirmed statistics and learning update on closed bars only.
Read it the way it was built to be read: as an instrument standing on the shore, measuring the storm. 指標

指標

Strata - Regime Segments & Volume ProfileThis indicator segments price with a model-based online change detector, classifies every segment into a six-cell regime grid, and renders for each segment an exact regression line, a sigma channel, and a slanted volume profile. One standard runs everything: the segment is the state — there is no second bar-by-bar machine, no smoothing triggers, no dwell locks. The CUSUM cut threshold is the only persistence mechanism.
Detection. A Kalman local linear trend filter estimates a drifting level and a drifting slope, so a steady trend is what the model expects and trend drift is not mistaken for structural change. Each bar the filter emits the one-step innovation, standardized by its own recursively estimated variance. A two-sided CUSUM watches the standardized innovation mean; when it crosses the threshold the trend has structurally changed and a segment is cut, backdated to where the winning CUSUM run started, so the boundary lands where the change began rather than where it was detected. Cuts that would close a segment shorter than the minimum length are discarded and merged, so tiny fragments cannot exist. After an accepted cut the Kalman covariance is briefly inflated for faster re-adaptation. A second CUSUM on the innovation dispersion always runs and fires an alert on volatility shifts; a switch lets it cut segments too. The threshold h is derived from the data by default: you state the average segment length you want, and a feedback controller nudges h bar by bar until the realized average matches it — the panel shows the current h and the realized length so you can watch it converge. A fixed-h mode remains available; with the standard allowance k = 0.5, h = 4 corresponds to an average false-alarm interval of roughly 168 bars and h = 5 to roughly 465.
Classification. Direction is the segment's OLS slope per bar in units of the segment's mean daily sigma; below the dead zone in magnitude the segment is flat, so a violent sideways stretch is not forced into a bullish or bearish color. Tempo is the segment's mean volatility percentile against one threshold. The grid is direction times tempo: Up, Flat, Down crossed with Calm and Hot, six cells. Finalized segments get their one-shot call at the cut; the active segment is classified from its own tentative regression from birth, and the call may drift while the segment is young — that is accepted by design, since tentative regressions are tentative. A dashed vertical divider is drawn at every backdated cut and is the one authoritative boundary marker: between two dividers there is exactly one segment — one regression line, one profile, one state label. Labels and flat-state strokes adapt to the chart theme so they stay visible on light and dark backgrounds.
Volume profile. Volume is binned in residual space — by distance from the segment's regression line — and drawn as parallelogram bars running parallel to the channel, anchored to the segment's right edge and growing leftward, so a profile always butts against its own boundary. Bin width follows the Freedman–Diaconis rule with volume-weighted quantiles and the Kish effective sample size, with a fixed-bin fallback. The point of control and a seventy percent value area are drawn parallel to the fit. Profile bars use a direction-only palette, green up, red down, grey flat, with adjustable opacity. Segments too short to support a meaningful distribution simply skip the profile, and older segments are demoted to line plus POC to respect drawing limits.
Gauges. Pressure reads how close the active segment's readings sit to their classification boundaries, plus CUSUM cut progress when it opposes the current direction, normalized to a percentage with the implied target state. It is a gauge, not a calibrated probability — it catches gradual drifts only, and a cut can fire and reclassify from zero pressure. Hist. next reports the empirical next-state distribution from this chart's own transition history; the sample count is shown and should be read. Hidden data-window plots expose State, Direction, Tempo, and state age for use in the Pine Screener, and alerts cover segment cuts, volatility shifts, state changes, and every direction or tempo transition.
Scope. All decisions run on confirmed bars only: nothing repaints, finalized drawings are created once and never moved, and the active segment is the only mutable object. This is an online, causal detector — detection delay is irreducible for any causal method, and globally optimal offline methods such as PELT place breakpoints more accurately in hindsight. Treat segments, states, and gauges as context, not trade signals. The detection core is shared with the companion indicator "Strata Core"; keep the constants in sync if you run both. The presentation concept — per-segment regression channels and a trend-slanted volume profile — is inspired by "Dual Log Regression Channels" by BigBeluga and "Volume Cluster Profile (VCP)" by Zeiierman; the detection, classification, and estimation pipeline is an independent implementation of the methods below. Methods follow standard results in filtering, change-point detection, and density estimation (Kalman 1960; Harvey 1989; Page 1954; Moustakides 1986; Hinkley 1971; Lorden 1971; Mehra and Peschon 1971; Severo and Gama 2010; RiskMetrics 1996; Freedman and Diaconis 1981; Kish 1965; Maheu and McCurdy 2000; Ang and Timmermann 2012; Pagan and Sossounov 2003). 指標

指標

指標

HTF C2 Sweeps & Candles (v6 Streamlined)First and foremost, huge thanks and full credit to the original creator, wintonbanks, for the foundational logic and concept of this indicator. This script is a modified and optimized version of their excellent work. You can find the original, feature-rich indicator here:
This version has been published to offer a more streamlined, visually minimal experience while upgrading the backend to Pine Script v6.
Key Changes from the Original:
Pine Script v6: Upgraded the code to v6, including logic optimizations to prevent compiler warnings and improve performance.
Simplified Global Styling: Removed the individual timeframe line settings. Sweep lines are now controlled via a single "Global Styling" menu for a faster setup and cleaner settings panel.
Dynamic Sweep Labels: Added a custom labeling engine. Instead of drawing lines with side labels, this version dynamically calculates the center of active sweep lines and places clean, customizable labels (with background and text color options) directly on them.
Decluttered Chart: Completely removed the Previous High/Low lines, line extension toggles, and timeframe dots. This version focuses strictly on core sweeps and PO3 candles.
Custom Alert Sessions: Replaced the hardcoded London/New York session alert toggles with native Pine Script session inputs, allowing you to define your exact custom alert windows and timezones. 指標

指標
