HTF Candle TerminalTitle: HTF Candle Terminal: Advanced Institutional Volume & Range Engine
Description:
Welcome to the HTF Candle Terminal – a complete, institutional-grade toolkit designed to bridge the gap between Higher Timeframe (HTF) market structure and Lower Timeframe (LTF) execution.
This indicator acts as a real-time trading terminal directly on your chart, projecting higher timeframe data, volume clusters, volatility bands, and dynamic price zones so you never lose track of the macro trend while executing on the micro level.
What does it do?
Instead of switching back and forth between timeframes, the HTF Candle Terminal anchors itself to a Higher Timeframe of your choice (e.g., 4-Hour, Daily). Once a new HTF session begins, the terminal starts mapping the battlefield in real-time, calculating institutional volume, statistically probable ranges, and liquidity sweeps.
🔥 Core Features (A to Z)
1. Live HTF Candle Projection
To the right of the current price action, the indicator draws a live, constantly updating "Macro Candle." This gives you an instant visual representation of what the higher timeframe candle looks like (Open, High, Low, Close) without ever leaving your current chart. Accompanying the candle is a real-time trend status (e.g., "Very Strong Bullish" or "Bearish") based on how price is behaving relative to the HTF Open and Volume Nodes.
2. Dynamic Volume Profiling & POC (Point of Control)
The terminal tracks every drop of volume from the moment the HTF candle opens.
Bull/Bear Zones: It creates distinct bullish (above open) and bearish (below open) volume zones.
Split POC: It isolates the highest volume node for buyers (Short Line) and sellers (Long Line).
Zone Breakouts: If price decisively breaks and closes through a POC line from the opposite side, it invalidates that volume node, dynamically clearing the map to signal a strong directional shift.
Auto Row Size: The script includes an intelligent algorithm that automatically calculates the perfect row/tick size for the volume profile based on the volatility of the previous HTF candle.
3. Statistical Range Projections (Excursions)
How far did the last HTF candle travel from its open? The terminal mathematically measures the percentage expansion of the previous HTF candle and projects those exact percentages (e.g., +1.25%, -0.80%) onto the current candle's open. This gives you highly accurate, historically-backed target zones for the current session.
4. HTF ATR & ADR Projections (Volatility Boundaries)
Knowing where price should stop is just as important as knowing where it is going.
ATR (Average True Range): Projects the HTF's current True Range (+/- 0.5 ATR by default) from the open price, giving you realistic daily/session volatility boundaries.
ADR (Average Daily Range): Projects the chart's average daily movement anchored to the HTF open. When price hits these outer bands, it signals mathematical exhaustion—perfect for take-profit targeting or mean-reversion setups.
5. Liquidity Sweep Detection (PH & PL)
The script draws dashed lines representing the Previous HTF High (PH) and Previous HTF Low (PL). If the current price action pokes through these levels but fails to hold, the terminal instantly marks the chart with a precise "✖" label, alerting you to a potential liquidity sweep/hunt.
6. HTF Anchored VWAP
An optional (toggleable) Volume Weighted Average Price anchored precisely to the start of the HTF candle. This acts as the ultimate institutional "fair value" baseline. If price is above the VWAP, momentum is confirmed bullish; if below, bearish.
💡 How to Use the Terminal in Your Trading
Trade the Open: The most critical level is the dashed HTF Open line. Treat it as the equator. Longs above, shorts below.
Target the Extremes: Use the Excursion lines, ATR, and ADR bands as your primary Take-Profit (TP) zones. When price reaches these levels, the market is mathematically overextended.
Watch the POCs: The Bull and Bear POC lines act as heavy magnets. If price is returning to the open, watch for bounces off the POC. If a POC is broken, ride the momentum in the direction of the break.
Trade the Sweeps: Look for an "✖" marker at the PH or PL lines. A sweep combined with a rejection back into the HTF Open zone is one of the highest probability reversal setups available.
⚙️ Full Customization
Every element is built to be customized. Change the colors of the HTF candle, adjust global label sizes, toggle VWAP/ATR/ADR on or off, and tweak the transparency of historical boxes to keep your chart perfectly clean.
Developed with precision for structural and quantitative traders.
© erdensedat インジケーター

Retest RangeRetest Range: Advanced Market Structure & Setup Engine
Overview
The Retest Range indicator is a sophisticated price action tool designed to identify powerful 3-candle reversal structures, automatically map out their internal mathematics, and project highly accurate support, resistance, and target zones. It combines raw momentum filtering with an internal Market Structure (BOS/CHoCH) engine to provide a complete, minimalist dashboard for serious traders.
How It Works: The 3-Candle Setup
The core engine hunts for a specific cluster of momentum:
Bullish Setup: A single bearish (red) candle followed immediately by 3 consecutive bullish (green) candles that engulf the high of the initial red candle.
Bearish Setup: A single bullish (green) candle followed immediately by 3 consecutive bearish (red) candles that engulf the low of the initial green candle.
Once a valid setup is identified, the indicator draws a transparent box around these 3 candles to visualize the "Range".
Mathematical Levels (0.75, 0.50, 0.25)
Inside every active Box, the script automatically projects three critical Fibonacci-like quartiles:
0.75, 0.50 (The Mid/Entry Level), and 0.25.
These lines extend forward to act as immediate dynamic support and resistance. The closest, untouched active box will continuously extend its lines along with the live price until a new box forms.
Box Targets & The "Inverse" Mechanics (Hocus Pocus)
Every valid setup projects a 1:1 Box Target based on its own range size.
A Bullish box projects a target box above it.
A Bearish box projects a target box below it.
The Inverse Trap: If the price fails to hit its intended target and instead reverses to close beyond the 0.50 mid-level of the active box, an "Inverse" is triggered.
When an Inverse occurs:
The original setup lines flip their colors (a failed Bullish box turns red).
The initial Box Target transforms into a hard "Resistance" (or Support) block.
A brand new Box Target is immediately projected in the opposite direction.
This allows traders to catch failed setups and instantly ride the momentum of the reversal trap!
Built-In Market Structure Engine (BOS / CHoCH)
Running silently in the background is a pure fractal-based Market Structure engine. It maps out confirmed Pivot Highs and Pivot Lows, labeling Break of Structure (BOS) and Change of Character (CHoCH) levels. It requires a hard candle body close to confirm breaks, filtering out fake wick sweeps.
The Stats Dashboard
A clean, minimalist ICT-style panel adapts to your chart's theme (Dark/Light mode). It provides live intelligence:
Daily Bias: Compared to the daily open.
MS State: The latest trend direction from the BOS/CHoCH engine.
Live Momentum & Volume: Real-time percentage strength of the current 3-candle move compared to the historical average of all previous boxes (highlighting STRONG vs. WEAK moves).
RSI & DMI (DI+ / DI-): Essential trend strength metrics at a glance.
Key Features:
Fully customizable Body Multiplier to filter out weak/doji setups.
Automatic preservation of validated Support/Resistance (Inverse) target boxes.
Clean, non-overlapping labels and lines.
Minimalist aesthetics designed for Quant and Price Action traders. インジケーター

Mr. Market MakerMr. Market Maker (MR.MM)
Mr. Market Maker is an advanced technical analysis tool designed for traders following Smart Money Concepts (SMC) and institutional trading frameworks. It automates the complex process of identifying structural shifts in the market, specifically focusing on trend reversals and continuations using precision-calculated Gann levels.
Key Features:
Dynamic Market Structure Detection:
The script uses a sophisticated fractal-based algorithm to identify Pivot Highs and Lows. These levels serve as the foundation for institutional supply and demand zones.
Dual-Engine Setup Logic:
CHoCH Engine (Change of Character): Automatically detects when the market sentiment shifts from bullish to bearish (or vice versa), identifying high-probability reversal setups.
BOS Engine (Break of Structure): Tracks trend continuation signals, allowing traders to scale into positions during strong trending phases.
Both engines operate independently and can be toggled on/off based on your trading strategy.
Automated Gann Box Execution:
Upon a structural break, the script instantly draws a customized Gann Box. It highlights the 0.382 - 0.618 "Entry Zone", which is widely regarded as the optimal institutional discount/premium area for entries.
Real-Time Liquidity Mapping:
The indicator identifies and visualizes "Candidate" levels. These horizontal levels represent Sell-Side and Buy-Side Liquidity, providing you with dynamic targets and logical stop-loss placements.
Integrated Trend Filtering:
Includes a multi-type Moving Average filter (SMA, EMA, WMA, HMA, RMA) to ensure that your setups are always aligned with the macro trend, significantly reducing "fake-out" signals.
Smart Alert System:
A consolidated alert engine monitors both CHoCH and BOS setups. It triggers a notification the moment price enters the defined Entry Zone, ensuring you never miss a high-conviction trade.
Optimized Visual Management:
The "Show Last N" feature keeps your chart clean by managing object counts, while the "Sliding Update" logic ensures that active setups dynamically extend to the current price action.
Disclaimer
Trading involves significant risk of loss and is not suitable for every investor. The "Mr. Market Maker" indicator is provided for educational and informational purposes only. It does not constitute financial, investment, or trading advice. Past performance is not indicative of future results. The developer and associated parties are not responsible for any financial losses incurred through the use of this script. Always perform your own due diligence, backtest thoroughly, and use appropriate risk management before trading with real capital. インジケーター

Smart Money ScalpSmart Money Scalp (CHoCH + Dynamic Fibonacci)
Technical Summary:
Smart Money Scalp is a high-fidelity market structure engine engineered for traders who demand precision in both high-frequency scalping and structural swing trading. The indicator utilizes advanced fractal pivot logic to identify Character Change (CHoCH) events—the earliest signal of a trend reversal—and automatically projects institutional Fibonacci retracement zones.
Timeframe Versatility:
While specifically optimized for ultra-fast execution on Lower Timeframes (1m, 5m, 15m), the script's core structural algorithms are equally robust for Higher Timeframes (1H, 4H). This makes it a versatile powerhouse for both aggressive intra-day scalpers and disciplined structural swing traders who seek to capitalize on institutional order flow.
Key Features:
Automated Structural Analysis: Real-time identification of Market Structure Shifts (MSS/CHoCH) based on customizable fractal lengths.
Institutional Golden Zones: Automatically highlights the 0.382 - 0.618 (Optimal Entry Zone) and the 1.382 - 1.618 (Expansion/TP Zone) using dynamic, bar-synced projections.
Dynamic Visual Scaling: Fibonacci levels and boxes expand in real-time with price action, providing a live roadmap of market dynamics.
Smart Noise Reduction: Historical text labels are automatically purged upon new setup generation to maintain a professional, clutter-free charting environment.
Confluence Filters: Optional Volume Weighted Confirmation and a Multi-algorithm Trend Filter (SMA, EMA, VWMA, etc.) are integrated to filter out low-probability liquidity traps.
Pro Alert Integration: Dedicated alerts for "CHoCH Formation" and "Entry Zone Infiltration," allowing for hands-off monitoring.
Trading Protocol:
Detection: Monitor for a CHoCH break confirming a shift in market character.
Confluence: (Optional) Ensure the break is supported by the Hacim (Volume) and Trend filters.
Execution: Identify entry triggers within the blue "ENTRY ZONE".
Distribution: Target the green "TP ZONE" for profit taking during price expansion.
Disclaimer:
Trading financial instruments involves high risk. This tool is intended for analytical and educational purposes. Always prioritize capital preservation and utilize strict risk management protocols. LuxAlgo does not guarantee financial results. インジケーター

No-Repaint Entry Score Multi-Factor Confluence [LunqFX]No-Repaint Entry Score — Multi-Factor Confluence
Most indicators tell you a signal exists. This one tells you how strong
it is, why it fired, and how long it has been holding — on every bar,
across every market.
One number: 0–100. Five factors. Zero repainting.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ HOW TO USE IT — 4 STEPS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 1 — CHECK HTF TREND
Look at the SIGNAL section of the panel.
HTF Trend shows ▲ BULL or ▼ BEAR based on a confirmed higher
timeframe EMA. Only take setups in this direction.
Counter-trend setups are automatically penalised by the score.
STEP 2 — WAIT FOR THE ENTRY WINDOW
When score reaches your Signal Threshold (default 75), the panel
shows "✓ ENTRY WINDOW" and a green Entry Zone box appears on the chart.
Do not enter below this threshold — conditions are not aligned.
STEP 3 — CHECK THE CAUTION ROW
The panel always shows your weakest component.
Caution: Momentum ↓ → wait for a strong candle close
Caution: Session ↓ → wait for market session to open
Caution: Structure ↓ → you may be entering against the trend
Fix the caution before entering.
STEP 4 — LOOK FOR PRIME AND PERSISTENCE
PRIME label (score ≥80) = all 5 factors aligned. Best entries.
◆ SUSTAINED (3+ bars) → candles turn cyan. High conviction.
◆◆ ELITE (6+ bars) → candles turn gold. Exceptional setup.
The longer the streak holds, the stronger the setup.
STOP LOSS — place below/above the Entry Zone outer band (±0.55 ATR).
TAKE PROFIT — next confirmed swing level or session high/low.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ SCORE TIERS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
◆◆ ELITE PRIME ≥80, held 6+ bars — exceptional, rare
◆ SUSTAINED ≥80, held 3+ bars — high conviction
PRIME ≥80, first bar — valid entry signal
GOOD 65–79 — quality setup, consider entry
MODERATE 40–64 — mixed signals, wait
WEAK <40 — avoid, confluence collapsed
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ READING THE DASHBOARD PANEL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ENTRY SCORE — composite score 0–100. Header color shifts with tier:
green (PRIME) → cyan (SUSTAINED) → gold (ELITE) → red (WEAK)
Progress bar — 8-block visual bar. Updates every tick.
Score ▲▼— — arrow shows if score is building (▲) or fading (▼).
Useful for timing: enter when score is rising, not when it peaks.
Tier row — current tier label. Upgrades automatically to
◆ SUSTAINED PRIME or ◆◆ ELITE PRIME when streak activates.
COMPONENTS — individual 0–100 scores:
Structure = HTF EMA alignment × candle direction
Proximity = distance from nearest swing pivot level
Session = trading session quality by hour
Momentum = candle body strength (body ÷ total range)
Volatility = ATR vs 50-bar average (filters dead and spiking markets)
HTF Trend — higher timeframe direction. Confirmed bar only, no drift.
Caution — your weakest component. One actionable reason to wait.
Entry — ENTRY WINDOW or WAIT based on your Signal Threshold setting.
Persistence — consecutive PRIME bar counter.
— = no active streak 3 bars = SUSTAINED 6 bars = ELITE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ RECOMMENDED TIMEFRAMES AND MARKETS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Best timeframes: 1H · 4H · Daily
Works on: 5M · 15M · 30M (more signals, lower quality per signal)
Avoid: below 5M
Forex (EURUSD GBPUSD USDJPY) → NY or London session mode
Gold (XAUUSD) → NY session, 1H or 4H
Crypto (BTCUSD ETHUSD) → Crypto 24/7 mode
Indices (SPX NAS DAX) → NY session
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ WEIGHT PRESETS FOR DIFFERENT TRADING STYLES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Weights are fully adjustable. Presets to get you started:
Trend Following (default)
Structure 30 / Proximity 25 / Session 20 / Momentum 15 / Volatility 10
Scalping (5M–15M)
Structure 20 / Proximity 15 / Session 30 / Momentum 25 / Volatility 10
Swing Trading (Daily–Weekly)
Structure 35 / Proximity 30 / Session 5 / Momentum 20 / Volatility 10
Mean Reversion (range markets)
Structure 15 / Proximity 40 / Session 20 / Momentum 15 / Volatility 10
Crypto 24/7
Structure 30 / Proximity 30 / Session 5 / Momentum 20 / Volatility 15
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ ALERTS — 6 CONDITIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Prime Setup Detected — score enters ≥80
2. Good Setup Forming — score enters 65–79 from below
3. Setup Degraded — score drops from quality zone
4. Weak Setup Warning — score collapses below 40
5. Sustained PRIME (3 bars)— streak hits 3 consecutive PRIME bars
6. Elite PRIME (6 bars) — streak hits 6 consecutive PRIME bars
Set alerts to "Once per bar close" in TradingView settings.
All alerts fire on confirmed closed bars only — no false triggers.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ HOW THE SCORE IS CALCULATED
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Score = weighted average of 5 components, normalised to 100%.
Weights are user-configurable and auto-normalised — they do not
need to sum to exactly 100.
1. STRUCTURE (default 30%)
Compares candle direction to HTF EMA(20) direction.
Fully bi-directional: bearish candle in bearish HTF = same score
as bullish candle in bullish HTF.
Aligned: score = 65 + (body ratio × 35), max 100
Misaligned: score = 5 + (body ratio × 25), max 30
2. PROXIMITY (default 25%)
Measures distance from the nearest confirmed pivot high or low
using ta.pivothigh/pivotlow (5-bar lookback) in ATR units.
Score = 100 − (ATR distance × 18), clamped 0–100.
At the level = 97–100. Far from structure = 0–20.
3. SESSION (default 20%)
Hour-by-hour quality score based on New York time.
NY mode: 08:00–11:00 = 100 · 03:00–05:00 = 88 ·
11:00–13:00 = 72 · 13:00–16:00 = 60 ·
dead zones = 25
London and Tokyo modes follow their respective peak hours.
Crypto 24/7 = flat 75 (no session bias).
4. MOMENTUM (default 15%)
Candle body divided by total candle range.
Full-body candle = 100. Doji = 0.
Filters indecisive wick-heavy candles.
5. VOLATILITY (default 10%)
ATR(14) divided by its 50-bar SMA.
Sweet spot 0.7–1.6 = score 100.
Too quiet (< 0.7): score scales down.
Too explosive (> 1.6): score drops sharply.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ NO-REPAINT — HOW IT IS ACHIEVED
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Three sources of repaint addressed:
HTF EMA: request.security(..., ta.ema(close,20) , lookahead_on)
The reads the EMA of the PREVIOUS confirmed HTF bar.
Locked until the next HTF candle closes. No live-bar drift.
Labels: all signals fire only on barstate.isconfirmed.
Never drawn on an open bar.
Pivots: 5-bar right lookback on confirmed bars only.
Verify: TradingView Replay mode — bar-by-bar playback matches
published chart exactly on any historical period.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ SETTINGS REFERENCE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Higher Timeframe — blank = auto.
Auto logic: 1–5M→30M · 6–15M→1H · 16–60M→4H ·
61–240M→Daily · Daily→Weekly · Weekly→Monthly
Signal Threshold — Entry Window fires above this score. Default 75.
PRIME tier is always fixed at ≥80 regardless of this setting.
Trading Session — NY · London · Tokyo · Crypto 24/7
Component Weights — all five individually adjustable.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ RISK DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is a decision-support tool, not a trading strategy.
No backtested win rate or profit factor is implied or claimed.
Past signals do not guarantee future performance.
Always use a defined stop loss and proper position sizing.
Trading involves risk of loss. Use at your own discretion. インジケーター

Ultimate Scalping Tool 2.0 [BullByte]Ultimate Scalping Tool 2.0
What This Tool Was Built For
UST 2.0 is a flux oscillator designed to help scalpers and intraday traders read market state more clearly. It sits in the lower pane of your chart and shows you whether the current market environment is trending cleanly, compressing before a move, chopping in a range, or losing momentum after an extension.
The core idea is simple. Four internal measurements feed into one oscillator. Each measurement looks at a different part of market behavior: how cleanly price is traveling, whether momentum is meaningful given current volatility, what volatility itself is doing, and whether participation is building or fading. These four readings are weighted differently depending on what the market is doing right now. During a trend, directional measurements get more weight. During compression, volatility and flow get more weight. During a range, momentum and participation matter most.
The output is displayed as a candle on the oscillator pane. The candle color, the regime label, the confluence histogram, and the structural overlays all update on every bar to give you a current read on conditions. This is not a signal generator. It is a state monitor. You still need to decide when and how to act.
---
Why Version 2.0 Exists Separately
Ultimate Scalping Tool Version 1.0 is still published. It uses a different internal structure and outputs labeled signals like Strong Buy and Pullback Sell. Many traders built their workflows around that approach, and changing it would have broken their setups. Keeping both versions available lets traders choose the workflow that fits how they trade.
Version 2.0 shifts away from signal labels toward market state classification. The four internal measurements are different. The adaptive weighting engine is different. The visual output is different. The confluence scoring, multi-timeframe context, and oscillator-native zones are all new. The two scripts serve related but different purposes, which is why they exist side by side rather than as an update that replaces the first one.
The continuity between them is the Flux State Candle concept. That visualization approach worked well enough in version 1.0 that it became the foundation for how version 2.0 displays its output.
---
One Engine, Not a Collection of Indicators
This is worth addressing directly because it is easy to look at a script that mentions RSI, ATR, and Bollinger Bands and assume it is just wrapping existing indicators together. That is not what is happening here.
RSI does not appear on the chart. ATR does not appear on the chart. Bollinger Bands do not appear on the chart. None of the four internal measurements produce a visible output of their own. They are inputs into a calculation that produces one single output: the Flux Oscillator value. That value is then displayed as a candle.
The reason RSI is used inside the Adaptive Momentum subsystem is not because RSI is a good indicator to show. It is because RSI gives a normalized momentum reading on a known scale, which makes it easier to combine mathematically with the other three measurements on equal footing. The period is not fixed. It changes at runtime based on current volatility, which standard RSI does not do. The output is scaled before it enters the weighting engine. What comes out the other side is not RSI. It is one weighted component of a composite reading.
The same logic applies to ATR inside the Volatility Regime subsystem and to bar-structure calculations inside the Flow Proxy. These are raw materials, not finished products. They feed a pipeline that produces something different from any of them individually.
The four subsystems were chosen because they answer four different questions: is price traveling efficiently, is momentum meaningful right now, is volatility expanding or contracting, and is participation building or fading. Those four questions together give a more complete picture of market state than any one of them alone. That is the design intent, and it is why the adaptive weighting engine matters. Different market conditions make different questions more relevant. The engine adjusts accordingly.
---
The Four Internal Measurements
The oscillator is built on four subsystems. Each one measures something the others do not.
Directional Efficiency looks at how cleanly price is moving. A market that travels 100 points in a straight line has high efficiency. A market that gyrates up and down while netting only 20 points forward has low efficiency. This helps you see whether a trending move is organized or grinding. For scalping, clean efficient moves are easier to work with than choppy grinders.
Adaptive Momentum uses RSI internally but selects the period based on current volatility. When volatility is high, it uses a shorter period to stay responsive. When volatility is low, it uses a longer period to reduce noise. The reading is then adjusted so that momentum in a high-volatility environment is not overstated and momentum in a quiet environment is not understated.
Volatility Regime combines three volatility signals: where ATR sits within its recent range, whether short-window ATR is rising or falling relative to long-window ATR, and where Bollinger Band width sits within its range. Positive values mean volatility is expanding. Negative values mean it is contracting. Deep negative values below -0.20 usually mean the market is compressing hard, which often precedes directional expansion.
Flow Proxy estimates directional participation from bar structure and relative volume. It approximates buying versus selling pressure using close position within range, price velocity weighted by volume, and absorption detection for high-volume bars with small bodies. This is not true order flow because that requires tick data. It is a proxy built from OHLCV data, and it behaves like one.
These four readings are combined using weights that shift based on what the market is doing. You get one oscillator value per bar. That value is displayed as a candle, classified into a regime state, scored for confluence, and optionally blended with a higher-timeframe context reading.
---
How the Regime Classification Works
The script classifies every bar into one of four states: TREND UP, TREND DOWN, COIL, or RANGE.
When efficiency is strong, momentum is aligned, and volatility is not compressing, the regime is TREND . When efficiency is low, volatility is compressing hard, and participation is building, the regime is COIL . When none of those conditions are met, the regime is RANGE .
The regime label appears near the bottom of the pane on the last bar. The background tint changes subtly based on the regime. This classification affects how the four measurements are weighted before they combine into the oscillator value.
---
The Confluence Histogram
The gold histogram at the bottom of the pane shows the confluence score from 0 to 100. The score measures how aligned six independent factors are: regime matches oscillator direction, oscillator magnitude is strong, the four internal measurements agree on direction, the higher timeframe aligns with the current one, flow quality is clean without absorption, and volatility context supports the current structure.
A low score means conditions are mixed or weak. A high score means the environment is organized and several factors are confirming the same picture. The histogram grows taller as the score rises. When the bar is short and dark amber, confluence is low. When the bar is tall and bright gold, confluence is high.
This is useful for filtering. If you are watching for a breakout from a consolidation and confluence is at 80, the setup has more environmental support than the same breakout pattern with confluence at 30. The score does not tell you to enter or exit. It tells you whether the broader conditions are organized or scattered.
---
How to Read the Flux State Candle
The candle is built from the oscillator value, not from price. Green candles mean the oscillator is above its moving average. Red candles mean it is below. Violet candles mean a volume absorption bar was detected , which is a specific condition where high volume produced a small-bodied bar.
The border brightness increases when the oscillator is further from its moving average. A bright border means conviction. A dim border means the reading is close to neutral.
When the candle is consistently green and the cloud below it is stacked with the fast line above the slow line, the oscillator trend is internally aligned in a bullish direction. When the candle flips to red and the cloud inverts, the oscillator trend is bearish. When the cloud is mixed and candles are alternating color frequently, the oscillator is in a transition or range state.
---
Oscillator-Native Zones and Trendlines
The red and green-cyan lines you see on the oscillator pane are support and resistance zones, but they are zones on the oscillator itself, not on price. They mark levels where the oscillator has repeatedly turned. These are built from confirmed pivot highs and lows.
When the oscillator approaches a red resistance zone that has been touched five times, you know the flux reading is approaching a level where it has reversed before. If price is near a key price level at the same time and confluence is high, that convergence can add weight to a reversal setup you are already watching on the price chart.
The cyan and orange trendlines work the same way. They connect confirmed swing points on the oscillator. A cyan ascending trendline from oscillator swing lows tells you the oscillator structure is building higher. An orange descending trendline from oscillator swing highs tells you the oscillator structure is weakening lower. These lines appear after the swing points are confirmed, not before.
All of these structural tools use confirmed pivot logic, which means they appear a few bars after the actual turning point. This is intentional. Unconfirmed pivots fail frequently. Waiting for confirmation removes most of the false starts. When you see a zone or trendline appear or update, it is showing you structure that has been validated by subsequent price action, not structure that might form.
Reading the oscillator structure in practice looks like this.
Two red resistance lines sitting around +25 and +30 on the oscillator, both labelled R MAJO R, tell you that every time flux has pushed up into that band it has been rejected. That ceiling has held six and seven touches respectively. Until flux breaks and closes above those two red lines, the upside is capped on the oscillator. Below there is an S ZONE 3T sitting near -15. That is the floor that has caught the most recent bounce.
On the trendline side, three cyan ascending lines rising from the lower left are bull trendlines built from oscillator swing lows. The lowest at TL 52% is the broadest support. The middle at TL 66% is tighter. The top at TL 74% is the steepest and most recent. If flux bounces off the TL 74% line, that is the most important touch right now. An orange descending line pressing down from above is the bear trendline. When flux is squeezed between a rising cyan trendline and a falling orange trendline, that is a classic wedge compression on the oscillator and it often precedes a directional expansion once one side breaks.
---
Divergence Labels
When the oscillator and price stop agreeing on direction, the divergence engine marks it on the chart.
There are four labels. Each one means something specific.
DIV+ appears below the oscillator at a swing low. It means price made a lower low on the price chart, but the oscillator made a higher low at the same point. The downward move is losing internal support. This is regular bullish divergence and it tends to appear near potential exhaustion of a downward move.
DIV- appears above the oscillator at a swing high. It means price made a higher high on the price chart, but the oscillator made a lower high at the same point. The upward move is losing internal support. This is regular bearish divergence and it tends to appear near potential exhaustion of an upward move.
H+ appears as a small circle at a swing low. It means price made a higher low, a normal pullback in an uptrend, but the oscillator made a lower low. The oscillator dipped deeper than price did. This is hidden bullish divergence. It often appears mid-trend during a pullback and can suggest the trend is likely to continue.
H- appears as a small circle at a swing high. It means price made a lower high, a normal pullback in a downtrend, but the oscillator made a higher high. The oscillator pushed higher than price did. This is hidden bearish divergence. It often appears mid-trend during a bounce and can suggest the downtrend is likely to continue.
All four labels appear a few bars after the actual swing point because the pivot must be confirmed by subsequent bars before the label is placed. When you see a label appear, it is sitting on a past bar where the swing has already been validated. Nothing is marked in advance. The label was not there before, and it will not move or disappear after it appears.
---
How This Fits Into a Price Action Workflow
Here is one example of how the tool can layer into a real trade setup.
You are watching a 5-minute chart. Price has been consolidating in a tight range for the last hour. On the main price chart, you see a clean horizontal level being tested multiple times. That is your setup area. You are waiting for a breakout.
You glance at the oscillator pane. The regime label says COIL. The flux candles are small and alternating color near the zero line. The confluence histogram is rising and just reached 65. VRI in the dashboard shows -0.25, which is hard compression. COFP is positive and building.
This tells you the oscillator agrees with what you are seeing on price: the market is compressing. Volatility is contracting. Participation is starting to build in one direction. Confluence is improving, meaning the internal measurements are starting to agree.
You wait. Price breaks the consolidation upward on increased volume. At the same moment, the flux candle turns bright green with a strong border. The regime label flips to TREND UP. The confluence histogram jumps to 78. The cloud stacks bullish. The dashboard shows all four internal measurements turned positive.
You already know where your entry is from the price chart. The oscillator is not telling you to buy. The oscillator is telling you the conditions support the breakout you are watching. Efficiency turned positive, meaning price is traveling cleanly. Momentum confirmed. Volatility started expanding. Flow is directional. The environment is organized.
You take the trade based on your price-action plan. You manage the trade from price structure. But while you are in the trade, you glance at the oscillator occasionally. If the flux candle stays green and confluence stays high, conditions remain supportive. If the candle turns red and confluence drops, you tighten your management because the internal read is weakening.
A real chart example of what COIL into expansion looks like: Gold on the 3-minute chart shows a full cycle, a base building through the early session, a strong impulsive rally, then a controlled rollover where the oscillator hugs just above zero with the regime label reading COIL. The oscillator has compressed hard after the post-peak selloff, and the cyan ascending bull trendline is now acting as the floor of the oscillator structure. This is the compression phase the tool is designed to identify before the next directional move develops.
---
What This Tool Does Not Do
This script does not tell you where to enter or exit. It does not produce buy and sell signals. The flux candle, the regime label, the confluence score, and the structural overlays all describe conditions, not actions.
The zones and trendlines on the oscillator are not price levels. They are oscillator levels. They tell you where the oscillator has turned before, not where price will turn next.
The HTF oscillator is a simplified version of the current-timeframe calculation. It uses fixed parameters and reduced components for cross-timeframe stability. It is useful for context, but it is not identical to the full engine running on the higher timeframe.
Pivot-based elements appear after confirmation, which means they lag the actual pivot by the confirmation period . This is intentional. The tradeoff is fewer false signals at the cost of slightly delayed information.
Confluence measures environmental alignment, not trade direction. A high score means conditions are organized. A low score means they are not. Neither tells you to buy or sell.
---
Recommended Timeframes and Settings
This tool works best on intraday timeframes from 1 minute to 1 hour. For active scalping, use 1-minute to 5-minute charts with the HTF set to 15 minutes. For slightly slower intraday swings, use 15-minute to 60-minute charts with the HTF set to 4 hours or daily.
The multi-timeframe panel should show timeframes that are meaningfully different from your chart timeframe. If you are on 5 minutes, set the panel to 15 minutes, 60 minutes, and 240 minutes. If the panel shows timeframes that are too close together, the readings will be nearly identical and provide no additional information.
The default settings are balanced for general use. If the oscillator is too noisy, increase the DER length or the AMVS base period. If the oscillator is too slow, decrease them. If zones and trendlines are appearing too frequently, increase the minimum touch requirements. If they are not appearing enough, decrease them.
The adaptive weighting setting should generally stay on unless you have a specific reason to use fixed manual weights. The adaptive behavior is part of how the tool adjusts to different market conditions.
---
Understanding the Limitations
No indicator can predict the future . This tool shows you the current state of several internal measurements and how aligned they are. It does not know what will happen next.
Markets can shift from organized to chaotic in seconds. A high confluence reading can drop to low confluence on the next bar if one of the internal measurements changes direction. That is normal. The tool is reactive, not predictive .
The S/R zones and trendlines are based on past oscillator behavior. Just because the oscillator turned at a zone five times before does not mean it will turn there again. Past structure informs context but does not guarantee repetition.
Divergence suggests momentum quality is changing. It does not guarantee reversal. Many divergences resolve with price continuing in the original direction after a brief pause or consolidation.
Volume absorption detection is based on relative volume and body size. It identifies a specific bar condition but does not tell you how the market will respond to that condition.
---
A Note on Expectations
This script was built to give scalpers and intraday traders more clarity about market state. It was not built to replace chart reading, price action analysis, or trade management discipline.
If you are looking for a tool that tells you exactly when to enter and exit, this is not that tool. If you are looking for a tool that helps you see whether the current environment is organized or messy, whether internal measurements are aligned or conflicting, and whether higher-timeframe context supports or opposes your intended direction, this can help with that.
The best results come when the oscillator is used as confirmation for setups you are already identifying from price structure, not as a standalone signal generator. The flux candle, regime label, confluence score, and structural overlays are all context layers. They work best when layered on top of solid price action principles, not in place of them.
---
Disclaimer
This script is published for educational purposes. Trading involves substantial risk of loss. No indicator or tool can eliminate that risk. Past performance of any indicator does not predict future results. The author is not responsible for any trading decisions made using this script. Always apply your own risk management, test thoroughly on demo or simulation before live use, and never risk more than you can afford to lose.
- BullByte インジケーター

Trinity FlowOverview
This strategy is based on the trading method I used when I first entered the world of investing at age 20. While the original entry conditions and exit rules were quite rough, I've revived this approach with a sense of nostalgia, refining it into a modern form after years of experience.
Strategy Features
Trend Filter: Trend determination using three EMAs (8, 14, 50)
EMA alignment 8 > 14 > 50: Long condition (EMA line: White)
EMA alignment 50 > 14 > 8: Short condition (EMA line: Red)
Other alignments: Range/neutral (EMA line: Gray)
Entry Timing: Stochastic RSI (3, 3, 14, 14) crossover
Long entry on the bar following a confirmed golden cross
Short entry on the bar following a confirmed death cross
Risk Management: ATR (14) based fixed ratios
Stop Loss: ATR × 3
Take Profit: ATR × 2
Visual Design
White EMA line: Long opportunity zone
Red EMA line: Short opportunity zone
Gray EMA line: No clear trading opportunity
Light white box: Profit zone
Light red box: Loss zone
Parameters
All parameters (EMA periods, Stoch RSI settings, ATR period, SL/TP multipliers) are fully adjustable in the settings.
Disclaimer
Frequent false signals may occur in ranging markets
Works best in strong trending markets
Past performance does not guarantee future results
概要
このストラテジーは、私が20歳の頃、初めて投資の世界に入った時に使っていた手法を基にしています。当時は粗削りなエントリー条件と決済ルールでしたが、長年の経験を経て、懐かしさを感じながら現代的な形に復活させました。
手法の特徴
トレンドフィルター:3本のEMA(8, 14, 50)の並び順でトレンドを判定
EMAが8 > 14 > 50の順:ロング条件(EMAライン:白)
EMAが50 > 14 > 8の順:ショート条件(EMAライン:赤)
それ以外:レンジ状態(EMAライン:灰色)
エントリータイミング:Stochastic RSI(3, 3, 14, 14)のクロス
ゴールデンクロス確定後の次足でロングエントリー
デッドクロス確定後の次足でショートエントリー
リスク管理:ATR(14)ベースの固定比率
損切:ATR × 3倍
利確:ATR × 2倍
ビジュアルデザイン
白いEMAライン:ロング狙える状態
赤いEMAライン:ショート狙える状態
灰色のEMAライン:エントリーチャンスなし
薄い白ボックス:利益ゾーン
薄い赤ボックス:損失ゾーン
パラメータ
すべてのパラメータ(EMA期間、Stoch RSI設定、ATR期間、損切・利確倍率)は設定から調整可能です。
注意事項
レンジ相場では頻繁にダマシが発生する可能性があります
強いトレンド相場で最も効果を発揮します
バックテストの結果は過去のパフォーマンスであり、将来の結果を保証するものではありません ストラテジー

インジケーター

インジケーター

インジケーター

Smart Trader, Episode 04, by Ata Sabanci, Candles and Z ScoresSmart Trader, Episode 04
Candles and Z-Scores: A Statistical Approach to Market Analysis
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
OVERVIEW
This indicator applies Z-Score statistical analysis to measure how unusual current market conditions are compared to historical norms. It simultaneously analyzes five key metrics: Price, Total Volume, Buy Volume, Sell Volume, and Delta (Buy minus Sell) . The system detects 60 academically-researched market scenarios and provides visual feedback through Z-Lines (support/resistance levels), Event Markers, Trend Channels, and a comprehensive Dashboard.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CORE CONCEPT: WHY Z-SCORE?
A Z-Score measures how many standard deviations a value is from its mean. In financial markets, extreme Z-Scores indicate statistically rare events that often precede significant price movements.
Mathematical Formula:
Z = (Current Value - Mean) / Standard Deviation
Interpretation:
• Z ≥ +2.0: Extremely high (occurs approximately 2.5% of the time)
• Z ≥ +1.0: Above average
• Z ≈ 0: Normal (near the mean)
• Z ≤ -1.0: Below average
• Z ≤ -2.0: Extremely low (occurs approximately 2.5% of the time)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ACADEMIC FOUNDATION
This indicator is inspired by / grounded in market microstructure literature (abbreviated citations in-script) from market microstructure literature:
• Price-Volume Relationship - Karpoff (1987), Journal of Financial and Quantitative Analysis, Cambridge
Volume is positively correlated with price change magnitude
• Order Flow Imbalance - Cont, Kukanov, Stoikov (2014), Journal of Financial Econometrics
Order imbalance drives price more reliably than raw volume
• Informed Trading (PIN Model) - Easley, Kiefer, O'Hara, Paperman (1996), Journal of Finance
Buy/Sell imbalance reveals informed trader activity
• Mixture of Distributions - Tauchen & Pitts (1983), Clark (1973)
Volume clusters with volatility regimes
• Volume Predictability - Gervais, Kaniel, Mingelgrin (2001)
Volume shocks predict future returns
• Liquidity & Order Imbalance - Chordia, Roll, Subrahmanyam (2002)
Order imbalance affects short-term returns
• Volume-Return Dynamics - Llorente, Michaely, Saar, Wang (2002)
Speculation vs. risk-sharing patterns
• Reversal vs. Continuation - Campbell, Grossman, Wang (MIT)
High volume predicts lower autocorrelation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
VOLUME ENGINE
The indicator offers two methods for decomposing total volume into Buy and Sell components:
Method 1: Geometry (Approximation)
Uses candle structure to estimate buying and selling pressure:
Buy Volume = Total Volume × (Close - Low) / (High - Low)
Sell Volume = Total Volume × (High - Close) / (High - Low)
• Works on all instruments without additional data requirements
• Fast calculation
• Less precise than intrabar method
Method 2: Intrabar (Precise)
Uses Lower Timeframe (LTF) tick/second data to aggregate actual up-ticks versus down-ticks:
• More accurate volume decomposition
• Requires LTF data availability
• Configurable LTF: 1T (tick), 1S, 15S, 1M
Delta Calculation:
Delta = Buy Volume - Sell Volume
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Z-SCORE SYSTEM
The system calculates Z-Scores for five metrics simultaneously, using a configurable lookback period (default: 20 bars):
• Zp (Price Z-Score): Measures price deviation from its mean
• Zv (Volume Z-Score): Measures total volume deviation
• Zbuy (Buy Volume Z-Score): Measures buying pressure deviation
• Zsell (Sell Volume Z-Score): Measures selling pressure deviation
• ZΔ (Delta Z-Score): Measures order flow imbalance deviation
Threshold Constants:
• ZH (Z High) = 2.0: Extreme threshold
• ZM (Z Medium) = 1.0: Moderate threshold
• Z0 (Z Zero) = 0.5: Near-zero threshold
Group System:
The analysis window is divided into groups (default: 5 groups × 20 bars = 100 bar total window). Group numbers (1, 2, 3...) are displayed above candles when enabled, helping identify the relative age of detected levels.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Z-LINES (SUPPORT/RESISTANCE LEVELS)
When any metric reaches an extreme Z-Score, the system marks that price level as a significant support or resistance zone.
Detection Logic:
• Upper Z-Line: Drawn from the HIGH when Z ≥ upper threshold (default +2.0)
• Lower Z-Line: Drawn from the LOW when Z ≤ lower threshold (default -2.0)
Multi-Metric Detection:
Z-Lines can be triggered by any of the five metrics (Price, Volume, Buy, Sell, Delta). When multiple metrics trigger at similar price levels, they are clustered together into a single combined label showing all contributing metrics.
Persistence:
Z-Lines persist for the entire analysis window (Period × Groups bars) and are NOT removed when price touches them. This allows traders to see historical support/resistance levels that may still be relevant.
Anti-Overlap System:
Labels are automatically repositioned to prevent overlap. The "Label Min Gap (%)" setting controls minimum vertical separation between ALL labels (both upper and lower), ensuring readability even when multiple levels cluster together.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EVENT DETECTION ENGINE (60 SCENARIOS)
The system analyzes 60 distinct market scenarios based on Z-Score combinations. Each scenario is derived from academic research and assigned a confidence score based on signal strength and alignment.
Notation:
• Zp = Price Z-Score
• Zv = Total Volume Z-Score
• Zbuy = Buy Volume Z-Score
• Zsell = Sell Volume Z-Score
• ZΔ = Delta Z-Score
• dirP = Price direction (+1 if Zp > 0.5, -1 if Zp < -0.5, else 0)
• = Previous bar value
• ZH = 2.0 (High threshold)
• ZM = 1.0 (Medium threshold)
• Z0 = 0.5 (Zero threshold)
─────────────────────────────────────────────────────────────
CATEGORY A: PRICE-VOLUME (Events 1-10)
Based on: Karpoff (1987), Tauchen-Pitts (1983), Clark (1973)
─────────────────────────────────────────────────────────────
Event 1: Breakout Confirmed
|Zp| ≥ ZH AND Zv ≥ ZH AND sign(ZΔ) = dirP AND dirP ≠ 0
Direction: Bullish/Bearish (follows price direction)
Event 2: Trend Strength Confirmed
|Zp| ≥ ZH AND Zv ≥ ZH
Direction: Follows price direction
Event 3: Fragile Move
|Zp| ≥ ZH AND Zv ≤ -ZM
Direction: Warning (price move without volume support)
Event 4: Weak Rally
Zp ≥ ZH AND Zv ≤ -ZH
Direction: Warning (price up without volume)
Event 5: Weak Selloff
Zp ≤ -ZH AND Zv ≤ -ZH
Direction: Warning (price down without volume)
Event 6: Momentum Build
ZM ≤ |Zp| < ZH AND Zv ≥ ZH
Direction: Follows price direction
Event 7: Churn
|Zp| ≤ Z0 AND Zv ≥ ZH
Direction: Neutral (high volume, low price movement)
Event 8: Quiet Compression
|Zp| ≤ Z0 AND Zv ≤ -ZH
Direction: Neutral (low volume, low price movement)
Event 9: High Volume Regime
Zv ≥ ZH
Direction: Neutral
Event 10: Low Volume Regime
Zv ≤ -ZH
Direction: Neutral
─────────────────────────────────────────────────────────────
CATEGORY B: ORDER-FLOW / DELTA (Events 11-16)
Based on: Cont, Kukanov, Stoikov (2014), Easley, Kiefer, O'Hara, Paperman (1996)
─────────────────────────────────────────────────────────────
Event 11: Imbalance Drives Price
|ZΔ| ≥ ZH AND sign(ZΔ) = dirP AND dirP ≠ 0
Direction: Follows price direction (dirP), with delta alignment required
Event 12: Divergence Top
Zp ≥ ZH AND ZΔ ≤ -ZH
Direction: Warning (distribution at top)
Event 13: Divergence Bottom
Zp ≤ -ZH AND ZΔ ≥ ZH
Direction: Warning (accumulation at bottom)
Event 14: Absorption Positive
|Zp| ≤ Z0 AND Zv ≥ ZH AND ZΔ ≥ ZH
Direction: Bullish (buy absorption, support forming)
Event 15: Absorption Negative
|Zp| ≤ Z0 AND Zv ≥ ZH AND ZΔ ≤ -ZH
Direction: Bearish (sell absorption, resistance forming)
Event 16: Depth Wall
Zv ≥ ZH AND |ZΔ| ≥ ZH AND |Zp| ≤ Z0
Direction: Neutral (market depth absorbing)
─────────────────────────────────────────────────────────────
CATEGORY C: BUY VS SELL (Events 17-23)
Based on: Easley, Kiefer, O'Hara, Paperman (1996), Chordia, Roll, Subrahmanyam (2002)
─────────────────────────────────────────────────────────────
Event 17: Aggressive Buy Dominance
Zbuy ≥ ZH AND ZΔ ≥ ZH AND Zsell ≤ -ZM
Direction: Bullish
Event 18: Aggressive Sell Dominance
Zsell ≥ ZH AND ZΔ ≤ -ZH AND Zbuy ≤ -ZM
Direction: Bearish
Event 19: Two-Sided Battle
Zbuy ≥ ZH AND Zsell ≥ ZH AND |ZΔ| ≤ Z0
Direction: Neutral (buyers and sellers equally strong)
Event 20: Battle with Buy Edge
Zbuy ≥ ZH AND Zsell ≥ ZH AND ZM ≤ ZΔ < ZH
Direction: Bullish
Event 21: Battle with Sell Edge
Zbuy ≥ ZH AND Zsell ≥ ZH AND -ZH < ZΔ ≤ -ZM
Direction: Bearish
Event 22: Hidden Accumulation
Zbuy ≥ ZH AND |Zp| ≤ Z0 AND Zv ≥ ZH
Direction: Bullish (buy shock without price movement)
Event 23: Hidden Distribution
Zsell ≥ ZH AND |Zp| ≤ Z0 AND Zv ≥ ZH
Direction: Bearish (sell shock without price movement)
─────────────────────────────────────────────────────────────
CATEGORY D: PREDICTABILITY (Events 24-26)
Based on: Gervais, Kaniel, Mingelgrin (2001), Karpoff (1987)
─────────────────────────────────────────────────────────────
Event 24: Volume Shock Positive Drift
Zv ≥ ZH AND |Zp| ≤ ZM
Direction: Follows price direction
Event 25: Volume Shock Negative Drift
Zv ≤ -ZH AND |Zp| ≤ ZM
Direction: Opposite to price direction
Event 26: Abnormal Volume Info Arrival
Zv ≥ ZH
Direction: Neutral
─────────────────────────────────────────────────────────────
CATEGORY E: REVERSAL VS CONTINUATION (Events 27-30)
Based on: Campbell, Grossman, Wang (MIT), Llorente, Michaely, Saar, Wang (2002)
─────────────────────────────────────────────────────────────
Event 27: High Vol Reversal Risk
Zv ≥ ZH
Direction: Warning (high volume implies lower positive autocorrelation)
Event 28: Low Vol Continuation Risk
Zv ≤ -ZH
Direction: Follows price direction (trend likely continues)
Event 29: Speculation Continuation
Zv ≥ ZH AND |ZΔ| ≥ ZM AND sign(ZΔ) = dirP AND dirP ≠ 0
Direction: Follows price direction
Event 30: Risk Sharing Reversal
Zv ≥ ZH AND |ZΔ| ≤ Z0
Direction: Warning (potential reversal)
─────────────────────────────────────────────────────────────
CATEGORY F: IMBALANCE LAG (Events 31-33)
Based on: Chordia, Roll, Subrahmanyam (2002)
─────────────────────────────────────────────────────────────
Event 31: Persistent Imbalance Push
|ZΔ| ≥ ZM AND |ZΔ | ≥ ZM AND sign(ZΔ) = sign(ZΔ )
Direction: Follows delta direction (persistent pressure)
Event 32: Imbalance Pressure Decay
(ZΔ ≥ ZM AND ZΔ ≤ -ZM) OR (ZΔ ≤ -ZM AND ZΔ ≥ ZM)
Direction: Warning (imbalance sign flip)
Event 33: Intraday Imbalance Predicts
|ZΔ| ≥ ZM
Direction: Follows delta direction
─────────────────────────────────────────────────────────────
CATEGORY G: SUPPORT/RESISTANCE (Events 34-36)
Based on: Peskir (Manchester)
─────────────────────────────────────────────────────────────
Event 34: SR Barrier Event
|Zp| ≤ Z0 AND Zv ≥ ZH
Direction: Neutral (price stalls with high volume)
Event 35: Volume Backed SR Level
|Zp| ≤ Z0 AND Zv ≥ ZH AND |ZΔ| ≥ ZM
Direction: Follows delta direction
Event 36: Volume Poor SR Level
|Zp| ≤ Z0 AND Zv ≤ -ZM
Direction: Warning (weak S/R without volume)
─────────────────────────────────────────────────────────────
CATEGORY H: EXTENDED ANALYSIS (Events 37-50)
Based on: Extended market microstructure analysis
─────────────────────────────────────────────────────────────
Event 37: Climax Buy
Zbuy ≥ ZH AND Zp ≥ ZH AND Zv ≥ ZH
Direction: Warning (extreme buying exhaustion, potential top)
Event 38: Climax Sell
Zsell ≥ ZH AND Zp ≤ -ZH AND Zv ≥ ZH
Direction: Warning (extreme selling exhaustion, potential bottom)
Event 39: Stealth Accumulation
Zbuy ≥ ZM AND |Zp| ≤ Z0 AND Zv ≤ Z0
Direction: Bullish (quiet buying)
Event 40: Stealth Distribution
Zsell ≥ ZM AND |Zp| ≤ Z0 AND Zv ≤ Z0
Direction: Bearish (quiet selling)
Event 41: Volume Divergence Bull
Zp ≤ -ZM AND Zv ≤ -ZM
Direction: Bullish (price down but volume declining)
Event 42: Volume Divergence Bear
Zp ≥ ZM AND Zv ≤ -ZM
Direction: Bearish (price up but volume declining)
Event 43: Delta Price Alignment
|Zp| ≥ ZM AND |ZΔ| ≥ ZM AND sign(Zp) = sign(ZΔ)
Direction: Follows price direction (strong trend confirmation)
Event 44: Extreme Compression
|Zp| ≤ Z0 AND Zv ≤ -ZH
Direction: Neutral (very low volatility)
Event 45: Volatility Expansion
|Zp| ≥ ZH AND Zv ≥ ZH
Direction: Follows price direction (breakout from compression)
Event 46: Buy Exhaustion
Zbuy ≥ ZH AND Zp ≤ Z0
Direction: Warning (high buy but price fails)
Event 47: Sell Exhaustion
Zsell ≥ ZH AND Zp ≥ -Z0
Direction: Warning (high sell but price holds)
Event 48: Trend Acceleration
|Zp| ≥ ZM AND |Zp| > |Zp | AND Zv ≥ ZM
Direction: Follows price direction (increasing momentum)
Event 49: Trend Deceleration
|Zp| ≥ ZM AND |Zp| < |Zp | AND sign(Zp) = sign(Zp )
Direction: Warning (decreasing momentum)
Event 50: Multi Divergence
(Zp ≥ ZM AND ZΔ ≤ -ZM) OR (Zp ≤ -ZM AND ZΔ ≥ ZM) + |Zp| ≥ ZM AND Zv ≤ -ZM
Direction: Warning (multiple divergence signals)
─────────────────────────────────────────────────────────────
CATEGORY I: TREND-INTEGRATED (Events 51-60)
Based on: Combined price-volume-delta trend analysis
─────────────────────────────────────────────────────────────
Event 51: Trend Breakout Confirmed
|Zp| ≥ ZH AND Zv ≥ ZH AND |ZΔ| ≥ ZM AND sign(ZΔ) = dirP AND dirP ≠ 0
Direction: Follows price direction
Event 52: Trend Support Test
Zp ≥ ZM AND Z0 ≤ Zp < ZM AND ZΔ ≥ Z0
Direction: Bullish (pullback in uptrend)
Event 53: Trend Resistance Test
Zp ≤ -ZM AND -ZM < Zp ≤ -Z0 AND ZΔ ≤ -Z0
Direction: Bearish (rally in downtrend)
Event 54: Trend Reversal Signal
sign(Zp) ≠ sign(Zp ) AND |Zp| ≥ ZM AND |Zp | ≥ ZM
Direction: Follows new price direction (momentum flip)
Event 55: Channel Absorption
|Zp| ≤ Z0 AND Zv ≥ ZH
Direction: Neutral (range-bound with volume)
Event 56: Trend Continuation Volume
|Zp| ≥ ZM AND Zv ≥ ZM AND sign(ZΔ) = dirP AND dirP ≠ 0
Direction: Follows price direction (healthy trend with volume)
Event 57: Trend Exhaustion
|Zp| ≥ ZM AND Zv ≤ -ZM AND |Zp| < |Zp |
Direction: Warning (trend losing steam)
Event 58: Range Breakout Pending
|Zp| ≤ Z0 AND Zv ≤ -ZH AND |ZΔ| ≥ ZM
Direction: Follows delta direction (compression with imbalance)
Event 59: Trend Quality High
|Zp| ≥ ZM AND sign(ZΔ) = dirP AND Zv ≥ Z0 AND dirP ≠ 0
Direction: Follows price direction (strong aligned signals)
Event 60: Trend Quality Low
|Zp| ≥ ZM AND sign(ZΔ) ≠ dirP AND dirP ≠ 0
Direction: Warning (conflicting signals)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TREND CHANNEL SYSTEM
The trend channel system is adapted from Smart Trader Episode 03 to provide consistent visual context for price action analysis.
How It Works:
• Divides the chart into blocks based on Z-Score groups
• Calculates OHLC (Open, High, Low, Close) for each block
• Detects Higher Highs/Higher Lows (uptrend) or Lower Highs/Lower Lows (downtrend) patterns
• Draws channel lines connecting block extremes
• Classifies by angle: steep angles indicate trends, flat angles indicate ranges
Channel Classifications:
• UPTREND: Higher highs and higher lows detected
• DOWNTREND: Lower highs and lower lows detected
• RANGE: Channel angle below threshold (default 10 degrees)
Label Information:
• Trend direction (UPTREND/DOWNTREND/RANGE)
• Channel boundary prices
• Distance from current price (absolute and percentage)
• Channel angle in degrees
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DASHBOARD
The dashboard provides a comprehensive real-time view of all Z-Score metrics and detected events.
Dashboard Sections:
1. Header Row
Displays indicator name and current calculation mode (CLOSED or LIVE).
2. Metric Rows (Price, Total Volume, Buy Volume, Sell Volume, Delta)
Each row displays:
• Value: Current metric value
• Z: Calculated Z-Score
• Visual: Graphical Z-bar showing position relative to mean
• Status: Interpretation (Extreme High, Above Avg, Normal, Below Avg, Extreme Low)
• Upper: Oldest active upper Z-Line in window (Label Mirror)
• Lower: Oldest active lower Z-Line in window (Label Mirror)
3. Event Detection Section
• Count of triggered events out of 60 total scenarios
• Market Bias: Bull/Bear/Neutral percentage with visual bar
• Strongest Event: Highest confidence event currently triggered
• #2 Event: Second highest confidence event
4. Footer
Shows engine type (Geometry/Intrabar), Z-Score period, calculation basis, and number of valid bars.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ALERT SYSTEM
The indicator uses native alertcondition() functions, keeping the settings menu clean while providing comprehensive alert options in TradingView's alert dialog.
Available Alert Categories:
• Master Alerts: Any event, Any bullish, Any bearish, Any warning
• Single Event Alerts: Individual alerts for key events (Breakout, Climax, Divergence, etc.)
• Category Alerts: Alerts by event category (Price-Volume, Order-Flow, etc.)
• Confluence Alerts: 2+, 3+, 4+, or 5+ aligned events
• Bias Shift Alerts: 10%, 20%, or 30% shifts in market bias
• High Confidence Alerts: Events with 60%+, 70%+, 80%+, or 90%+ confidence
• Divergence Alerts: Price vs Volume or Price vs Delta divergences
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DATA ACCURACY AND LIMITATIONS
This indicator is 100% VOLUME-BASED and requires Lower Timeframe (LTF) intrabar data for accurate calculations when using the Intrabar method.
Data Accuracy Levels:
• 1T (Tick): Most accurate, real volume distribution per tick
• 1S (1 Second): Reasonably accurate approximation
• 15S (15 Seconds): Good approximation, longer historical data available
• 1M (1 Minute): Rough approximation, maximum historical data range
Backtest and Replay Limitations:
• Replay mode results may differ from live trading due to data availability
• For longer backtest periods, use higher LTF settings (15S or 1M)
• Not all symbols/exchanges support tick-level data
• Crypto and Forex typically have better LTF data availability than stocks
A Note on Data Access:
Higher TradingView plans provide access to more historical intrabar data, which directly impacts the accuracy of volume-based calculations. More precise volume data leads to more reliable calculations.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
LANGUAGE SUPPORT (TRI-LINGUAL UI)
This indicator includes a built-in language switch with three interface languages :
• English (EN)
• Türkçe (TR)
• 한국어 (KO)
The selected language updates key interface text such as the Dashboard headers/rows , tooltips , and the Event Engine outputs (event names, category names, and direction labels). Turkish diacritics and Korean Hangul are supported for clean, native readability.
Why only three languages?
Each additional language requires duplicating strings throughout the code, which increases script size/memory usage and compilation time. To keep the indicator optimized and responsive, language options are intentionally limited to three.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
FOR EDUCATIONAL AND RESEARCH PURPOSES ONLY
This indicator is designed as an educational and research tool based on academic market microstructure literature. It is NOT financial advice and should NOT be used as the sole basis for trading decisions.
Important Notices:
• Past performance does not guarantee future results
• All trading involves risk of substantial loss
• The indicator's signals are statistical probabilities, not certainties
• Always conduct your own research and consult qualified financial advisors
• The creator assumes no responsibility for trading losses
Research Sources:
This indicator is built upon peer-reviewed academic research from:
• Journal of Financial and Quantitative Analysis (Cambridge University Press)
• Journal of Finance
• Journal of Financial Econometrics
• MIT Working Papers
• arXiv Financial Mathematics インジケーター

[LJ] HTF Candles with Volume POC [Highly Optimized]Welcome to the ultimate Higher Timeframe (HTF) fusion tool.
This indicator seamlessly merges Higher Timeframe price action with precise volume profiling on Lower Timeframe (LTF) charts. By utilizing advanced array memory management, it bypasses TradingView's drawing limits to render clean HTF candle boxes and their exact Volume Point of Control (POC), ensuring peak performance and accuracy even on extreme timeframe combinations.
🔎 Visual Guide: What's on Your Chart?
The Big Boxes (Wick & Body): These represent the Open, High, Low, and Close of your selected Higher Timeframe (e.g., a 1-Hour candle projected onto your 5-Minute chart). Color-coded for bullish/bearish momentum.
The Midline: A horizontal line dividing the HTF candle perfectly in half. Useful for gauging if LTF price is in a "premium" or "discount" zone relative to the HTF.
The Yellow Box (The POC): This is the Point of Control. When an HTF candle closes, this yellow box locks in place, showing the exact price zone that saw the highest volume accumulation during that period, calculated using precise LTF hlc3 price data.
⚙️ Key Settings & Configuration
To get the most out of this indicator, check these inputs in the settings menu:
Box Time Interval: Set this to your desired HTF (e.g., "1H", "4H", "D").
Tip: A good rule of thumb is an HTF that is 5x to 12x higher than your current chart.
POC Resolution (Levels): This is your fine-tuning dial.
Set to 50 - 100: Creates a very thin, precise POC line. Great for exact support/resistance levels.
Set to 15 - 35: Creates a thicker POC "Zone". Great for capturing broader areas of high liquidity.
Max Historical Boxes: Controls how far back the indicator draws. Keep this at 50 for a clean chart and fast loading times.
📈 Trading Strategies: How to Trade the HTF POC
1. The "Magnet" Mean Reversion High volume nodes (POCs) act as price magnets. If the current LTF price is far away from the previous HTF candle's POC, look for setups that trade back toward that yellow box.
2. The Break & Retest The POC box acts as a heavy Support/Resistance wall. If price breaks through the yellow POC box with strong momentum, look to enter on the retest of that box in the direction of the breakout.
3. Trend Continuation In a strong uptrend, look for the current LTF price to bounce off the Midline or the previous candle's POC to join the dominant HTF trend.
⚡ Performance Note
This indicator uses advanced Pine Script Array Management. Unlike standard volume profile scripts that crash when calculating big timeframes, this indicator guarantees zero lag and no disappearing boxes, even when looking at a Daily HTF on a 1-Minute chart.
🙏 Credits
This is a refactored and heavily optimized fusion of two great concepts:
Original HTF Box logic by © krollo041
Original Volume Thermometer concept by © ChartPrime
Merged, debugged, and optimized for v6 Array Management by ©Luki_eR
Disclaimer: This script is for educational and informational purposes only and does not constitute financial advice. インジケーター

インジケーター

インジケーター

Smart Trader, Episode 03, by Ata Sabanci, Candles and TradelinesA volume-based multi-block analysis system designed for educational purposes. This indicator helps traders understand their current market situation through aggregated block analysis, volumetric calculations, trend detection, and an AI-style narrative engine.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DESIGN PHILOSOPHY: CLEAN CHART, RICH DASHBOARD
Traditional indicators often clutter charts with dozens of support/resistance lines, making it difficult to see price action clearly. This indicator takes a different approach:
The Chart:
Displays only the most meaningful, nearest levels (1 up, 1 down) that have not been consumed by price. This keeps your chart clean and focused on what matters right now.
The Dashboard:
Contains all detailed metrics, calculations, and analysis. Instead of drawing 20 lines on your chart, you get comprehensive data in an organized table format.
Why this approach?
• A clean chart allows you to see price action without visual noise
• Fewer but more meaningful levels help focus attention on immediate reference points
• The dashboard provides depth without sacrificing chart clarity
• Beginners can learn chart reading with an uncluttered view while accessing detailed analysis when needed
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. BLOCK SEGMENTATION
What it does:
Divides the analysis window into fixed-size blocks. Each block contains multiple bars that are analyzed as a single unit.
Why:
Individual bars contain noise. A single red candle in an uptrend might cause unnecessary concern, but when you view 5-10 bars as one block, the overall direction becomes clear. Block segmentation filters out bar-to-bar noise and reveals the underlying structure.
Benefit:
• Clearer view of market structure at a higher aggregation level
• Enables comparison between time periods (Block 1 vs Block 2 vs Block 3)
• Creates the foundation for composite candles and trend detection
• Reduces emotional reaction to single-bar movements
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2. COMPOSITE CANDLES (FRACTAL CONCEPT)
What it does:
Each block generates a "ghost candle" representing aggregated OHLC:
• Open: First bar's open in the block
• High: Highest high across all bars in the block
• Low: Lowest low across all bars in the block
• Close: Last bar's close in the block
Why:
This is essentially a FRACTAL view of the market. The same candlestick patterns that appear on a daily chart also appear on hourly charts, and on 5-minute charts. By aggregating bars into composite candles, you create a synthetic higher timeframe view without changing your actual timeframe.
Benefit:
• See higher timeframe patterns while staying on your preferred timeframe
• Identify block-level candlestick patterns (Doji, Hammer, Marubozu, Engulfing, etc.)
• Compare composite candle relationships: Does Block 1 engulf Block 2? Is Block 1 an inside bar relative to Block 2?
• Recognize patterns that individual bars obscure due to noise
Fractal Nature:
A hammer pattern means the same thing whether it appears on a 1-minute chart or a weekly chart: price tested lower levels and was rejected. Composite candles let you see these patterns at your chosen aggregation level, providing a multi-scale view of market behavior.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
3. VOLUME ENGINE
What it does:
This indicator is 100% VOLUME-BASED. It separates total volume into buying volume and selling volume using two methods:
Method 1 - Geometric (Approximation):
• Buy Volume = Total Volume × ((Close - Low) / Range)
• Sell Volume = Total Volume × ((High - Close) / Range)
Method 2 - Intrabar LTF (Precise):
Uses actual tick-level or lower timeframe data to determine real buy/sell distribution.
Why:
Raw volume tells you HOW MUCH was traded, but not WHO was aggressive. A large volume bar could mean heavy buying, heavy selling, or both. By separating buy and sell volume, you can identify which side is driving the market.
Benefit:
• Identify whether buyers or sellers are more aggressive
• Detect when volume contradicts price direction (divergence)
• Measure accumulation (buying into weakness) vs distribution (selling into strength)
• Quantify the delta (buy minus sell) to see net pressure
Why Delta Matters:
If price is rising but delta is negative, sellers are actually more aggressive despite the price increase. This divergence often precedes reversals because the price movement lacks volume confirmation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4. PIN ANALYSIS (WICK MEASUREMENT)
What it does:
Calculates average upper pin (wick) and lower pin sizes for each block, then tracks how these change across consecutive blocks.
Why:
Upper pins represent price levels that were tested but rejected by sellers. Lower pins represent price levels that were tested but rejected by buyers. The size and direction of pins reveal rejection strength at specific price zones.
Benefit:
• Large upper pins = strong selling pressure at higher levels
• Large lower pins = strong buying support at lower levels
• Increasing upper pins across blocks = intensifying selling pressure
• Decreasing lower pins across blocks = weakening buying support
Why Track Pin Changes:
Pin behavior often changes before price direction changes. If lower pins are shrinking while price is still rising, the buying support that was defending dips is weakening. This is observable data, not prediction.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5. TREND CHANNEL DETECTION
What it does:
Identifies trend direction using block-level price structure:
• UPTREND: Block highs are higher than previous block highs, AND block lows are higher than previous block lows (HH/HL pattern)
• DOWNTREND: Block highs are lower than previous block highs, AND block lows are lower than previous block lows (LH/LL pattern)
• RANGE: No consistent directional pattern
Once detected, the system draws upper and lower channel boundaries by connecting extreme points within each trend segment.
Why:
HH/HL and LH/LL are the classical definitions of trend. By applying this logic to composite candles (blocks) rather than individual bars, the trend detection becomes more stable and less prone to whipsaws from single-bar noise.
Benefit:
• Clear visual boundaries showing the current trend channel
• Upper channel line = dynamic resistance based on actual price structure
• Lower channel line = dynamic support based on actual price structure
• Channel angle indicates trend strength (steeper = stronger)
• Channel width indicates volatility
Why Lock Trend States:
Once a block's trend classification is determined, it locks and does not change on subsequent recalculations. Without locking, the same block could flip between UP and DOWN repeatedly, creating inconsistent analysis. Locking ensures stability.
Why Project Lines Forward:
Channel lines can be projected into the future to show where support/resistance would be if the current trend continues at the same angle. This is not a prediction; it is a visual reference showing the trend's trajectory.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
6. CORE LEVELS: POC, MAX BUY, MAX SELL
What it does:
Identifies key price levels within each block based on volume data:
POC (Point of Control):
The price level where the highest total volume occurred within the block.
MAX BUY Level:
The bar with the highest buying volume. The HIGH of this bar marks the level.
MAX SELL Level:
The bar with the highest selling volume. The LOW of this bar marks the level.
MIN BUY/SELL Levels:
Optional levels showing where minimum buy/sell volume occurred.
Why:
High volume at a specific price means many participants entered positions there. These participants have a vested interest in that price level. If price returns to that area, those same participants may act to defend their positions.
Benefit:
• POC acts as a volume-based magnet; price tends to revisit high-volume areas
• MAX BUY level shows where buyers committed most aggressively
• MAX SELL level shows where sellers committed most aggressively
• These levels are based on actual transaction data, not arbitrary calculations
Why Consumed Levels Disappear:
When price crosses through a level, that level has been "tested." Keeping consumed levels on the chart creates visual clutter and suggests they are still relevant when they may no longer be. Removing them keeps focus on levels that have not yet been tested.
Why Show Only Nearest Levels:
If you have 20 blocks, you could have 60+ potential levels (POC, MAX BUY, MAX SELL for each). Displaying all of them makes the chart unreadable. Showing only the nearest untested level above and below current price keeps the chart clean while providing immediate reference points.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
7. QUALITY SCORE AND TREND INTELLIGENCE
What it does:
Calculates a quality score (0-100) for the current trend based on multiple factors:
• Angle steepness (stronger trends have steeper angles)
• Delta consistency (does volume support the trend direction?)
• Volume momentum (is participation increasing or decreasing?)
• Body expansion (are candle bodies growing or shrinking?)
• Pin alignment (do pins support the trend direction?)
• Contradiction count (how many factors disagree?)
Why:
Not all trends are equal. A trend with consistent volume support, expanding bodies, and aligned pins is healthier than a trend with contradicting signals. The quality score quantifies this.
Benefit:
• HIGH quality (80+): Multiple factors confirm the trend
• MEDIUM quality (60-79): Some factors confirm, some neutral
• LOW quality (below 60): Multiple contradictions exist
• Strength rating based on channel angle: VERY STRONG, STRONG, MODERATE, WEAK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
8. NARRATIVE ENGINE
What it does:
Generates a text-based market analysis by synthesizing all calculated data into readable sentences.
How it works:
1. Analyzes current candle: pattern type (Doji, Hammer, Marubozu, etc.), body/wick ratios, range vs ATR
2. Analyzes composite candle: Block 1 pattern and relationship to Block 2 (Engulfing, Inside, Outside)
3. Evaluates trend context: direction, duration, quality, transitions
4. Examines volume data: delta, dominance, momentum direction
5. Checks proximity to key levels: channel boundaries, POC, core levels
6. Identifies divergences: when price and volume directions contradict
7. Produces a coherent narrative describing the current situation
Why:
Numbers and charts require interpretation. The narrative engine translates calculated data into plain language, helping traders understand what the data means in context. This is especially valuable for beginners learning to read charts.
Benefit:
• Synthesizes multiple data points into a coherent story
• Explicitly flags divergences and contradictions
• Describes the current situation without making predictions
• Educational: shows how different factors relate to each other
What the Narrative Does NOT Do:
The narrative describes what IS, not what WILL BE. It does not predict future price movement. It reports the current candle pattern, the current trend state, the current volume situation, and the current proximity to levels.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
9. SMART DASHBOARD
What it does:
Displays all metrics in an organized table with multiple sections.
Sections:
• Volume Engine: Calculation method, data availability, current candle buy/sell/delta
• Trend Volumetrics: Aggregated buy/sell/delta across the current trend, trend type
• Pressure and Momentum: Average pins, pin change percentages, body expansion status
• Trend Channel Boundaries: Upper/lower levels with exact prices, distances, percentages
• Trend Intelligence: Quality score, confidence level, strength rating, volume momentum
Why:
All the detailed calculations need to live somewhere without cluttering the chart. The dashboard provides comprehensive data in a structured format.
Benefit:
• All metrics in one place
• Organized by category for easy reference
• Hover over any label to see a tooltip explaining that metric
• No need to draw dozens of lines on the chart
TIP: Hover over dashboard headers and labels to see tooltips explaining each metric.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
10. LANGUAGE SUPPORT
The indicator supports three languages:
• English
• Türkçe (Turkish)
• हिन्दी (Hindi)
Why only three languages?
Each additional language requires duplicate strings throughout the code, increasing memory usage and compilation time. To keep the script optimized and responsive, language options are limited to these three.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
11. DATA ACCURACY AND LIMITATIONS
This indicator is 100% VOLUME-BASED and requires Lower Timeframe (LTF) intrabar data for accurate calculations.
DATA ACCURACY LEVELS:
• 1T (Tick): Most accurate, real volume distribution per tick
• 1S (1 Second): Reasonably accurate approximation
• 15S (15 Seconds): Good approximation, longer historical data available
• 1M (1 Minute): Rough approximation, maximum historical data range
BACKTEST AND REPLAY LIMITATIONS:
• Replay mode results may differ from live trading due to data availability
• For longer backtest periods, use higher LTF settings (15S or 1M)
• Not all symbols/exchanges support tick-level data
• Crypto and Forex typically have better LTF data availability than stocks
A NOTE ON DATA ACCESS:
Higher TradingView plans provide access to more historical intrabar data, which directly impacts the accuracy of volume-based calculations. More precise volume data leads to more reliable calculations.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
12. SETTINGS OVERVIEW
Main Settings:
• Window Bars: Total bars to analyze
• Group Count: Number of blocks to create
• Calculation Basis: Current bar (live updates) or Closed bar (stable, no repaint)
Block Analytics:
• Show Composite Candle: Toggle ghost candles on/off
• Composite Candle Transparency: Adjust visibility
• Dim Original Candles: Fade original candles when composites are shown
Volume Engine:
• Calculation Method: Geometric (approx) or Intrabar (precise)
• Lower Timeframe: Select LTF for intrabar calculations
Multi-Segment Trend:
• Enable Trend Detection: Toggle trend channels on/off
• Range Angle Threshold: Angle below which trend is classified as RANGE
• Line colors, width, and style
• Project to Future: Extend trend lines forward
Core Calculation:
• Enable Core Calculation: Toggle POC and core levels
• Show POC Nearest Up/Down: Display nearest untested POC levels
• Include MAX/MIN Buy/Sell Levels: Toggle extremes display
• Nearest Only: Show only the closest level above and below price
Market Narrative:
• Enable Market Narrative: Toggle narrative text
• Language selection
• Show Educational Disclaimer: Toggle disclaimer in dashboard
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EDUCATIONAL PURPOSE
This indicator is designed to help traders:
1. Understand their current market situation at a glance
2. Learn chart reading through block analysis and composite candles
3. See how volume relates to price movement
4. Recognize when technical factors align or contradict
5. Focus on meaningful levels without chart clutter
Whether you are a beginner learning to read charts or an experienced trader seeking a cleaner analytical view, this tool provides structured data to support your analysis.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
IMPORTANT DISCLAIMER
This indicator is for EDUCATIONAL PURPOSES ONLY and does not constitute investment advice. Always conduct your own research and consult with a qualified financial advisor before making investment decisions.
This disclaimer is also displayed within the indicator itself. If you prefer a cleaner chart, you can disable it in Settings under Market Narrative by unchecking Show Educational Disclaimer. インジケーター

Smart Trader, Episode 02, by Ata Sabanci | Battle of Candles ⚠️ CRITICAL: READ BEFORE USING ⚠️
This indicator is 100% VOLUME-BASED and requires Lower Timeframe (LTF) intrabar data for accurate calculations. Please understand the following limitations before using:
📊 DATA ACCURACY LEVELS:
• 1T (Tick) — Most accurate, real volume distribution per tick
• 1S (1 Second) — Reasonably accurate approximation
• 15S (15 Seconds) — Good approximation, longer historical data available
• 1M (1 Minute) — Rough approximation, maximum historical data range
⚠️ BACKTEST & REPLAY LIMITATIONS:
• Replay mode results may differ from live trading due to data availability
• For longer back test periods, use higher LTF settings (15S or 1M)
• Not all symbols/exchanges support tick-level data
• Crypto and Forex typically have better LTF data availability than stocks
💡 A NOTE ON TOOLS:
Successful trading requires proper tools. Higher TradingView plans provide access to more historical intrabar data, which directly impacts the accuracy of volume-based calculations. More precise volume data leads to more reliable signals. Consider this when evaluating your trading infrastructure.
📌 OVERVIEW
Smart Trader Episode 02: Battle of Candles is an advanced educational indicator that combines multiple analysis engines to help traders identify market scenarios and understand market dynamics. This is NOT financial advice or a trading signal service — it's a learning tool designed to help you understand how institutional traders might interpret price action.
The indicator integrates 7 major analysis engines into a unified dashboard, providing real-time insights into volume flow, trend structure, market phases, and potential trade setups.
⚡ KEY FEATURES
🎯 16-Pattern Scenario Engine
Automatically detects and classifies market conditions into 16 distinct scenarios, from strong continuation moves to potential reversals and traps.
💰 Trade Advisor Panel
Aggregates all signals into actionable suggestions with confidence levels, suggested entry/SL/TP levels, and risk/reward calculations.
📊 Volume Engine
Splits volume into buy/sell components using either Geometry (candle shape) or Intrabar (LTF data) methods for precise delta analysis.
📈 CVD (Cumulative Volume Delta)
Tracks the running total of buying vs selling pressure to identify accumulation, distribution, and divergences.
🎯 Stop-Hunt Detection
Identifies potential stop-hunt patterns where price sweeps liquidity levels before reversing.
📐 Pure Structure Trend Engine
Zero-lag trend detection based on swing highs/lows (HH/HL/LH/LL) without any lagging indicators.
⚡ Effort vs Result Analysis
Measures energy spent (volume) versus ground taken (price movement) to detect stalls, breakthroughs, and exhaustion.
🎯 SCENARIO ENGINE — 16 Market Patterns
The Scenario Engine analyzes multiple factors (candle anatomy, volume, forces, CVD, wick analysis) to classify each candle into one of 16 scenarios:
Continuation Scenarios (1-3)
1. ⚔️ STRONG MOVE — Big body candle (>60%) with volume confirming direction. Indicates strong momentum continuation.
2. 🛡️ ABSORPTION — One side attacks but the other absorbs the pressure. Price holds despite volume. Continuation expected in the absorbing side's favor.
3. 📉 PULLBACK — Small move against the trend with low volume. Indicates a healthy retracement before trend continuation.
Reversal Scenarios (4-6, 13-16)
4. 💥 REJECTION — Big wick (>40%) with small body and high volume. Price was rejected
at a level, potential reversal.
5. 🪤 TRAP — Pin direction disagrees with delta. Extreme wick size. Looks bullish/bearish but the opposite may happen.
6. 😫 EXHAUSTION — High energy spent (volume) but low ground taken (price movement). Both sides active but momentum fading.
13. 🔄 CVD BULL DIV — Price falling but CVD rising. Hidden buying detected (accumulation). Potential bullish reversal.
14. 🔄 CVD BEAR DIV — Price rising but CVD falling. Hidden selling detected (distribution). Potential bearish reversal.
15. 🎯 STOP HUNT BULL — Shorts were liquidated below support. Price swept liquidity and reversed. Expect bullish move.
16. 🎯 STOP HUNT BEAR — Longs were liquidated above resistance. Price swept liquidity and reversed. Expect bearish move.
Range/Stalemate Scenarios (7-9)
7. ⚖️ DEADLOCK — Market in balance. Force ratio between 0.4-0.6. Low volume. No side winning.
8. 🔥 BATTLE — High volume fight in a range. Both sides attacking. Wicks on both ends of candle.
9. 🎯 WAITING — Building phase with quiet volume. Market is preparing but no trigger yet. Wait for breakout.
Pre-Breakout Scenarios (10-12)
10. 🚀 BULL SETUP — Buyers accumulating in a building phase. Positive delta building. Bullish pressure growing.
11. 💣 BEAR SETUP — Sellers distributing in a building phase. Negative delta building. Bearish pressure growing.
12. ⚡ BREAKOUT — Price at boundary with strong candle and volume supporting. Imminent breakout expected.
💰 TRADE ADVISOR ENGINE
The Trade Advisor aggregates all signals from the different engines into a single actionable output. It uses a weighted scoring system:
Scoring Weights:
• Scenario Signal: 30%
• Trend Alignment: 20%
• CVD Momentum: 15% + Divergence Bonus
• Pin Forces: 15%
• Liquidity Sweep: 12%
• Stop-Hunt Detection: 10%
• Effort vs Result: 10%
Possible Actions:
• ⏳ WAIT — Edge not strong enough (stay patient)
• 🟢 LONG ENTRY — Buyers have strong advantage + signals align
• 🔴 SHORT ENTRY — Sellers have strong advantage + signals align
• ⚠️ CLOSE LONG/SHORT — Position at risk (reversal/trend flip)
• 🛑 STOP LOSS — Price hit risk threshold
• 💰 TAKE PROFIT — Target threshold reached
📊 EXTENDED INFO PANEL (Detailed Explanations)
The Extended Info panel is hidden by default (toggle: Show Extended Info in settings). It provides detailed metrics that feed into the main engines:
CVD ANALYSIS
What is CVD?
Cumulative Volume Delta (CVD) is the running total of Buy Volume minus Sell Volume. It reveals the underlying buying/selling pressure that may not be visible in price alone.
CVD Value & Slope:
• ↗ Rising: CVD increasing = net buying pressure (bullish)
• ↘ Falling: CVD decreasing = net selling pressure (bearish)
• → Flat: No clear pressure direction
Accumulation vs Distribution:
• Accumulation %: Shows buying pressure strength (0-100). High accumulation with CVD rising = strong bullish bias.
• Distribution %: Shows selling pressure strength (0-100). High distribution with CVD falling = strong bearish bias.
Divergence Alerts:
• ⚠️ BULLISH DIVERGENCE: Price falling but CVD rising. Hidden buying = potential reversal UP.
• ⚠️ BEARISH DIVERGENCE: Price rising but CVD falling. Hidden selling = potential reversal DOWN.
WICK ANALYSIS
Wick Torque:
Torque measures the "rotational force" from wicks. It's calculated from wick length, volume, and body efficiency.
• Positive Torque (Bullish): Bottom wick power dominates. Buyers defended lower prices.
• Negative Torque (Bearish): Top wick power dominates. Sellers defended higher prices.
• ⚡ High Torque (>30): Strong signal, significant wick rejection occurred.
Stop-Hunt Detection:
The engine detects when price has likely swept stop-losses clustered at key levels:
• Stop Hunt Risk %: Likelihood score (0-100). Above 55% = confirmed hunt.
• "Shorts hunted": Price swept below support, liquidating shorts, expect bounce UP.
• "Longs hunted": Price swept above resistance, liquidating longs, expect drop DOWN.
LIQUIDITY SWEEPS
This section appears only when a liquidity sweep is detected. The engine monitors for price sweeping recent highs/lows and then reversing:
• 🎯 LIQUIDITY SWEPT ABOVE: Price broke recent highs but closed back below. Longs trapped, expect DOWN.
• 🎯 LIQUIDITY SWEPT BELOW: Price broke recent lows but closed back above. Shorts trapped, expect UP.
POWER BALANCE
The Power Balance meter shows the real-time strength comparison between buyers and sellers.
Force Ratio:
• 0% = Complete seller dominance
• 50% = Perfect balance
• 100% = Complete buyer dominance
Visual Bar:
• Left side (▓): Bear territory
• Right side (▓): Bull territory
• The bar is smoothed over recent history to reduce noise.
EFFORT vs RESULT
This section measures the efficiency of price movement relative to volume expended.
Energy:
How much volume was spent relative to the average. Energy > 1.0x means above-average volume activity.
Ground:
How much price movement occurred relative to average range. Ground > 1.0x means above-average price movement.
STALL Warning:
A STALL is detected when high energy is spent but low ground is taken (high effort, low result). This often indicates institutional battle, exhaustion, or imminent reversal.
MARKET PHASE
The Phase Engine classifies the current market regime:
RANGE : No clear trend. Price confined to middle of channel. Low ADX. Balanced forces. Trade breakouts with caution.
BUILDING : Compression/preparation phase. Channel tightening or boundary penetration without follow-through. Watch for breakout direction.
TRENDING : Active directional move. Clear slope, good efficiency, price on trending side of channel. Favor pullback entries.
Strength:
0-100% score combining slope, volume validity, and force/efficiency filters.
Bars: How many candles the current phase has persisted.
TRACK RECORD (Validation Panel)
Enable with Show Validation Panel in settings. This section tracks the historical accuracy of scenario predictions:
Accuracy: Percentage of validated predictions that were correct.
Best/Worst Scenario: Shows which scenarios have the highest and lowest accuracy on the current symbol.
Recent Signals: Last 5 predictions with their outcomes. ✓ = correct, ✗ = wrong, ⏳ = pending validation.
⚙️ SETTINGS GUIDE
📊 Volume Analysis
Volume Calculation: Choose Geometry (estimates from candle shape) or Intrabar (precise LTF data).
Intrabar Resolution: LTF for precise mode. Try 1S, 15S, or 1T. Must be lower than chart timeframe.
History Depth: Candles stored in memory (5-50). Higher = more context, slower.
Memory Lookback: Bars for moving averages and Z-scores (10-100).
🏷️ Market Phase
Range Zone Width: How much of channel center is considered "range" (0.1-0.8).
Trend Sensitivity: Minimum slope to detect trending. Lower = more sensitive.
Min Episode Length: Minimum bars before phase can change. Prevents flickering.
🎯 Scenarios
Min Confidence to Show: Only display scenarios above this confidence level (30-90).
Bars to Validate: How many bars to wait before checking if prediction was correct.
Success Move %: Minimum price movement to consider prediction successful.
💰 Trade Advisor
Min Confidence for Entry: Minimum confidence to suggest a trade entry (50-90).
Default Risk %: Stop loss distance as % of price (0.5-5.0).
Min Risk/Reward: Minimum acceptable R:R ratio (1.0-5.0).
🔔 ALERT CONDITIONS
The indicator provides the following alert conditions you can configure:
• 🟢 LONG Entry Signal
• 🔴 SHORT Entry Signal
• ⚠️ Close LONG Signal
• ⚠️ Close SHORT Signal
• 🛑 STOP LOSS Alert
• 💰 Take Profit Alert
• 🚨 High Urgency Signal
⚠️ IMPORTANT DISCLAIMER
EDUCATIONAL TOOL ONLY
This indicator is designed for educational purposes to help users identify different market scenarios and understand how various signals might be interpreted.
The Trade Advisor is NOT a recommendation to buy, sell, or invest.
• Past performance does not guarantee future results
• All trading involves risk of loss
• The creator is not a licensed financial advisor
• Always do your own research (DYOR)
• Consult a qualified financial advisor before making any investment decisions
By using this indicator, you acknowledge that you understand these risks and accept full responsibility for your trading decisions.
インジケーター

Smart Trader,Episode 1, by Ata Sabanci | Unified Matrix⚠️ **CRITICAL: READ BEFORE USING** ⚠️
This strategy is **100% VOLUME-BASED** and requires **Lower Timeframe (LTF) intrabar data** for accurate calculations. Please understand the following limitations before using:
**📊 DATA ACCURACY LEVELS:**
• **1T (Tick)** — Most accurate, real volume distribution per tick
• **1S (1 Second)** — Reasonably accurate approximation
• **15S (15 Seconds)** — Good approximation, longer historical data available
• **1M (1 Minute)** — Rough approximation, maximum historical data range
**⚠️ BACKTEST & REPLAY LIMITATIONS:**
• TradingView's Strategy Tester uses historical LTF data which may be limited depending on your subscription plan
• Replay mode results may differ from live trading due to data availability
• For longer backtest periods, use higher LTF settings (15S or 1M)
• Not all symbols/exchanges support tick-level data
• Crypto and Forex typically have better LTF data availability than stocks
**💡 A NOTE ON TOOLS:**
Successful trading requires proper tools. Higher TradingView plans provide access to more historical intrabar data, which directly impacts the accuracy of volume-based calculations. More precise volume data leads to more reliable signals. Consider this when evaluating your trading infrastructure.
**WHY "EPISODE 1"?**
This strategy is titled "Episode 1" because it focuses exclusively on **Highest Buyers (HB)** — a single but powerful concept in volume analysis.
**The Philosophy:**
A single high-volume buying event can tell us a story about market psychology:
• Where did the biggest buyers enter?
• How much of their power remains?
• Are sellers consuming their advantage?
• At what rate is the balance shifting?
By focusing on just ONE aspect of volume analysis, traders can deeply understand how a buying surge affects future price action before moving to more complex multi-factor analysis.
**The Reality:**
This script alone is approximately **2000 lines of code** — and it only analyzes buyers. A comprehensive system covering all aspects (sellers, combined analysis, multi-timeframe correlation) would be significantly larger and computationally heavier. Breaking this into focused modules allows for:
• Deeper understanding of each component
• Lighter, more responsive scripts
• Educational progression from simple to complex
**OVERVIEW**
Smart Trader EP1 is a volume-based trading strategy that tracks the balance of power between buyers and sellers through the lens of the **Highest Buyers event**. Unlike traditional indicators that rely on price patterns or mathematical formulas, this strategy analyzes *actual volume flow* to identify who is in control of the market.
The core philosophy is simple: **markets move when one side (buyers or sellers) exhausts their power while the opposing side accumulates strength.** By measuring this power shift in real-time, the strategy identifies high-probability entry and exit points.
**HOW IT WORKS**
**1. Volume Engine**
The strategy splits each candle's volume into buying volume and selling volume using intrabar data. In *Intrabar (Precise)* mode, it uses actual tick-by-tick or second-by-second data to calculate the exact buy/sell distribution. In *Geometry* mode, it approximates based on candle structure (close position within the range).
**2. Event Detection**
Within the lookback window, the strategy identifies key events:
• **HB (Highest Buyers)** — The candle with maximum buying volume (potential resistance when exhausted)
• **HS (Highest Sellers)** — The candle with maximum selling volume (potential support when exhausted)
• **LB (Lowest Buyers)** — The candle with minimum buying volume (buyer absence)
• **LS (Lowest Sellers)** — The candle with minimum selling volume (seller absence)
These events create dynamic support and resistance levels based on actual volume, not arbitrary price levels.
**3. Power Tracking (Attrition Model)**
For the Highest Buyers event (HB), the strategy tracks:
• **Start Power (X)** — The initial buying volume at the HB event
• **Consumed Power (Y)** — How much selling volume has accumulated since the event
• **Remaining Power (Z)** — Start Power minus Consumed Power (X - Y)
• **Opponent Dominance** — When Remaining Power goes negative (Z < 0), sellers have overtaken buyers
Think of it like a battle: buyers establish a position (HB), and sellers gradually consume their power. When buyers' power is exhausted (Remaining Power ≤ 0), sellers have taken control.
**4. Depletion Markers**
Visual markers appear on the chart when power reaches critical thresholds:
• **🔋** — Buyers consumed 100% (Remaining = 0)
• **🚨** — Buyers consumed 200% (Opponent Dominance = 100%)
• **🪫** — Sellers consumed 100%
• **⚠️** — Sellers consumed 200%
**5. Cumulative Delta**
Beyond tracking power at specific events, the strategy calculates the cumulative buy volume minus sell volume since the HB event. This shows the *net flow* of money:
• **Positive Delta** — More buying than selling since HB (bullish pressure)
• **Negative Delta** — More selling than buying since HB (bearish pressure)
**6. Trend Channel**
A 5-point linear regression channel identifies the current trend:
• **UPTREND** — Both upper and lower channel lines slope upward
• **DOWNTREND** — Both lines slope downward
• **RANGING** — Mixed or flat slopes
The strategy also tracks where the HB event occurred within this channel (TOP, UPPER, MIDDLE, LOWER, BOTTOM) to contextualize the signal.
**7. Nearest Event Analysis**
The strategy identifies which event is closest to the current candle and analyzes the price action *after* that event:
• How many bullish vs bearish candles followed?
• Does post-event momentum confirm or contradict the event type?
This prevents false signals when, for example, a bearish event occurs but is immediately followed by strong bullish candles.
**SIGNAL LOGIC**
**🟢 LONG Signal Conditions:**
• Uptrend with positive cumulative delta and buyers accumulating
• At channel bottom/lower with strong buyer power remaining
• After a bearish event (HS) with bullish post-event momentum (reversal signal)
• Ranging market with positive delta and strong power
**🔴 SHORT Signal Conditions:**
• Downtrend with negative cumulative delta and sellers in control
• Opponent Dominance (buyer power exhausted) with bearish momentum
• Buyer Trap: HB at TOP in uptrend but power exhausted and delta negative
• After a bullish event (HB) with bearish post-event momentum (trap signal)
**⏳ NO_TRADE Conditions:**
• Conflicting signals (e.g., bearish event but bullish post-momentum)
• Ranging market without clear direction
• Mixed power readings
• Price position contradicts signal direction
**STRATEGY EXECUTION**
**Entry Rules:**
• Enter LONG when signal is "LONG" and conditions are valid
• Enter SHORT when signal is "SHORT" and conditions are valid
• **Pyramid**: Up to 2 entries allowed in the same direction (configurable)
• Each entry uses 10% of equity by default
• Only one entry per confirmed candle (prevents multiple fills)
**Stop Loss (Event Line Based):**
• **LONG positions**: Stop Loss placed below the HS line (seller support level)
• **SHORT positions**: Stop Loss placed above the HB line (buyer resistance level)
• A small buffer percentage is added to prevent premature stops
**Take Profit (Event Line Based):**
• **LONG positions**: Take Profit near the HB line (buyer resistance target)
• **SHORT positions**: Take Profit near the HS line (seller support target)
• A small buffer percentage ensures realistic fill expectations
**Exit Rules:**
• Exit LONG when signal changes to SHORT
• Exit SHORT when signal changes to LONG
• **NO_TRADE signal = HOLD** (do not exit, wait for clear direction)
• SL/TP orders remain active regardless of signal changes
**SETTINGS GUIDE**
**⚙️ General Settings:**
• *Calculation Method* — Choose between Intrabar (Precise) or Geometry (approximation)
• *Intrabar Resolution* — LTF for volume data (1T, 1S, 15S, 1M)
• *Lookback Length* — Window for scanning events (10-150 bars)
• *Timezone Offset* — Adjust clock display to your local time
**📊 Matrix Display Settings:**
• *Show Unified Matrix* — Toggle the information dashboard
• *Show Event Lines* — Toggle horizontal lines at event prices
• *Panel Size/Position* — Customize dashboard appearance
• *Projection Bars* — Extend event lines into the future
• *Depletion Threshold* — Percentage for depletion markers (default: 100%)
**🏷️ Rank Labels Settings:**
• *Show Rank Labels (HB/HS)* — Display labels on highest volume candles
• *Show Low Labels (LB/LS)* — Display labels on lowest volume candles
• *Ranks Count* — Number of rankings to display (1-5)
**📐 Trend Channel Settings:**
• *Show Trend Channel* — Toggle the 5-point regression channel
• *Line Color/Fill/Width/Style* — Customize channel appearance
**🎯 Trade Signal Settings:**
• *Long: Min Remaining Power %* — Minimum buyer power for LONG signal (default: 50%)
• *Short: Max Remaining Power %* — Maximum power for SHORT signal (default: 30%)
• *Opponent Dominance Threshold* — When to consider power "exhausted" (default: 0%)
• *Max Decay Angle* — Maximum consumption rate for valid entries (default: 60°)
**📈 Strategy Execution Settings:**
• *Enable Strategy* — Turn automatic trading on/off
• *Allow LONG/SHORT* — Enable or disable specific directions
• *Max Pyramid Entries* — Maximum entries in same direction (1-3)
• *SL Buffer %* — Distance below/above event line for stop loss (default: 0.15%)
• *TP Buffer %* — Distance from event line for take profit (default: 0.05%)
**VISUAL ELEMENTS**
**Chart Labels:**
• **#1 HB** — Highest Buyers (rank label on candle high)
• **#1 HS** — Highest Sellers (rank label on candle low)
• **#1 LB** — Lowest Buyers (rank label on candle high)
• **#1 LS** — Lowest Sellers (rank label on candle low)
• **🔋 / 🚨** — Buyer power depletion markers
• **🪫 / ⚠️** — Seller power depletion markers
**Event Lines:**
• **Blue horizontal lines** — HB price levels (buyer entry points)
• **Red horizontal lines** — HS price levels (seller entry points)
• **Cyan lines** — LB price levels
• **Orange lines** — LS price levels
• **Dashed extensions** — Projected levels into future bars
**Trend Channel:**
• **Orange lines** — Upper and lower channel boundaries (5-point regression)
• **Orange fill** — Channel area (90% transparency)
**Matrix Dashboard (6 rows):**
• Row 1: Header with symbol, LTF setting, and local clock
• Row 2: Volume snapshot (Total, Buy, Sell, Delta)
• Row 3: Column headers
• Row 4: Highest Buyers data (Age, Start Power, Consumed, Remaining, Decay, ETA)
• Row 5: Highest Sellers data
• Row 6: Signal Evaluation (Trend, Zone, Nearest Event, Signal, Reason)
**Strategy Markers:**
• **Green triangle up** — LONG entry
• **Red triangle down** — SHORT entry
• **Faded triangles** — Pyramid entries
• **Colored lines** — SL (red) and TP (green) levels when in position
**BEST PRACTICES**
**For Maximum Accuracy:**
1. Use **1T (tick)** or **1S** intrabar resolution when available
2. Trade liquid markets with good volume data (crypto majors, forex majors, high-volume stocks)
3. Use smaller lookback length (20-30) to ensure all bars have valid LTF data
4. Monitor the "Intrabar Valid Bars" counter in the matrix header
5. If you see data warnings, reduce lookback or increase LTF resolution
**For Longer Backtests:**
1. Use **15S or 1M** intrabar resolution for more historical data
2. Increase lookback length if needed
3. Understand that accuracy decreases with higher LTF settings
4. Consider using Geometry mode for very long backtests (approximation but always available)
**Understanding the Signals:**
• Pay attention to the signal *reasoning* shown in the matrix — it explains WHY
• **NO_TRADE** means the system sees conflicting factors — respect this caution
• Event lines act as dynamic S/R — they update as new volume events occur
• Cumulative Delta (Δ) often provides early warning of trend changes
**Risk Management:**
• The default 10% per entry with max 2 pyramids = 20% maximum exposure
• Event-line-based SL/TP provides logical levels based on actual volume events
• Always verify signals with your own analysis before trading
**INTERPRETING THE MATRIX**
**Power Status Examples:**
• *Remaining Power: 75%* — Buyers still have most of their strength
• *Remaining Power: 25%* — Buyers nearly exhausted, watch for reversal
• *Opponent Dominance: -50%* — Sellers have consumed 150% of buyer power (strong bearish)
**Decay Angle:**
• *Low angle (0-30°)* — Slow consumption, power lasting longer
• *High angle (60-90°)* — Rapid consumption, expect quick exhaustion
**ETA to Parity:**
• Shows estimated bars until Remaining Power reaches zero
• *"Overtaken"* with 🚨 means sellers have already dominated
**LIMITATIONS & DISCLAIMER**
**Technical Limitations:**
• Requires sufficient historical LTF data (varies by TradingView plan and symbol)
• Intrabar (Precise) mode may show invalid data warnings on symbols with limited history
• Strategy tester may not have access to the same LTF data as live trading
• Maximum 500 lines and 500 labels (TradingView platform limits)
**Important Notes:**
• This strategy focuses on **Highest Buyers only** — it does not analyze all market factors
• Past performance does not guarantee future results
• Volume data quality varies significantly between symbols and exchanges
• The strategy's signals are analytical tools, not trading recommendations
**Risk Disclaimer:**
This strategy is provided for **educational and informational purposes only**. Trading involves substantial risk of loss and is not suitable for all investors.
• Always use proper risk management
• Never risk more than you can afford to lose
• Backtest results may differ significantly from live trading
• You are solely responsible for your trading decisions
**TECHNICAL SPECIFICATIONS**
• Pine Script Version: 6
• Calculation: calc_on_every_tick=true, use_bar_magnifier=true
• Default Capital: 10,000
• Default Position Size: 10% of equity
• Maximum Lines: 500
• Maximum Labels: 500
• External Library: TradingView/ta/10 (for requestUpAndDownVolume)
*Smart Trader EP1 — Understanding Volume, One Event at a Time* ストラテジー

インジケーター

インジケーター

Bollinger Bands Delta Matrix Analytics [BDMA] Bollinger Bands Delta Matrix Analytics (BDMA) v7.0
Deep Kinetic Engine – 5x8 Volatility & Delta Decision Matrix
1. Introduction & Concept
Bollinger Bands Delta Matrix Analytics (BDMA) v7.0 is an analytical framework that merges:
- Spatial analysis via Bollinger Bands (%B location),
- with a 4-factor Deep Kinetic Engine based on:
• Total Volume
• Buy Volume
• Sell Volume
• Delta (Buy – Sell) Z-Scores
and converts them into an expanded 5×8 decision matrix that continuously tracks where price is trading and how the underlying orderflow is behaving.
BDMA is not a trading system or strategy. It does not generate entry/exit signals.
Instead, it provides a structured contextual map of volatility, volume, and delta so traders can:
- identify climactic extensions vs. fakeouts,
- distinguish strong initiative moves vs. passive absorption,
- and detect squeezes, traps, and liquidity voids with a unified visual dashboard.
2. Spatial Engine – Bollinger S-States (S1–S5)
The spatial dimension of BDMA comes from classic Bollinger Bands.
Price location is expressed as Percent B (%B) and mapped into 5 spatial states (S-States):
S1 – Hyper Extension (Above Upper Band)
Price has pushed beyond the upper Bollinger Band.
Often associated with parabolic or blow-off behavior, late-stage momentum, and elevated reversal risk.
S2 – Resistance Test (Upper Zone)
Price trades in the upper Bollinger region but remains inside the bands.
Represents a sustained test of resistance, typically within an established or emerging uptrend.
S3 – Neutral Zone (Middle)
Price hovers around the mid-band.
This is the mean reversion gravity field where the market often consolidates or transitions between regimes.
S4 – Support Test (Lower Zone)
Price trades in the lower Bollinger region but inside the bands.
Represents a sustained test of support within range or downtrend structures.
S5 – Hyper Drop (Below Lower Band)
Price extends below the lower Bollinger Band.
Often aligned with panic, forced liquidations, or capitulation-type behavior, with increased snap-back risk.
These 5 S-States define the vertical axis (rows) of the BDMA matrix.
3. Deep Kinetic Engine – 4-Factor Z-Score & D-States (D1–D8)
The Deep Kinetic Engine transforms raw volume and delta into standardized Z-Scores to measure how abnormal current activity is relative to its recent history.
For each bar:
- Raw Buy Volume is estimated from the candle’s position within its range
- Raw Sell Volume is complementary to buy volume
- Raw Delta = Buy Volume – Sell Volume
- Total Volume = Buy Volume + Sell Volume
These 4 series are then normalized using a unified Z-Score lookback to produce:
1. Z_Vol_Total – overall activity and liquidity intensity
2. Z_Vol_Buy – aggression from buyers (attack)
3. Z_Vol_Sell – aggression from sellers (defense or attack)
4. Z_Delta – net victory of one side over the other
Thresholds for Extreme, Significant, and Neutral Z-Score levels are fully configurable, allowing you to tune the sensitivity of the kinetic states.
Using Z_Vol_Total and Z_Delta (plus threshold logic), BDMA assigns one of 8 Deep Kinetic states (D-States):
D1 – Climax Buy
Extreme Total Volume + Extreme Positive Delta → Buying climax or blow-off behavior.
D2 – Strong Buy
High Volume + High Positive Delta → Confirmed bullish initiative activity.
D3 – Weak Buy / Fakeout
Low Volume + High Positive Delta → Bullish delta without commitment, low-liquidity breakout risk.
D4 – Absorption / Conflict
High Volume + Neutral Delta → Aggressive two-way trade, strong absorption, war zone behavior.
D5 – Neutral
Low Volume + Neutral Delta → Low-energy environment with low conviction.
D6 – Weak Sell / Fakeout
Low Volume + High Negative Delta → Bearish delta without commitment, low-liquidity breakdown risk.
D7 – Strong Sell
High Volume + High Negative Delta → Confirmed bearish initiative activity.
D8 – Capitulation
Extreme Volume + Extreme Negative Delta → Panic selling or capitulation regime.
These 8 D-States define the horizontal axis (columns) of the BDMA matrix.
4. The 5×8 BDMA Decision Matrix
The core of BDMA is a 5×8 matrix where:
- Rows (1–5) = Spatial S-States (S1…S5)
- Columns (1–8) = Kinetic D-States (D1…D8)
Each of the 40 possible combinations (SxDy) is pre-computed and mapped to:
- a Status or Regime Title (for example: Climax Breakout, Bear Trap Spring, Capitulation Breakdown),
- a Bias (Climactic Bull, Neutral, Strong Bear, Conflict or Reversal Risk, and similar labels),
- and a Strategic Signal or Consideration (for example: High reversal risk, Wait for confirmation, Low probability zone – avoid).
Internally, BDMA resolves all 40 regimes so the current state can be displayed on the dashboard without performance overhead.
5. Key Regime Families (How to Read the Matrix)
5.1. Breakouts and Breakdowns
Climax Breakout (Top-side)
Spatial S1 with Kinetic D1 or D2
Bias: Explosive or Extreme Bull
Signal:
- Strong or climactic upside extension with abnormal bullish orderflow.
- Trend continuation is possible, but reversal risk is extremely high after blow-off phases.
Low-Conviction Breakout (Fakeout Risk)
S1 with D3 (Weak Buy, low liquidity)
Bias: Weak Bull – Caution
Signal:
- Breakout not supported by volume.
- Elevated risk of failed auction or bull trap.
Capitulation Breakdown (Bottom-side)
Spatial S5 with Kinetic D8
Bias: Climactic Bear (panic)
Signal:
- Capitulation-type selling or forced liquidations.
- Trend can still proceed, but snap-back or violent short-covering risk is high.
Initiative Breakdown vs. Weak Breakdown
- Strong, high-volume breakdown typically corresponds to D7 (Strong Sell).
- Low-volume breakdown often corresponds to D6 (Weak Sell or Fakeout) with potential for failure.
5.2. Absorption, Traps and Springs
Absorption at Resistance (Top-side conflict)
S1 or S2 with D4 (Absorption or Conflict)
Bias: Conflict – Extreme Tension
Signal:
- Heavy two-way trade near resistance.
- Potential distribution or reversal if sellers begin to dominate.
Bull Trap or Failed Auction
Typically S1 with D6 (Weak Sell breakdown behavior after a top-side attempt)
Indicates a breakout attempt that fails and reverses, often after poor liquidity structure.
Absorption at Support and Bear Trap (Spring)
S4 or S5 with D4 or D3
Bias: Conflict or Weak Bear – Reversal Risk
Signal:
- Aggressive buying into lows (spring or shakeout behavior).
- Potential bear trap if price reclaims lost territory.
5.3. Trend Phases
Strong Uptrend Phases
Typically seen when S2–S3 combine with strong bullish kinetic behavior.
Bias: Strong or Extreme Bull
Signal:
- Pullbacks into S3 or S4 with supportive kinetic states often act as trend continuation zones.
Strong Downtrend Phases
Typically seen when S3–S4 combine with strong bearish kinetic behavior.
Bias: Strong or Extreme Bear
Signal:
- Rallies into resistance with strong bearish kinetic backing may act as continuation sell zones.
5.4. Neutral, Exhaustion and Squeeze
Exhaustion or Liquidity Void
S1 or S5 with D5 (Neutral kinetics)
Bias: Neutral or Exhaustion
Signal:
- Spatial extremes without kinetic confirmation.
- Often marks the end of a move, with poor follow-through.
Choppy, Low-Activity Range
S3 with D5
Bias: Neutral
Signal:
- Low volume, low conviction market.
- Typically a low-probability environment where standing aside can be logical.
Squeeze or High-Tension Zone
S3 with D4 or tightly clustered kinetic values
Bias: Conflict or High Tension
Signal:
- Hidden battle inside a volatility contraction.
- Often precedes large directionally-biased moves.
6. Dashboard Layout & Reading Guide
When Show Dashboard is enabled, BDMA displays:
1. Title and Status Line
Name of the current regime (for example: Climax Breakout, Bear Trap Spring, Mean Reversion).
2. Bias Line
Plain-language summary of directional context such as Climactic Bull, Strong Bear, Neutral, or Conflict and Reversal Risk.
3. Signal or Strategic Notes
Concise guidance focused on risk and context, not entries. For example:
- High reversal risk – aggressive traders only
- Wait for confirmation (break or rejection)
- Low probability zone – avoid taking new positions
4. Kinetic Profile (4-Factor Z-Score)
Shows the current Z-Scores for Total Volume (Activity), Buy Volume (Attack), Sell Volume (Defense), and Delta (Net Result).
5. Matrix Heatmap (5×8)
Visual representation of S-State vs. D-State with color coding:
- Bullish clusters in a green spectrum
- Bearish clusters in a red spectrum
- Conflict or exhaustion zones in yellow, amber, or neutral tones
The dashboard can be repositioned (top right, middle right, or bottom right) and its size can be adjusted (Tiny, Small, Normal, or Large) to fit different layouts.
7. Inputs & Customization
7.1. Core Parameters (Bollinger and Z-Score)
- Bollinger Length and Standard Deviation define the spatial engine.
- Z-Score Lookback (All Factors) defines how many bars are used to normalize volume and delta.
7.2. Deep Kinetic Thresholds
- Extreme Threshold defines what is considered climactic (D1 or D8).
- Significant Threshold distinguishes strong initiative vs. weak or fakeout behavior.
- Neutral Threshold is the band within which delta is treated as neutral.
These thresholds allow you to tune the sensitivity of the kinetic classification to fit different timeframes or instruments.
7.3. Calculation Method (Volume Delta)
Geometry (Approx)
- Fast, non-repainting approach based on candle geometry.
- Suitable for most users and real-time decision-making.
Intrabar (Precise)
- Uses lower-timeframe data for more precise volume delta estimation.
- Intrabar mode can repaint and requires compatible data and plan support on the platform.
- Best used for post-analysis or research, not blind automation.
7.4. Visuals and Interface
- Toggle Bollinger Bands visibility on or off.
- Switch between Dark and Light color themes.
- Configure dashboard visibility, matrix heatmap display, position, and size.
8. Multi-Language Semantic Engine (Asia and Middle East Focus)
BDMA v7.0 includes a fully integrated multi-language layer, targeting a wide geographic user base.
Supported Languages:
English, Türkçe, Русский, 简体中文, हिन्दी, العربية, فارسی, עברית
All dashboard labels, regime titles, bias descriptions, and signal texts are dynamically translated via an internal dictionary, while semantic meaning is kept consistent across languages.
This makes BDMA suitable for multi-language communities, study groups, and educational content across different regions.
However, due to the heavy computational load of the Deep Kinetic Engine and TradingView’s strict Pine Script execution limits, it was not possible to expand support to additional languages. Adding more translation layers would significantly increase memory usage and exceed runtime constraints. For this reason, the current language set represents the maximum optimized configuration achievable without compromising performance or stability.
9. Practical Usage Notes
BDMA is most powerful when used as a contextual overlay on top of market structure (HH, HL, LH, LL), higher-timeframe trend, key levels, and your own execution framework.
Recommended usage:
- Identify the current regime (Status and Bias).
- Check whether price location (S-State) and kinetic behavior (D-State) agree with your trade idea.
- Be especially cautious in climactic and absorption or conflict zones, where volatility and risk can be elevated.
Avoid treating BDMA as an automatic green equals buy, red equals sell tool.
The real edge comes from understanding where you are in the volatility or kinetic spectrum, not from forcing signals out of the matrix.
10. Limitations & Important Warnings
BDMA does not predict the future.
It organizes current and recent data into a structured context.
Volume data quality depends on the underlying symbol, exchange, and broker feed.
Forex, crypto, indices, and stocks may all behave differently.
Intrabar mode can repaint and is sensitive to lower-timeframe data availability and your plan type.
Use it with extra caution and primarily for research.
No indicator can remove the need for clear trading rules, disciplined risk management, and psychological control.
11. Disclaimer
This script is provided strictly for educational and analytical purposes.
It is not a trading system, signal service, financial product, or investment advice.
Nothing in this indicator or its description should be interpreted as a recommendation to buy or sell any asset.
Past behavior of any indicator or market pattern does not guarantee future results.
Trading and investing involve significant risk, including the risk of losing more than your initial capital in leveraged products.
You are solely responsible for your own decisions, risk management, and results.
By using this script, you acknowledge that you understand these risks and agree that the author or authors and publisher or publishers are not liable for any loss or damage arising from its use. インジケーター

インジケーター

インジケーター

ストラテジー
