All Session Levels (Futures) - Asia, London, Overnight, NY PriorA session-levels built for trading during the New York session on the Micro Dow (MYM), though it works on any index future or intraday symbol. The core idea: the Asia and London sessions are thin and choppy on the Dow because the underlying US cash market is closed; rather than trading those sessions directly, this indicator plots the key levels they leave behind and helps you trade them when real volume arrives at the 9:30 ET open.
What it plots
Asia session high/low (default 8:00 PM–2:00 AM ET) — overnight liquidity pools.
London session high/low (default 3:00 AM–8:00 AM ET) — the more recent, more relevant overnight range.
Overnight high/low (ONH/ONL) — the full overnight range.
Prior day NY high/low/close — the most-watched daily references, drawn per-day so they don't stretch across chart history.
9:30 NY open marker and a shaded 9:30–10:30 killzone highlighting the highest-probability window.
Auto-detected supply and demand zones — the script identifies base-then-impulse departures (a tight consolidation candle followed by a strong directional move) and draws the base as a zone. Zones remain on the chart only until mitigated: once price closes fully back through a zone, it's automatically removed, so you only ever see live, untested zones.
Info dashboard (top-right) listing every current level and its price.
Alerts
Eight built-in alert conditions: level breaks (London, Asia, and overnight highs/lows) and zone taps (when price enters the most recent unmitigated demand or supply zone). Create them via the alarm-clock icon after adding the indicator; "Once Per Bar Close" is recommended for the break alerts.
How to use it
Set your chart timezone to America/New York (or adjust the timezone input to match your data feed).
Run it on an intraday timeframe, 3m to 15m is the sweet spot; 5m is a good all-round default.
Before the open, review the plotted overnight and prior-day levels.
In the 9:30–10:30 window, watch for price interacting with those levels: a clean break-and-hold for continuation, or a failed break that snaps back inside the range for a reversal.
Use the confluence of a zone tap, price extended past VWAP, and volume for entry confirmation.
Notes and settings
All session windows are fully adjustable in the settings, as are colors, and the supply/demand sensitivity (impulse strength, base size, lookback, and max zones per side).
The overnight window contains the Asia and London windows by design, so ONH/ONL will often overlap those extremes — toggle it off if you prefer less overlap.
The zone-tap alerts track only the most recent unmitigated zone on each side to avoid alert spam.
Disclaimer
This is an analysis and charting tool, not a trading system or financial advice. It does not generate buy/sell signals or guarantee any outcome. Levels and zones are calculated from historical price and session times; past behavior does not predict future results. Always do your own analysis and manage your own risk. Wskaźnik

Liquidity Sweep Ledger [EmpArchitect]█ OVERVIEW
Liquidity Sweep Ledger maps buy-side and sell-side liquidity levels, then tracks what happened after those levels were swept.
Most liquidity tools mark the sweep and stop there.
This script keeps a simple ledger:
• Liquidity level active
• BSL / SSL swept
• Reclaimed or not reclaimed
• Displacement after sweep
• Structure shift after sweep
• No follow-through
• Dual sweep / ambiguous sweep
It is a structure-context tool. It does not provide entries, stop losses, targets, risk/reward, probability scores, or trade signals.
█ WHAT IT MAPS
Buy-side liquidity — BSL:
A level above price formed from confirmed swing highs, equal-high clusters, previous day high, or previous week high.
Sell-side liquidity — SSL:
A level below price formed from confirmed swing lows, equal-low clusters, previous day low, or previous week low.
When price sweeps one or more levels, the script records the sweep and tracks its lifecycle.
█ HOW IT WORKS
The script uses confirmed pivots only. A swing high or swing low becomes an active liquidity level only after the pivot is confirmed.
Sweep detection uses an ATR-scaled penetration buffer. Price must trade beyond the liquidity level by the selected minimum threshold before the level is marked as swept.
If several same-side levels are swept on one candle, the script aggregates them into one event, such as BSL swept x2 or SSL swept x3.
After a sweep, the script tracks whether price reclaims the level within the selected reclaim window.
For post-sweep response, the script checks for directional displacement using body size relative to ATR and body size relative to candle range.
For structure shift, the script freezes the latest confirmed opposite-side internal pivot at the time of the sweep and then checks whether price closes beyond that reference later.
Same-candle or sequential two-sided sweeps are marked as dual / ambiguous instead of being treated as directional events.
█ SWEEP LIFECYCLE
The script separates the sweep from the response.
A sweep can become:
• Pending reclaim
• Reclaimed
• Taken / no reclaim
• Displaced
• Structure shifted
• No follow-through
• Dual sweep / ambiguous
This matters because not every liquidity sweep produces the same response. Some levels are swept and reclaimed. Some are taken without reclaim. Some lead to displacement. Some produce no follow-through.
The script records the state instead of forcing a directional interpretation.
█ LIQUIDITY SOURCES
Included sources:
• Swing high / swing low liquidity
• Equal-high / equal-low clustering
• Previous day high / previous day low
• Previous week high / previous week low
Default source settings:
• Swing liquidity: ON
• Equal-high / equal-low clustering: ON
• Previous day high/low: ON
• Previous week high/low: OFF
Previous week high/low is included but disabled by default. Review it on your market/timeframe before enabling it.
█ DASHBOARD AND LEDGER
The dashboard shows the current liquidity-sweep ledger:
• Last sweep
• Source
• Reclaim state
• Response state
• Age
• Active BSL count
• Active SSL count
• Compact last-sweeps ledger
The ledger is the main feature. It helps review what happened after liquidity was taken.
Response detail is recorded in the ledger and dashboard. On-chart response labels are optional and are off by default to keep the chart clean.
█ ALERTS
Included context alerts:
• BSL swept
• SSL swept
• Dual sweep
• Reclaimed
• Displaced
• Structure shift
• Taken / no reclaim
• No follow-through
Alerts are structure-context alerts only. They are not trade signals.
█ TESTING NOTES
Tested during development on BTCUSDT 1H and XAUUSD 1H.
Other markets and timeframes may require adjustment of pivot length, ATR penetration, reclaim window, and response settings.
█ PAIRS WITH
Smart Liquidity Map — broader liquidity map: EQH/EQL zones, PDH/PDL, and PWH/PWL reference levels.
Liquidity Sweep Ledger focuses on the next step: once liquidity is swept, did price reclaim, displace, shift structure, or fail to follow through?
█ IMPORTANT LIMITATIONS
• A liquidity sweep is not a trade entry.
• A reclaim is not a trade signal.
• Displacement does not guarantee continuation.
• Structure shift is a mapped event, not a recommendation.
• Results depend on pivot length, ATR settings, market, and timeframe.
• The script is designed for chart review, not automated trading.
█ NOTES
• Pine Script v6
• Public and open-source
• Built by EmpArchitect
• Educational structure-context tool only
• Not financial advice
• Not a signal service
█ CORE IDEA
Liquidity Sweep Ledger maps liquidity sweeps and tracks whether price reclaimed, displaced, shifted structure, or produced no follow-through.
It gives the map.
The trader makes the decision. Wskaźnik

Wskaźnik

srd786-MTF Day Trading IndicatorSrd786-MTF Day Trading Indicator
Complete User Guide
Full Documentation with Input Descriptions, Functionality, Best Practices & Recommended Parameters
Table of Contents
1. Overview
2. Core Concept: Timeframe Alignment
3. Input Parameters
4. Functionality Breakdown
5. Signal Generation Logic
6. Information Tables
7. Alert Conditions
8. Best Practices
9. Recommended Parameter Values
10. Common Mistakes to Avoid
11. Appendix A: Color Coding Guide
12. Appendix B: Glossary
13. Appendix C: Quick Reference Card
14. Version Information
15. Support & Feedback
1. Overview
The srd786-MTF Day Trading Indicator is a sophisticated Multi-Timeframe (MTF) Day Trading System specifically designed for trading precious metals futures.
Symbol Description
MGC! Micro Gold futures
SIL! Micro Silver futures
Key Features
• Three-timeframe analysis for comprehensive market understanding
• MTF alignment scoring system for trade confidence filtering
• Session-based trading levels (ComeX hours)
• Automatic commodity-specific adjustments
• Real-time information tables
• Multiple alert conditions for automation
2. Core Concept: Timeframe Alignment
The indicator uses three timeframes for comprehensive market analysis:
Timeframe Purpose Default Setting
High TF (HTF) Determines overall trend direction Daily (1D)
Intermediate TF (ITF) Identifies trade setups 4-Hour (240)
Lower TF (LTF) Provides precise entry timing 1-Hour (60)
The Alignment Principle
The core principle is “alignment” — only take trades when all three timeframes agree on direction, which significantly improves probability. This reduces false signals and increases win rate by ensuring the larger market context supports your trade.
3. Input Parameters
3.1 MTF Settings
Input Description Default Options
High TF (Trend) Higher timeframe for trend identification 1D 1D, 1W, 240
Intermediate TF (Setup) Intermediate timeframe for confirmation 240 240, 120, 60, 30
Lower TF (Entry) Lower timeframe for precise entries 60 60, 30, 15, 5
Use HTF Trend Filter Only trade in HTF trend direction true true/false
Use HTF Momentum Confirm Require HTF momentum confirmation true true/false
Use ITF for Signal Generation ITF must confirm signals true true/false
Use LTF for Entry Timing Use LTF for entry timing true true/false
HTF Trend Bars Required Consecutive bars HTF must show trend 2 1-5
ITF Confirm Bars Required Bars ITF must confirm 1 1-3
Parameter explanations:
High TF (Trend)
• 1D (Daily): Best for capturing daily patterns in Gold/Silver
• 1W (Weekly): Longer-term trend perspective
• 240 (4-Hour): Faster trend identification
Use HTF Trend Filter
• When enabled: Only takes trades in HTF trend direction (lower risk)
• When disabled: Allows counter-trend trades (higher risk, more signals)
Use HTF Momentum Confirm
• When enabled: Requires HTF momentum confirmation
• Helps avoid trading against strong momentum
Use ITF for Signal Generation
• When enabled: ITF must confirm signals (additional layer)
• May reduce signal frequency but improves quality
Use LTF for Entry Timing
• When enabled: Uses LTF for precise entry timing
• Improves entry precision but adds complexity
HTF Trend Bars Required
• Higher values = stricter trend requirement
• More reliable signals but fewer opportunities
• Range: 1-5, Default: 2
ITF Confirm Bars Required
• Higher values = more confirmation needed
• Fewer but higher quality signals
• Range: 1-3, Default: 1
3.2 Commodity Settings
Input Description Default Options
Commodity Select trading commodity GOLD GOLD, SILVER
⚠️ Silver is more volatile than Gold and automatically receives adjusted settings: ATR Multiplier 2.0 vs Gold's 1.5; Limit Order Distance 0.10 vs Gold's 0.05. These overrides only apply if the user hasn't changed from default values.
3.3 VWAP Settings
Input Description Default
VWAP Source Price source for VWAP calculation hlc3
• hlc3 (Default): (High + Low + Close) / 3 — Standard VWAP source
• Close: Uses closing price only
• Open: Uses opening price
• OHLC4: (Open + High + Low + Close) / 4
3.4 ATR Settings
Input Description Default Recommended Range
ATR Length Period for ATR calculation 14 14 (standard)
ATR Multiplier for SL ATR multiple for stop-loss distance 1.5 Gold: 1.5, Silver: 2.0
• ATR Length: Higher = smoother but slower ATR response; standard is 14.
• ATR Multiplier: Higher = wider stop; lower = tighter stop. Gold recommended: 1.5; Silver recommended: 2.0.
3.5 Trade Settings
Input Description Default Notes
Reward-to-Risk Ratio Target calculation ratio 3.0 3.0 = aggressive, 2.0 = conservative
Limit Order Distance Distance from price for limit orders (ATR units) 0.05 Gold: 0.05, Silver: 0.10
Target (Long) = Entry + (ATR × ATR_Multiplier × RR_Ratio)
Target (Short) = Entry - (ATR × ATR_Multiplier × RR_Ratio)
Ratio Trading Style Risk Level
2.0 Conservative Lower reward, more fills
2.5 Balanced Moderate approach
3.0 Aggressive Higher reward, fewer fills
3.6 Swing Detection
Input Description Default Range
Swing Lookback Length Period for pivot detection 5 2+
Show Swing Highs/Lows Toggle swing visualization true true/false
• Higher values: More significant swings but fewer signals
• Lower values: More swings but more noise
• Default (5): Good balance for intraday trading
3.7 Support & Resistance
Input Description Default Range
S/R Lookback Bars Bars to look back for S/R detection 20 5+
Breakout Tolerance % Minimum % move to confirm breakout 0.02 0.01+
• Higher values: Fewer false breakouts but may miss valid ones
• Lower values: More breakouts detected but more false signals
• Default (0.02 = 2%): Good balance for precious metals
3.8 Trend & Momentum
Input Description Default Range
Trend EMA Length EMA period for trend determination 9 5+
Momentum Length RSI calculation period 14 5+
EMA Length Response Best For
5-9 Fast, more signals Scalping
9-21 Balanced Day Trading
21+ Slow, fewer signals Swing Trading
RSI Period Sensitivity Best For
7 High Short-term trading
14 Standard General use
21 Low Long-term analysis
3.9 Volume Settings
Input Description Default Range
Volume Average Length SMA period for average volume 20 5+
Used to determine if current volume is above or below normal. Volume confirmation strengthens breakout signals.
3.10 Info Settings
Input Description Default
Show Info Table Toggle main info tables true
Show MTF Table Toggle multi-timeframe analysis table true
3.11 Session Settings (Eastern Time)
Input Description Default
Session Start Hour (ET) Session start hour (0-23) 8
Session Start Minute Session start minute (0-59) 30
Session End Hour (ET) Session end hour (0-23) 15
Session End Minute Session end minute (0-59) 30
⚠️ ComeX Session: The primary precious metals exchange operates 8:30 AM - 3:30 PM ET
4. Functionality Breakdown
4.1 Multi-Timeframe Data Request System
The indicator uses request.security() to fetch data from three different timeframes simultaneously. The offset ensures non-repainting confirmed values only; lookahead=barmerge.lookahead_on prevents future leak; tuples allow efficient single requests for multiple values.
4.2 MTF Trend Detection
Each timeframe is analyzed using EMA trend comparison, RSI momentum, and MACD direction.
4.3 MTF Alignment Scoring System
The alignment score quantifies how well all timeframes agree.
4.4 Breakout Detection
Breakouts are detected on current timeframe, session levels, and MTF combinations; MTF breakouts require both HTF and ITF confirmation.
4.5 Session Tracking
Tracks ComeX session open, high, low, and range.
4.6 Trade Level Calculations
When signals are confirmed, the indicator calculates limit order, stop-loss, target, and risk:reward levels.
4.7 Volume Analysis
Volume is classified against the configured average volume.
4.8 Volatility Context (ATR)
ATR is categorized as high, normal, or low volatility based on commodity type.
Indicator Calculation Bullish Signal Bearish Signal
Trend MA EMA comparison Close > EMA Close < EMA
Momentum RSI 14-period RSI RSI > 50 RSI < 50
MACD 12,26,9 MACD Line > Signal Line < Signal
Score Range Classification Trading Confidence
≥ 5 STRONG ALIGNMENT High confidence
2 to 4 MODERATE Good probability
-1 to 1 WEAK Low confidence (AVOID)
-2 to -4 MODERATE Good probability (short)
≤ -5 STRONG ALIGNMENT High confidence (short)
Session Time (ET)
Pre-Market 6:00 AM - 8:30 AM
ComeX Session 8:30 AM - 3:30 PM
Post-Market 3:30 PM - 5:00 PM
For GOLD ATR Classification
> 3 HIGH VOL
1.5 - 3 NORMAL VOL
< 1.5 LOW VOL
For SILVER ATR Classification
> 0.05 HIGH VOL
0.03 - 0.05 NORMAL VOL
< 0.03 LOW VOL
5. Signal Generation Logic
5.1 MTF Long Signal Requirements
# Condition Requirement User Setting
1 HTF Trend Bullish (or neutral if filter disabled) useHTFTrendFilter
2 HTF Momentum Bullish momentum confirmation useHTFMomentumConfirm
3 ITF Setup Bullish ITF trend and momentum useITFForSignals
4 LTF Timing Bullish LTF with RSI > 50 useLTFForEntry
5 MTF Alignment Score ≥ 2 Always
5.2 MTF Short Signal Requirements
# Condition Requirement User Setting
1 HTF Trend Bearish (or neutral if filter disabled) useHTFTrendFilter
2 HTF Momentum Bearish momentum confirmation useHTFMomentumConfirm
3 ITF Setup Bearish ITF trend and momentum useITFForSignals
4 LTF Timing Bearish LTF with RSI < 50 useLTFForEntry
5 MTF Alignment Score ≤ -2 Always
5.3 Signal Path Options
• Path 1: Full Confirmation — highest confidence; requires agreement across all analysis layers.
• Path 2: MTF-Only Signal — available when ITF/LTF confirmations are disabled.
6. Information Tables
6.1 Session Info Table (Top Left)
Row Content Description
1 Commodity GOLD or SILVER
2 Session ACTIVE / PRE-MKT / POST-MKT / CLOSED
3 ComeX Open Session open price
4 Session High Highest price this session
5 Session Low Lowest price this session
6 Session Range Total movement potential
7 vs Open Position vs session open (%)
6.2 Indicators Table (Top Right)
Row Content Description
1 Current Price Live price
2 VWAP Volume Weighted Average Price
3 VWAP Status ABOVE/BELOW/EXTENDED status
4 Support Recent swing low level
5 Resistance Recent swing high level
6 Level Status Proximity to key levels
7 Current Vol Current bar volume
8 Avg Vol 20-bar average volume
9 Vol Status HIGH/LOW/AVG classification
10 ATR Average True Range value
11 Vol Regime HIGH/NORMAL/LOW volatility
12 Trend Current trend classification
13 Momentum Momentum with RSI value
14 MACD BULLISH/BEARISH status
6.3 Trade Levels Table (Bottom Left)
Row Content Description
1 MTF Signal MTF LONG / MTF SHORT / WAIT
2 Alignment STRONG/MODERATE/WEAK classification
3 Limit Order Dist Distance in ATR units
4 Limit Order Price Pending entry price
5 Stop-Loss Risk exit level
6 Target Reward target price
7 Risk:Reward Achieved R:R ratio
6.4 MTF Analysis Table (Middle Right)
Row HTF ITF LTF
Timeframe 1D 4H 1H
Trend BULLISH/BEARISH/NEUTRAL BULLISH/BEARISH/NEUTRAL BULLISH/BEARISH/NEUTRAL
Momentum STRONG BULL/etc STRONG BULL/etc STRONG BULL/etc
RSI 55.0 52.0 58.0
MACD BULL/BEAR BULL/BEAR BULL/BEAR
VWAP ABOVE/BELOW ABOVE/BELOW ABOVE/BELOW
Breakout UP/DOWN/NONE UP/DOWN/NONE UP/DOWN/NONE
Alignment Score: X — —
7. Alert Conditions
The indicator creates 10 alert conditions for automated trading:
Alert Name Trigger Message/Use Case
MTF LONG Signal All TFs aligned for long Ticker, Price
MTF SHORT Signal All TFs aligned for short Ticker, Price
MTF Long Developing HTF/ITF align, LTF pending Early warning
MTF Short Developing HTF/ITF align, LTF pending Early warning
MTF Bullish Breakout Breakout on Daily AND 4H Highest confidence
MTF Bearish Breakout Breakdown on Daily AND 4H Highest confidence
VWAP Cross Up Price crosses above VWAP —
VWAP Cross Down Price crosses below VWAP —
Session Breakout Up Break above session high —
Session Breakout Down Break below session low —
8. Best Practices
8.1 Before Trading
16. Confirm Alignment Score: Wait for score ≥ 2 (bullish) or ≤ -2 (bearish)
17. Check Session Status: Ensure ComeX session is ACTIVE
18. Verify Volume: Confirm volume is ABOVE AVG or HIGH during signals
19. Review VWAP: Price should be above VWAP for longs, below for shorts
8.2 During Trading
20. Monitor Volatility: Adjust expectations in HIGH VOL conditions
21. Watch for Signal Changes: Alignment can shift quickly
22. Track Session Levels: Session High/Low act as dynamic S/R
8.3 Risk Management
23. Use Proper Position Size: Based on ATR-based stop loss
24. Never Risk More Than 1-2% Per Trade
25. Accept that 3:1 RR means ~33% win rate is breakeven
9. Recommended Parameter Values
For Gold (MGC!) Value Reason
Commodity GOLD Default setting
ATR Multiplier 1.5 Gold's moderate volatility
Limit Order Distance 0.05 Tight entries for gold
RR Ratio 3.0 Aggressive targeting
ATR Length 14 Standard setting
For Silver (SIL!) Value Reason
Commodity SILVER Required setting
ATR Multiplier 2.0 Silver's higher volatility
Limit Order Distance 0.10 Wider entries for silver
RR Ratio 2.5-3.0 Adjusted for volatility
ATR Length 14 Standard setting
Trading Style HTF ITF LTF
Scalping 240 60 5/15
Day Trading 1D 240 60
Swing Trading 1W 1D 240
Experience HTF Filter Momentum Confirm ITF Signals LTF Entry
Beginner ON ON ON ON
Intermediate ON ON ON OFF
Advanced OFF OFF OFF OFF
10. Common Mistakes to Avoid
Mistake Consequence Solution
Trading during alignment score = 0 Fighting conflicting timeframes Wait for alignment ≥ 2 or ≤ -2
Using tight stops in HIGH VOL Getting stopped out by noise Use higher ATR multiplier
Ignoring HTF trend direction Lower win rate Enable HTF Trend Filter
Trading outside ComeX session Poor liquidity, wider spreads Enable session filter
Taking trades with WEAK alignment Low probability trades Wait for MODERATE or STRONG
Ignoring volume confirmation False breakouts Wait for volume confirmation
Appendix A: Color Coding Guide
Color Meaning
🟢 Green Bullish / Above average
🔴 Red Bearish / Below average
🔵 Blue Neutral / VWAP related
🟣 Purple Session levels
🟠 Orange ComeX open reference
⚪ Gray Neutral / Waiting
Marker Meaning
Lime Triangle ↓ Confirmed MTF Long
Red Triangle ↑ Confirmed MTF Short
Faded Triangle Standard signal (not MTF confirmed)
Appendix B: Glossary
Term Definition
ATR Average True Range - measures volatility
ComeX Commodity Exchange - primary metals exchange
EMA Exponential Moving Average
HTF High Timeframe
ITF Intermediate Timeframe
LTF Lower Timeframe
MACD Moving Average Convergence Divergence
MTF Multi-Timeframe
RSI Relative Strength Index
RR Risk:Reward ratio
S/R Support and Resistance
VWAP Volume Weighted Average Price
Appendix C: Quick Reference Card
Daily Setup Checklist
☐ Commodity selected correctly (GOLD/SILVER)
☐ Timeframes configured for trading style
☐ Session times verified
☐ Info tables enabled
☐ Alerts configured
Before Entry Checklist
☐ Alignment score ≥ 2 (long) or ≤ -2 (short)
☐ ComeX session is ACTIVE
☐ Price above VWAP (longs) / below VWAP (shorts)
☐ Volume confirming the move
☐ All three TFs aligned
Trade Management
☐ Entry: Limit order at calculated level
☐ Stop: ATR-based stop loss
☐ Target: R:R based on settings
☐ Monitor: VWAP crossovers
☐ Exit: At target or stop, never early
Version Information
Item Details
Script Version v6
Author © Pineify
License Mozilla Public License 2.0
Compatibility TradingView Pine Script v6
Support & Feedback
• Submit through TradingView's indicator page
• Include your parameter settings when reporting issues
• Provide chart screenshots when possible
Formatted user guide generated from supplied content.
Wskaźnik

Supply and Demand Zones with Market Structure [Jayadev Rana]Overview
This open-source overlay draws two closely related price-action concepts on a single chart: swing-based supply and demand zones, and market-structure mapping (swing labels, a zig-zag of confirmed swings, and Break of Structure markers). It is a visual analysis aid. It does not generate buy or sell signals, it does not place orders, and it makes no performance claim.
How swings are detected
Every element in the script is anchored to a confirmed swing pivot. Swings are found with symmetric pivots: a swing high requires its high to be the highest of the N bars on its left and the N bars on its right (and the mirror condition for a swing low), where N is the Swing High/Low Length input. Because a pivot needs N bars on both sides to exist, it is only confirmed N bars after the pivot bar. Once a swing is confirmed, its label, zone and zig-zag segment are fixed to that historical bar and do not move or repaint afterwards. The trade-off of this method is a fixed N-bar delay before a swing becomes visible. This is inherent to symmetric pivots and is disclosed here so the behavior is clear.
Supply and demand zones
When a swing high is confirmed, a supply zone is drawn from that swing high down to the top of the swing candle's body. When a swing low is confirmed, a demand zone is drawn from that swing low up to the bottom of the swing candle's body. This anchors each zone on the candle that produced the turning point. Because wick-only zones can be very thin, an optional ATR floor (on by default) gives each zone a minimum thickness equal to a configurable multiple of the 14-period ATR, so zones stay readable across different instruments and timeframes.
Each zone extends to the right until it is mitigated. A supply zone is treated as mitigated when price closes above it; a demand zone when price closes below it. On mitigation the zone is either removed or greyed out, depending on the When a zone is broken input. To respect the platform limit of 500 drawing objects and to keep the chart readable, only the newest N zones per side are retained (the Zones to keep per side input).
Market structure
Swing labels: each confirmed swing is labelled relative to the previous same-side swing. Highs are marked HH (higher high) or LH (lower high); lows are marked HL (higher low) or LL (lower low). Bullish structure (HH, HL) uses the bullish colour and bearish structure (LH, LL) uses the bearish colour.
Zig-zag: consecutive confirmed swings are joined by a line, giving a de-cluttered skeleton of price movement.
Break of Structure (BOS): the most recent confirmed swing high and swing low are tracked as reference levels. The first time price closes above the reference swing high a BOS is marked, and the mirror for a close below the reference swing low. Each level is marked only once.
Dashboard
An optional table in the top-right corner shows the current swing length, the number of active supply and demand zones, and the direction of the last Break of Structure.
Inputs
Structure and Swings: swing length, and toggles for the zig-zag, the swing labels and the BOS markers.
Supply and Demand Zones: master toggle, zones to keep per side, the ATR minimum-thickness option and multiplier, broken-zone handling (remove or grey out), and the right-extension toggle.
Colors: independent fill and border colours for supply, demand and broken zones, the zig-zag colour, and the bullish and bearish structure colours.
Dashboard: show or hide the summary table.
Alerts
Alert conditions are provided for a bullish BOS, a bearish BOS, a new supply zone, and a new demand zone.
How to use it
Supply and demand zones are commonly read as areas where price may react, while market structure (the sequence of HH, HL, LH, LL and BOS events) describes the prevailing trend and its changes. Reading the two layers together, for example a demand zone that coincides with bullish structure or a supply zone that coincides with bearish structure, is one way traders use this kind of tool. This script only draws the levels and the structure. It does not tell you when to enter or exit, and any decision you make is your own.
Originality and scope
This is an original implementation written from scratch. The underlying ideas, namely pivot-based swing detection, supply and demand zones, higher-high and lower-low structure labelling, and break of structure, are long-established public-domain price-action concepts rather than the property of any single author. The purpose of this publication is to combine them into one coherent, fully configurable, non-repainting overlay with readable code and a compact summary dashboard.
Limitations and disclaimer
Swings, and everything derived from them, appear with a fixed N-bar confirmation delay. This is by design and is not an error.
Zone mitigation is evaluated on bar close. On the developing (last) bar, states can still change until the bar closes.
Past behaviour of price around a zone or a structure point does not predict future results. This tool is for education and analysis only and is not financial advice. Test any approach yourself before relying on it. Wskaźnik

Adaptive Predictability Engine Entropy Gate, Regime RouterAdaptive Predictability Engine — Entropy Gate, Regime Router & Expert Committee
What it is
The Adaptive Predictability Engine is a governed decision framework, not another confluence average. It refuses to treat all market conditions as tradable. It applies a strict hierarchy: first it asks whether price is forecastable at all right now; if it is, it decides whether trend-style or reversion-style logic is appropriate; and only then does a small committee of transparent experts vote — with the committee continuously re-weighting itself toward whichever experts have been correct recently. When the market is unpredictable, the whole engine stands aside and shows nothing to trade.
It plots directly on price: long/short signals, the live entry/target/stop of the active trade, a plain-language dashboard, and an optional self-calibration panel that scores past signals in R-multiple expectancy (not just win rate).
Why these components are combined (mashup justification)
This is a deliberate, dependent stack — each layer conditions the next, so removing any one changes the layer below it. That is the difference between a governed engine and a bag of averaged indicators.
Predictability gate (permutation entropy + structure). Permutation entropy (Bandt–Pompe) measures the ordinal randomness of recent price across three time scales; this is blended with |Hurst − 0.5|, the distance of the market from a random walk, which is high for strong trends and strong mean-reversion. The blended predictability is percentile-ranked so the gate self-tunes per symbol and timeframe. If the tape is unpredictable, nothing downstream may fire. This is the master switch, and it is why the engine spends much of its time deliberately doing nothing.
Regime router (Hurst exponent). When structure exists, the Hurst exponent (generalized, via a structure-function slope) decides whether it is persistent (trend) or anti-persistent (mean-revert), and routes weight toward the appropriate family of experts rather than averaging trend and reversion logic together.
Expert committee (Hedge / multiplicative weights). Six deliberately diverse experts — price trend, volume-weighted price, order-flow delta, momentum exhaustion, volatility extreme, and range extreme — each cast a directional vote. Their weights update every bar by exponential regret (right experts gain influence, wrong ones lose it), with fixed-share regularization so no single expert can dominate and make the vote fragile.
Distribution-shift guard. If the recent return distribution moves materially versus a reference window, the engine freezes learning and cuts conviction until conditions settle, so stale weights don't drive trades through a regime change.
The output is a single decision = the regret-weighted vote of only the currently-appropriate experts, gated to zero whenever the tape is unpredictable.
How to use it
Add it to any liquid symbol and timeframe. Defaults are tuned for index futures (e.g. NIFTY) but every input is adjustable, and the Data source group lets you repoint price and volume for any market.
Watch the dashboard headline: LONG / SHORT / WAIT / STAND ASIDE. When a signal fires, the engine draws the entry, ATR target, and ATR stop so the action is concrete.
Treat the shaded background as a hard "do not trade" — the engine has judged the tape unpredictable.
Open the Edge calibration (advanced) panel to see, per market memory, the past R-expectancy of the engine's own signals versus a direction-matched baseline. Positive expectancy means the sample was profitable before costs; this is descriptive of the past, not a forward guarantee.
Use the Ablation (research) toggles to switch each layer off and see, on your own data, whether it earns its place.
What makes it original
Most published tools average indicators and hope. This one inverts the approach by asking whether to act at all before what to do, using information-theoretic predictability (permutation entropy) as a master gate, a memory estimate (Hurst) as a router, and online regret-minimization (Hedge) to arbitrate a diverse expert set — with built-in R-expectancy self-calibration so users can judge it honestly rather than on a cherry-picked screenshot. The order-flow expert reads finest-available lower-timeframe signed volume with automatic fallback. The coupling and governance order are the contribution; the individual estimators are classical and credited below.
Concept credits
Permutation entropy — Bandt & Pompe. Hurst exponent / long-range dependence — H. E. Hurst; Mandelbrot. Hedge / multiplicative-weights online learning — Freund & Schapire; Littlestone & Warmuth; Vovk. Efficiency/structure framing — Kaufman. Triple-barrier labelling and R-multiple expectancy — M. López de Prado. Wilson score interval — E. B. Wilson. Synthesis, governance design, and implementation are the author's own.
Important disclaimer
Research and education only. Not financial advice, not a signal service, not a guarantee of future results. No indicator has an inherent edge. The calibration panel is a descriptive summary of past behaviour on the current chart — not a backtest and not a forward prediction. Always validate independently, apply realistic costs and slippage, and manage risk. You are solely responsible for your trading decisions. Wskaźnik

FVG + Order Block Toolkit [ForexCracked]🔷 OVERVIEW
Two of the most-watched smart money footprints on one clean chart. This toolkit auto-draws Fair Value Gaps and Order Blocks as zones, keeps only the ones that still matter, and shows a live count in a compact dashboard. Fair value gaps are drawn as soft fills and order blocks as bordered blocks, so you can tell the two apart at a glance. It is free and open-source.
🔷 HOW IT DETECTS THE ZONES
Fair Value Gaps: a three-candle imbalance. A bullish FVG is marked when the low of the current candle sits above the high of the candle two bars back, leaving an untraded gap. A bearish FVG is the mirror. Gaps smaller than your Min FVG size (measured in ATR) are filtered out so the chart stays clean.
Order Blocks: displacement based. When a candle closes with a body larger than your Displacement setting (in ATR), the toolkit marks the last opposing candle before that move as the order block. A strong bullish move leaves a bullish order block on the last down candle, and the reverse for bearish.
🔷 ZONE MANAGEMENT
Every zone extends to the right until price closes through it (mitigated) or it passes the Max zone age. That means the boxes on your chart are the ones that are still unmitigated, not old clutter.
🔷 THE DASHBOARD
A compact, positionable panel shows the live count of unmitigated bullish and bearish Fair Value Gaps and Order Blocks, plus a total. Drop it in any corner.
🔷 HOW TO USE
Treat the zones as areas of interest, not automatic trades. Watch for price to return to an unmitigated order block or fair value gap in the direction of your higher-timeframe bias, then confirm with your own analysis and use a stop. Higher timeframes produce fewer and stronger zones.
🔷 SETTINGS
Fair Value Gaps: show on/off, Min FVG size (x ATR), colours. Order Blocks: show on/off, Displacement (x ATR), OB lookback, colours. General: Max zone age, Extend right, Info panel + position.
🔷 ALERTS
New Fair Value Gap, and New Order Block.
Free and open-source. Educational tool, not financial advice. Wskaźnik

Wskaźnik

Structural Divergence [Proozac]Structural Divergence — Pine Script v6 — Overlay Indicator
What It Does
Structural Divergence merges two of the most reliable concepts in technical analysis into a single confluence-based signal: Market Structure (HH/HL/LH/LL, BOS/CHoCH) and RSI/MACD divergence detected precisely at structural swing points — not anywhere on the chart, but exactly where it matters.
Most divergence indicators flag every RSI/price disagreement, drowning traders in low-quality signals. Structural Divergence only calculates divergence at confirmed swing highs and lows, then cross-references it against real structural breaks. A signal only fires when both align.
## How It Works
Swing Detection: identifies significant highs and lows using a configurable pivot length, then labels each one HH, HL, LH, or LL relative to the prior swing of the same type.
BOS / CHoCH: automatically draws Break of Structure and Change of Character lines whenever price closes beyond the last confirmed swing level, tracking trend direction in real time.
Divergence Engine: at every swing high/low, RSI (and optionally MACD histogram, for stricter confirmation) is compared against the prior swing of the same type to detect classic bearish/bullish divergence.
Confluence Signal: when a divergence and a BOS/CHoCH occur within a configurable bar window in the same direction, a triangle signal fires with a built-in alert — filtering out the noise of standalone divergence or structure signals used alone.
Why It's Different
Instead of stacking indicators and hoping for visual confluence, this script computes it algorithmically. The result is fewer, higher-conviction signals: you're not just seeing "RSI diverged" or "structure broke" — you're seeing both happen together, which historically marks higher-probability reversal and continuation zones.
## Settings
Swing Detection Length (pivot sensitivity)
RSI Length
Optional MACD confirmation (stricter mode)
Confluence window (max bars between divergence and structural break)
Full color customization for bullish/bearish elements
Alerts
Two ready-to-use alert conditions: Confluence Buy Signal and Confluence Sell Signal — plug straight into TradingView's alert system or your own webhook automation. Wskaźnik

Elaris Trend LifecycleElaris Trend Lifecycle
Overview
Elaris Trend Lifecycle is a trend analysis indicator designed to help traders identify different phases of a market trend using a combination of trend structure, momentum, volatility, and price behavior.
Instead of treating every trend equally, the indicator classifies the current market into distinct lifecycle stages, allowing traders to better understand whether a trend is just beginning, gaining strength, becoming extended, or showing signs of weakening.
The goal is to provide additional context that can assist with trade planning, trend-following strategies, and risk management across different markets and timeframes.
---
Lifecycle Phases
• Neutral
No clear directional trend is currently detected.
• Birth
A new bullish or bearish trend is beginning to develop based on moving average alignment and improving momentum.
• Expansion
The trend is strengthening with increasing directional momentum and supportive volatility conditions.
• Maturity
The trend remains intact but has progressed for an extended period or has moved significantly away from its average price.
• Exhaustion
Price begins showing characteristics that may indicate slowing momentum, including extended movement and rejection wicks.
• Reversal Risk
Trend conditions have weakened and structural changes suggest that the probability of continuation has decreased.
---
Features
• Multi-stage trend classification
• EMA-based trend engine
• Trend duration tracking
• Momentum evaluation using ADX
• ATR-based volatility expansion analysis
• RSI-assisted exhaustion detection
• Optional confirmed swing structure validation
• Trend lifecycle dashboard
• Dynamic bar coloring
• Background phase visualization
• Bullish and bearish lifecycle signals
• Configurable alerts
• Fully customizable inputs
---
Dashboard
The integrated dashboard displays:
• Current lifecycle phase
• Trend direction
• Lifecycle score
• Bars spent in the current trend
• ADX strength
• ATR expansion status
The dashboard supports both dark and light themes.
---
Alerts
Alert conditions are available for:
• Trend Birth
• Expansion Phase
• Exhaustion Phase
• Reversal Risk
These alerts can be used for notifications or automated workflows.
---
How It Can Be Used
Some examples include:
• Identifying developing trends
• Monitoring trend strength
• Recognizing extended market conditions
• Adding confirmation to trend-following strategies
• Supporting discretionary market analysis
As with any technical indicator, it is intended to be used alongside a broader trading plan and appropriate risk management.
---
Notes
• Signals are generated using confirmed bar data.
• Swing structure confirmation uses confirmed pivots, which naturally require additional bars before confirmation.
• The indicator is designed as an analytical tool and does not predict future market behavior or guarantee trading outcomes.
Wskaźnik

Wskaźnik

Wskaźnik

Wskaźnik

FCPO Kental (SMC)Title: FCPO Kental (SMC)
Description:
An all-in-one price overlay for intraday traders, tuned with FCPO (Bursa Malaysia crude palm oil futures) in mind but usable on any symbol or timeframe. It combines market-structure detection (CHoCH/BOS), Fair Value Gaps, auto-Fibonacci from the active swing, and key reference levels (previous day/week high & low, plus daily/weekly/monthly opens) into one clean layout so you can read confluence at a glance.
Suggested workflow
Establish the trend first. Use your own trendlines, channels, or higher-timeframe read to decide if price is trending up, down, or ranging. This tool supports your read — it doesn't replace it.
Trade structure with the trend. Watch CHoCH (change of character) and BOS (break of structure). Favour signals that agree with the trend you identified; treat counter-trend shifts with caution.
Use FVG as the entry zone. Fair Value Gaps mark imbalance left by aggressive moves, and price often revisits them. A FVG that lines up with your trend and a fresh structure shift is a candidate entry area.
Read the auto-Fibonacci for premium/discount. Drawn automatically from the live swing: the 0.5 and 0.618 levels mark a healthy discount zone (favourable entries), while the -0.618 extension acts as a take-profit reference.
Best confluence: trend + structure shift + a FVG sitting inside the 0.5–0.618 discount, targeting the -0.618 extension.
Features
Auto CHoCH & BOS with body/wick break option and adjustable history
Bullish/bearish FVG with mitigation tracking, auto-cleanup, and alerts
Auto-Fibonacci from the active swing (five configurable levels, incl. 0.5/0.618 discount and -0.618 target)
Reference levels: PDH/PDL, PWH/PWL, daily/weekly/monthly opens — each toggleable
Modular master switches per block, with full colour/style control
Alerts: BOS, CHoCH, FVG mitigation
Scope
This is a discretionary analysis tool — not a strategy. It does not place orders or produce backtest statistics. Order-flow elements (footprint, delta, absorption) are intentionally not included, as they can't be computed reliably in Pine.
Credits & license
Market-structure & FVG logic is based on the open-source "SMC Structures and FVG" by LudoGH68 (Mozilla Public License 2.0). The PDH/PDL and opens levels are adapted from an open-source community script. Published under MPL-2.0 in keeping with the original license.
Disclaimer: For education and analysis only. Not financial advice. Trading futures carries significant risk of loss. Past behaviour of any level or signal does not guarantee future results — do your own analysis and manage risk. Wskaźnik

Wskaźnik

Wskaźnik

Strategia

Monotonic Trend Consensus [QuantAlgo]🟢 Overview
Monotonic Trend Consensus is a trend-following oscillator built on rank correlation between price and time rather than moving averages or crossovers. It scores how consistently price is ordered across multiple lookback windows and combines them into a single bounded reading on a -1 to +1 scale, holding the same meaning on any symbol or timeframe so traders can separate a broadly aligned trend from directionless noise and read when a move has stretched to saturation.
🟢 How It Works
The foundation is Spearman rank correlation between price and time, computed over each active window. Closes inside the window are ranked against one another, time forms its own rising sequence of ranks, and the difference between the two collapses to a single coefficient (rho):
float price_rank = less + (eq + 1.0) / 2.0
float time_rank = float(len - i)
float rho = 1.0 - 6.0 * sumd2 / denom
The coefficient reads +1 when each bar closes above the last in unbroken order, 0 when there is no consistent order, and -1 when each bar steps lower. Because it scores ordering rather than smoothing price into a line, it reflects the current window directly rather than trailing behind it, though it still needs a full window of bars to form. Ranking also limits the pull of any single outlier bar, and the bounded output is what lets one threshold hold across markets without rescaling.
A single window describes direction; the tool runs several and averages them into a consensus spanning fast, medium, and slow horizons:
consensus := array.avg(rhos)
Agreement is then measured as the share of windows leaning the same way as the consensus, and this conviction figure must clear a floor before a direction prints, working alongside the strength threshold:
conviction := 100.0 * agree / active
raw_bull = consensus > threshold and conviction >= min_conviction
raw_bear = consensus < -threshold and conviction >= min_conviction
A reading registers only when both clear at once: consensus past the threshold and windows aligned enough to meet the conviction floor. Fail either and the line stays flat. With Show Neutral on, those flat stretches reset to neutral; with it off, the line holds its last direction until the next qualifying move.
🟢 Signal Interpretation
▶ Bullish Consensus (Green): Consensus sits above the upper threshold with enough windows aligned, meaning recent bars are ordered upward across horizons. Trend traders read the turn into green as a possible long or continuation as the score presses toward +1. Mean-reversion traders treat a reading pinned near +1 as a stretched, broadly-agreed advance rather than a buy, and look to fade only once the line rolls back off the extreme, since the score can hold high through a sustained trend.
▶ Bearish Consensus (Red): Consensus sits below the lower threshold with conviction met, with bars ordered downward across horizons. Trend traders read the turn into red as a possible short or continuation as the score presses toward -1. Mean-reversion traders treat a reading pinned near -1 as a saturated decline where a bounce becomes more plausible, and look to fade on the turn back up rather than at the low itself.
▶ Neutral (Gray): With Show Neutral on, the line goes gray whenever no direction qualifies, either because consensus sits inside the threshold or conviction falls short. The zero line acts as the balance point and behaves like support or resistance for the reading itself: a score rejected at zero from above points to bullish order reasserting, a score capped at zero from below points to bearish order holding, and a clean break through leans toward a regime change. Reading this midline behavior against price is where market structure tools pair well, separating a base building above a structural level from a coil forming under overhead supply. Trend traders stand aside until the line commits; mean-reversion traders find less to work with here than at the edges.
▶ Reading the Extremes: The axis caps at +1 and -1, marking maximum agreement across every active window. Trend traders take an extreme as a sign a move is still in force; mean-reversion traders take it as a stretched zone and watch for the score to turn back toward zero as agreement breaks. An extreme that aligns with a known structural level gives a fade a cleaner reference than one in open space, and neither read holds on the extreme alone, since a strong trend can stay saturated before it cools.
🟢 Features
▶ Preconfigured Presets: Three setups map to different holding styles. "Default" suits swing work on 4-hour and daily charts, pairing a mid-range window spread of 8, 13, 21, and 34 with a 0.35 threshold and a 60% conviction floor, so a direction needs both strength and agreement before it flags. "Fast Response" pulls the windows in to 5, 8, 13, and 21 and eases the threshold and conviction floor so the reading keeps pace with quicker intraday swings. "Smooth Trend" stretches the windows out to 21, 34, 55, and 89 and raises both gates for daily and weekly position trading, where a premature flip costs more than a late one. Choosing a preset takes over the manual window, threshold, and conviction fields.
▶ Built-in Alerts: Four conditions track every change in state. "Bullish Trend Signal" triggers when the consensus confirms to the upside. "Bearish Trend Signal" triggers when it confirms to the downside. "Trend Lost / Neutral" triggers when an active direction fades back to flat, which is also the event a mean-reversion trader watches for after an extreme. "Any Trend Change" rolls the two directional events into a single notification for anyone who wants one alert covering both ways.
▶ Visual Customization: Six color schemes (Classic, Aqua, Cosmic, Cyber, Neon, and Custom) carry a matched pair of bullish and bearish colors through the consensus line, its tiered gradient fill down to the zero baseline, and the optional bar and background tints. Marker lines sit at the positive and negative trigger levels to show the zone the consensus has to cross, and each window's own score can be switched on as a faint backing line so you can see which horizons are driving or dragging the combined figure. Bar coloring paints the price candles in the active trend color at an adjustable transparency, while background coloring spreads that tint across the pane.
Wskaźnik

Adaptive Consensus Trail Structure, Regime & SelfAdaptive Consensus Trail — Structure, Regime & Self-Test
A trailing stop that sits on the agreement of several structural references, adapts to the market regime, and forward-tests its own signals so the numbers it shows are measured, not asserted.
What it is
Most trailing stops follow one idea — an ATR band, a SuperTrend, a moving average. This one places the stop where a small committee of independent structural references agree, reads how confident that agreement is, widens or tightens itself according to the market regime, and then continuously audits its own flips and reports the edge it actually produced on your data.
The committee has five members, each locating support/resistance from a different lens:
Anchored VWAP band — fair value for the session/week/month
Session / naked volume Point-of-Control — the price the most volume traded at, carried forward until revisited
Fair-Value-Gap midpoint — unfilled imbalance
Swing pivot — structural memory
Order-flow absorption — where aggressive buying/selling was absorbed (via Bulk Volume Classification)
Why these parts belong in one script (mashup justification)
Each reference alone whipsaws on an index, and each is right in different conditions. They are combined because they correct one another, and the entire value of the script is in that interaction — not in any single line:
A reliability layer scores every reference's historical respect rate with a Wilson lower bound, so a reference that keeps getting ignored loses its vote instead of dragging the stop around.
A consensus layer keeps only the densest agreeing cluster of references, so the stop sits on genuine agreement rather than on an average nobody respects, and far-apart references never force a permanent "no signal."
A regime layer (efficiency ratio + ADX + band-width + a volatility-cluster read + a Hurst persistence estimate) widens the band and tightens the flip confirmation in chop — this is what removes the whipsaw.
A self-test layer forward-scores every flip and recalibrates the confidence number so it means what it says.
Split apart, these are five overlays that each mislead in a range. Wired together, they are one self-correcting, self-auditing trail. That is the reason for combining them.
How it works (six layers)
References are computed on the bar close.
Reliability — rolling-capped respect counts per reference give a Wilson lower-bound "trust." POC is a magnet, so it is judged by forward reaction (did price reject away before breaking through?), not a same-bar close, which keeps its trust honest.
Consensus — the densest agreeing cluster within an ATR band becomes the trail's target; the envelope and confidence are measured on that cluster only.
Adaptive backbone — an efficiency-ratio / regime-adaptive band (Adaptive, Chandelier, or Blend) that widens in chop.
The trail — high confidence pulls the stop toward structure (floored a minimum ATR off price); low confidence rides the wide band, so it flips less in noise.
Self-test — every flip is forward-resolved by triple-barrier first-touch against an unconditional base rate, split by strength tier and by regime, with a walk-forward in-sample→out-of-sample check, a runs test of independence, a Brier score, and a confidence recalibration.
How to use it
Read the top banner for the one-line bias — BULLISH / BEARISH / WAIT — and the READ legend for what to do. The coloured line is your stop: support in an uptrend, resistance in a downtrend. BUY / SELL labels print only on confirmed, sufficiently-confident, higher-timeframe-aligned flips.
The dashboard gives detail top-down: each reference's level and trust, the consensus, raw → calibrated confidence, regime (with Hurst and ADX), the higher-timeframe invalidation stop, and a FULL / HALF / STAND-ASIDE suggestion.
Before sizing, open the Self-Test panel and read the Edge column (hit% − base%), not the raw hit-rate. A ★ means the edge's confidence interval clears the base rate. Prefer signals where the walk-forward change isn't badly negative and the runs test isn't "streaky." Being honest about it: on many indices this tool shows real edge in range and volatile regimes on higher timeframes and little-to-none on very low timeframes or once a trend is already confirmed — the panel makes that transparent so you can pick your spots.
Works on any market
Set the Price source, and for symbols with no native volume set a Borrow-volume proxy (e.g. a futures contract). The panel theme adapts to your chart background automatically. Backbone: Adaptive / Chandelier / Blend. Absorption: order-flow (BVC) or simple. An optional intrabar resolution builds a finer volume profile where available.
Originality
The committee-of-references design, the cluster-not-average consensus, the reliability weighting that lets references lose their vote, the forward-reaction POC respect test, and the confidence self-calibration are the author's own work. The underlying techniques are standard and fully credited below.
Non-repaint
References, regime, consensus and the trail all evaluate on the close of the bar; the live bar is provisional and settles on close. Self-test events are logged and resolved only on confirmed bars and resolve on bars after their trigger at fixed barriers, so hit / base / edge use no look-ahead. The higher-timeframe stop uses a lookahead-off request.
Concept credits
Wilson score interval (E. B. Wilson); efficiency ratio (P. Kaufman); ADX / DMI / ATR / volatility-stop lineage (J. W. Wilder); anchored VWAP (industry standard); volume profile / value area / point-of-control — Market Profile (J. P. Steidlmayer, developed by J. F. Dalton); triple-barrier first-touch labelling (M. López de Prado); runs test of randomness (A. Wald & J. Wolfowitz); rescaled-range / Hurst exponent (H. E. Hurst); Brier score (G. W. Brier); Bulk Volume Classification / VPIN (D. Easley, M. López de Prado & M. O'Hara); reliability-bin (isotonic-style) calibration is standard forecasting practice.
Limitations & disclaimer
"Absorption" is a volume proxy — base data has no true tick order flow, so the buy/sell split is estimated from bar moves, not measured. Confidence is context, not a promise of profit. The self-test is descriptive of past behaviour on the loaded symbol (fixed barriers, no costs or slippage) — a study aid, not a backtest and not a guarantee. A measured edge is what flips did historically here, not a forecast.
This script is for research and education only. It is not financial advice, not a recommendation to buy or sell, and not a guarantee of any outcome. Trading carries risk of loss; your decisions are your own. Test on your own data and use independent risk management before relying on it. Wskaźnik

Wskaźnik

Adaptive Structural Trail Order Flow, Imbalance & RegimeAdaptive Structural Trail — Order Flow, Imbalance & Regime
What it is
Adaptive Structural Trail is a single, self-contained market-structure framework that re-clocks the chart by participation instead of time, marks the imbalances that real activity leaves behind, lets order flow decide which of those levels still matter, asks a regime filter whether trending behaviour can be trusted right now, and trails the strongest surviving level as an adaptive stop — all summarised in a plain-language dashboard that tells you, at a glance, whether the picture says ride, wait, or stand aside.
It is designed to be market-agnostic: every raw input (price, volume, and the volatility-index reference) is user-selectable, so the same logic runs on index futures, equities, FX, crypto or commodities without touching the code. Defaults are set for NIFTY index futures; change the volatility symbol and (if needed) the volume source for other instruments.
Why the components are combined (this is one tool, not a bundle)
Each layer measures a different facet of one process — activity creating structure, structure decaying or being defended, and a regime deciding whether to act. They are not independent indicators stacked for visual effect; remove any one and the others lose their meaning:
Delta clock (the substrate). A virtual bar closes only when cumulative signed volume becomes statistically significant (σ × a multiplier). Every downstream reading is therefore spaced by participation, not by the clock — a quiet 10 minutes and a violent 10 seconds are treated differently, which is the whole point.
Imbalance / fair-value-gap detection runs on those virtual bars, so a level is recorded only where genuine activity gapped price, not on arbitrary time bars.
Order-flow lifecycle (charge → decay → breaker/dead). When price returns to a level, delta adjudicates the outcome: absorbed-and-defended levels are reborn as breakers; levels that are surged through are killed. Flow decides what structure survives.
Regime gate (efficiency ratio + volatility burst). This routes everything. The trail is shown and signals arm only where trend behaviour is statistically credible; in range/transition/high-volatility states the tool deliberately stands aside.
Confidence fusion. Structure strength, cumulative-delta slope and flow toxicity (VPIN) are blended into one confidence number, which the dashboard converts into a plain instruction.
That coupling — a volume-significance clock feeding imbalance detection whose survival is adjudicated by order flow and gated by regime, fused into a single trailing level and a decision read-out — is the original contribution here.
How to use it
Add it to any liquid instrument. It is built for intraday timeframes (1–15 min is the sweet spot on index futures).
Read the dashboard top-down: the ACTION banner is the headline (e.g. LONG · ride the trail, RANGE · stand aside). Below it: bias + confidence, market state, the actual trail-stop price, order flow, flow toxicity, volatility context, and a plain "what to do" line.
Treat the coloured trail as a structure-based stop while the market state is a trend; when the state leaves trend, the trail disappears by design.
The imbalance zones show where unfilled activity sits; fresh, tapped and breaker levels are colour-coded (see the on-chart legend).
Edge-calibration panel (bottom-right): for transparency it scores past signals against a regime-matched base rate and reports EDGE = Hit − Base with a 95% confidence interval. Read the Edge column, not the raw hit-rate. This is descriptive of the past on your symbol — not a backtest and not a forward guarantee.
Key-info panel (top-left): instrument, timeframe, the live data source (see honesty note), threshold, ATR and level counts.
Honest note on data (please read)
TradingView exposes no true tick-by-tick aggressor delta and cannot build custom bars, so delta here is a proxy: signed intrabar volume taken from the finest lower timeframe your data plan returns — 1-second where available, otherwise 1-minute — falling back to bar-shape when no lower-timeframe data exists. The live source is shown as "Delta source" in the Key-info panel, so you always know which mode is active. Non-repaint: the delta clock advances and structure/regime/signals resolve only on confirmed bars; the trail line itself updates within the forming bar as a current estimate.
Originality
The novelty is the synthesis and coupling, not any single classical block. A participation clock is used to gate imbalance detection; order flow is used to adjudicate level survival; regime is used to route the entire read; and the whole thing collapses into one trailing level plus a decision dashboard and a self-calibration panel. Every raw input is user-selectable so the framework generalises across markets.
Concept credits
This tool synthesises well-established, publicly documented ideas; credit to their originators:
Information / volume-driven bars & VPIN flow toxicity — Marcos López de Prado; Easley, López de Prado & O'Hara.
Efficiency Ratio (trend vs. noise) — Perry J. Kaufman.
Trade-side classification (tick rule) — Lee & Ready.
Market impact & absorption (square-root law) — Almgren; Tóth & Bouchaud.
Wilson score interval (small-sample proportion CI) — E. B. Wilson.
Imbalance / fair-value-gap and trailing-stop concepts are long-standing, widely used market-structure ideas. The synthesis and the Pine implementation are the author's own.
Exported outputs (for use in other scripts)
Available via input.source() in any other indicator, with clean generic names: Bias Score (signed conviction, ±10), Trail Stop, Trail Direction, Regime State, Confidence, Leading Strength, CVD Slope, Flow Toxicity, Cumulative Delta, Volatility ROC, Volatility Bias.
Disclaimer
For research and education only. This is an analytical tool — not financial advice, not a signal service, and not a guarantee of future results. No indicator has an inherent edge; validate with your own testing, apply realistic costs, and manage risk. You are solely responsible for your trading decisions. Wskaźnik

Wskaźnik

Dual EMA SpreadIntroduction
Dual EMA Spread is a trend analysis indicator that measures the percentage difference between a fast Exponential Moving Average (EMA) and a slow Exponential Moving Average.
While moving average crossovers are commonly used to identify potential trend changes, they do not reveal how far apart the two averages are. Dual EMA Spread addresses this by quantifying the separation between the fast and slow EMAs, helping traders evaluate whether trend momentum is strengthening, weakening, or transitioning.
The indicator is displayed as a histogram centered around a zero line, providing a simple visual representation of the relationship between the two moving averages.
How It Works
The indicator calculates two Exponential Moving Averages using user-defined periods.
It then measures the percentage difference between the fast EMA and the slow EMA using the following formula:
Dual EMA Spread = ((Fast EMA − Slow EMA) / Slow EMA) × Scale Factor
Positive values indicate that the fast EMA is trading above the slow EMA.
Negative values indicate that the fast EMA is trading below the slow EMA.
As the spread widens, the indicator suggests that the distance between the two averages is increasing, reflecting stronger directional momentum.
Key Features
Percentage-Based Spread
The difference between the two EMAs is expressed as a percentage rather than an absolute price value, making the indicator more consistent across instruments with different price ranges.
Trend Bias at a Glance
The zero line clearly shows whether the fast EMA is positioned above or below the slow EMA, providing an immediate view of the prevailing market bias.
Trend Strength Visualization
Changes in the histogram help visualize whether the separation between the two moving averages is expanding or contracting.
Lightweight and Efficient
The indicator performs a straightforward calculation, making it suitable for all markets and timeframes without adding unnecessary complexity.
Interpretation
Above Zero
Positive values indicate that the fast EMA is above the slow EMA, suggesting bullish market conditions.
An expanding positive histogram often reflects increasing bullish momentum.
Below Zero
Negative values indicate that the fast EMA is below the slow EMA, suggesting bearish market conditions.
An expanding negative histogram indicates strengthening bearish momentum.
Near Zero
Values close to zero indicate that the two EMAs are converging.
This frequently occurs during consolidation, trend transitions, or periods of reduced momentum.
Expanding Spread
When the histogram moves further away from zero, the distance between the fast and slow EMAs is increasing.
This generally reflects strengthening trend momentum.
Contracting Spread
When the histogram moves back toward zero, the two EMAs are converging.
This often indicates slowing momentum or the early stages of market consolidation.
Alert Conditions
The indicator includes two built-in alert conditions:
Bullish EMA Spread
- Triggered when the fast EMA crosses above the slow EMA, causing the spread to cross above zero.
Bearish EMA Spread
- Triggered when the fast EMA crosses below the slow EMA, causing the spread to cross below zero.
These alerts help traders monitor potential changes in market direction without continuously watching the chart.
Example Applications
- Identifying bullish and bearish market bias.
- Confirming moving average crossovers.
- Measuring trend strength through EMA separation.
- Monitoring momentum expansion and contraction.
- Comparing trend conditions across multiple instruments and timeframes.
Notes
Dual EMA Spread is designed as a trend analysis tool rather than a standalone trading system.
Although an expanding spread often reflects strengthening momentum, it should not be interpreted as a guarantee that the trend will continue. Likewise, a contracting spread does not necessarily indicate an immediate reversal.
For best results, use Dual EMA Spread together with price action, market structure, and support and resistance analysis to build a more complete understanding of market conditions.
Dual EMA Spread provides a simple and intuitive way to measure the relationship between fast and slow moving averages, helping traders visualize trend strength, momentum expansion, and potential market transitions. Wskaźnik
