DTC Initial Balance ProWHAT THIS DOES
Every trading session has an "Initial Balance" — the first chunk of time
after the open (default: the first hour, 09:30-10:30 New York) where the
market sets its early high and low. Traders have long believed that
WHICH ONE FORMS FIRST — the high or the low — hints at which way the
rest of the day tends to go.
The problem: on a normal chart, you can't actually tell which came
first just by looking at a candle. A single 15-minute or 1-hour candle
can have both a new high AND a new low in it, and the candle's color
tells you nothing about the order they happened in.
This indicator solves that by secretly rebuilding the entire session
minute-by-minute in the background (even if your chart is on 15m, 1H,
or Daily), so it can tell you EXACTLY which one happened first — based
on real timestamps, never a guess.
HOW TO READ IT
- A colored box appears over the session: green means the low formed
first, red means the high formed first. Gray means it's still
forming.
- A small label shows the result once the session ends.
- A table (top-right by default) shows the full breakdown: exact
prices, exact times, and a "Bias" (Long/Short) reading.
THE PART THAT MAKES THIS DIFFERENT
Most tools stop at "which formed first." This one keeps going and
actually checks your chart's history to answer the follow-up question:
"okay, but does that actually mean anything?" It tracks, for every
past session, what price did AFTERWARD — did it break above the
session high, or below the session low — and shows you the real
percentages. So instead of trusting a rule of thumb, you can see
whether it's actually held up on the exact symbol and timeframe you
trade.
It also projects price targets above and below the session (simple
multiples of the session's range) and shows how often price has
historically reached each one.
FEATURES
- Works on any chart timeframe - internally always reconstructed from
1-minute (or 5-minute, for older history) data
- Fully customizable session times, not locked to the NY open
- Adjustable colors, box/line styles, and label sizes
- A statistics table with three sections: current session detail,
all-time stats, and post-session breakout odds
- Price target lines (+0.5x to +3.0x the session range) with their own
historical hit-rate table
- Alerts for session completion and for each outcome
- No repainting - once a session ends, its result is permanently frozen
A NOTE ON HONESTY
This indicator will tell you "Simultaneous" instead of guessing when
the high and low happen too close together to tell apart (this is a
hard limit of how granular historical data can get, not a shortcut).
Older history beyond what 1-minute data allows automatically falls back
to 5-minute reconstruction, clearly labeled in the table so you always
know the precision you're looking at.
This is an analytical tool for understanding market structure, not financial advice.
Historical statistics describe the past
they are not a guarantee of future behavior.
指標

Liquidity & Structure Toolkit [erdensedat] The Liquidity & Structure Toolkit is a comprehensive, all-in-one indicator designed for Smart Money Concepts (SMC), Volume Profile analysis, and overall market structure tracking. It aims to provide traders with a clear visual representation of liquidity zones, structural breaks, session balances, and high-volume nodes without cluttering the chart.
Below is a detailed breakdown of all the features, the math and logic behind the setups, the signal engine, and the alert systems included in this script.
1. Major Targets (Liquidity Pools - BSL/SSL)
The script identifies major structural high and low points that act as liquidity magnets (Buy Side Liquidity - BSL and Sell Side Liquidity - SSL).
Formula & Logic: It uses the ta.pivothigh() and ta.pivotlow() functions. A "Major Target" is confirmed only when the price forms a peak/valley with a user-defined Pivot Sensitivity (default is 10 bars on the left and right).
Visualization: When a major pivot is formed, a horizontal line and a label ("MAJOR BSL" or "MAJOR SSL") are drawn.
Sweep Mechanics: If the price crosses this level later, the level is considered "swept." The solid line turns into a dashed line with lower opacity, indicating that the liquidity has been taken. Swept levels are automatically removed after 24 hours to keep the chart clean.
2. Market Structure Breaks (BOS / CHoCH)
This module tracks internal and external structural shifts based on fractal highs and lows.
Logic: It calculates short-term pivots using a fractal length (default 5). When the price breaks above a recent pivot high, it's considered an upward break. When it breaks below a pivot low, it's a downward break.
BOS vs. CHoCH: The script intelligently labels the breaks based on the previous trend state. If the trend continues (e.g., up break followed by another up break), it labels it as BOS (Break of Structure). If the direction shifts (e.g., down break followed by an up break), it labels it as CHoCH (Change of Character).
Settings: You can choose whether a break requires a candle close beyond the level (Break = Close Beyond Level) or just a wick.
3. Initial Balance (IB) Box
The Initial Balance represents the price range established during the first specified minutes of a new trading session.
Setup: You define the Session Timeframe (e.g., Daily) and the IB Duration (e.g., the first 60 minutes).
Logic: The script tracks the highest high (IBH) and lowest low (IBL) during that initial window. Once the time window closes, the box extends to the right, serving as a dynamic support/resistance zone for the rest of the session.
Visualization: Highlights the IB High, IB Low, and IB Equilibrium (Midpoint) with clean labels and a customizable background box.
4. Volume Profile & POC Box (Point of Control)
A custom Volume Profile engine that calculates the highest volume node (POC) dynamically using lower timeframe data.
Lower Timeframe (LTF) Data: The script automatically fetches lower timeframe volume data (1m, 5m, 15m, or 60m depending on your chart's timeframe) to build an accurate profile inside a custom array matrix.
Rows/Bins: The session range is divided into horizontal bins (default 60). Volume is distributed among these bins based on where the LTF candles traded.
POC Engine Models:
Model 1 (Active POC): Displays the active, evolving POC of the current session as well as historical POCs from previous sessions. Uses a Hysteresis percentage (default 15%) to prevent the POC line from flickering rapidly; the new volume node must exceed the old POC by X% to shift the level.
Model 2 (Previous POC Focus): Instead of showing the actively changing current POC, it projects the finalized POC from the previous session starting from its original birth point, extending it across the current session as a heavy structural magnet.
Delta Lines: Inside the POC box, it plots the highest volume node and its immediate neighboring nodes (top, mid, bot) to show the thickness of the volume cluster.
5. Price Action & MSB Signal Engine
The script includes an automated signal engine that identifies highly probable reversal setups around the liquidity zones.
Price Action (PA) Signals: Triggered when the price "touches" or sweeps a Major BSL or SSL level, and subsequently prints a valid directional candle (e.g., sweeping SSL and printing a solid green candle that is not a Doji).
MSB (Market Structure Break) Signals: Triggered when the price sweeps a major liquidity level (BSL/SSL) and then creates a confirmed structural break (BOS/CHoCH) in the opposite direction.
Visualization: Triangle shapes are plotted above/below the signal candles (Green for Buy, Red for Sell).
6. Moving Averages & VWAP
For trend filtering and dynamic support/resistance, the toolkit includes optional traditional indicators:
VWAP: Session-based Volume Weighted Average Price.
Customizable MAs: Up to 5 moving averages can be toggled on/off. Supported types include SMA, EMA, WMA, HMA, and VWMA. Each can have its own length and color settings.
7. Alerts System
The indicator features a built-in alert system for the signal engine.
PA Signal Alert: Fires whenever a valid Price Action bounce occurs at a BSL/SSL level.
MSB Signal Alert: Fires whenever a structural reversal is confirmed after a liquidity sweep.
How to use: Create an alert in TradingView, select this indicator, and choose "Any alert() function call".
Disclaimer
This indicator is for educational and analytical purposes only. It does not constitute financial advice or a recommendation to buy or sell any asset. Past performance is not indicative of future results. Trading cryptocurrencies, forex, and stocks carries a high level of risk. Always perform your own backtesting, use proper risk management, and consult with a certified financial advisor before making any trading decisions. 指標

Stocks: Financial Summary [invincible3]Stocks: Financial Summary
Stocks: Financial Summary is a compact fundamental dashboard designed to visualize a company’s key financial statements directly on the TradingView chart.
The indicator displays three major financial sections:
Income Statement
Revenue, Gross Profit, EBIT or Operating Income, Pretax Income, and Net Income.
Balance Sheet
Total Assets, Total Liabilities, and Shareholders’ Equity.
Cash Flow
Cash Flow from Operations, Cash Flow from Investing, Cash Flow from Financing, and Free Cash Flow.
The dashboard is drawn on the right side of the chart using a clean multi-panel bar-chart layout. It allows traders and investors to quickly compare historical yearly or quarterly financial data without leaving the price chart.
Key Features
* Supports Yearly and Quarterly financial views.
* Optional TTM display for Income Statement and Cash Flow.
* Visual comparison of historical financial periods.
* Auto unit formatting: Raw, K, M, B, and T.
* Customizable dashboard position, spacing, bar width, colors, and transparency.
* Right-side layout designed to keep the price chart readable.
* Uses actual TradingView financial data through `request.financial()`.
* Includes manual fiscal year and quarter override options when exchange reporting labels need adjustment.
This tool is designed for fundamental analysis, long-term stock screening, and quick financial statement comparison. It can help users visually inspect whether a company’s revenue, profitability, assets, liabilities, cash flow, and free cash flow are improving or weakening over time.
This indicator is for educational and informational purposes only. It is not financial advice.
指標

Dual Profile Structure Map [JOAT]Dual Profile Structure Map
Introduction
Dual Profile Structure Map is an open-source session volume profile indicator that computes Point of Control, Value Area High, Value Area Low, and Initial Balance levels for the current session and displays them as a horizontal histogram overlaid on price. Unlike fixed-range or visible-range profiles, this indicator uses time-based session segmentation — the profile represents only the bars within the current trading day, updating continuously as each bar closes.
The profile answers a specific question: where was the majority of trading activity concentrated in the current session, and what are the structural reference levels that follow from that activity? The Initial Balance (the range of the first hour of the session) provides context for whether subsequent price behavior is an extension or a rejection.
Core Concepts
1. Volume Profile Calculation
Price range is divided into configurable bins. Each bar's volume is allocated to the bins that overlap its high-low range, proportionally by the fraction of the bar that falls within each bin. The result is an array of volume-at-price values for the session:
for b = 0 to nBins - 1
float binLo = profileLow + b * binSize
float binHi = binLo + binSize
float overlap = math.min(high, binHi) - math.max(low, binLo)
if overlap > 0
vol_at_bin += volume * (overlap / (high - low))
2. Point of Control and Value Area
The Point of Control (POC) is the bin with the highest volume — the price level where the most trading occurred. The Value Area is computed using the standard 70% rule: starting from the POC, adjacent bins are added to the value area (choosing the higher-volume adjacent bin each time) until 70% of session volume is captured. The resulting Value Area High (VAH) and Value Area Low (VAL) define the range where value was accepted.
3. Initial Balance
The Initial Balance uses the high and low of the first configurable number of bars after session open (default: first 4 bars on a 15-minute chart = first hour). IB High and IB Low are drawn as horizontal lines across the chart. Price trading above IB High is bullish extension; below IB Low is bearish extension; inside the IB is balance.
4. Histogram Rendering
Volume bins are rendered as horizontal bars extending leftward from the right edge of the session. Bar width is proportional to relative volume. The POC bin uses a distinct color. Value area bins use a softer fill. Bins outside the value area use the dimmest fill. This creates the standard volume profile "bell curve" visualization.
Features
Session volume profile: Real-time per-session histogram updated bar by bar
Point of Control (POC): Highest-volume price bin with labeled line
Value Area (VAH/VAL): 70% volume concentration band with boundary lines
Initial Balance High/Low: First-session-period range with horizontal level lines
Configurable bin count: Controls granularity of the volume distribution
Session reset logic: Profile resets at each new session boundary
Candle coloring: Candles painted by position relative to POC and value area
Dashboard: Current POC, VAH, VAL, IB range, and session volume total
Input Parameters
Profile Configuration:
Number of Bins: Price level granularity for the profile (default: 24)
IB Bars: Number of bars defining the Initial Balance period (default: 4)
Session Type: Trading session boundary for profile reset
Display:
Histogram Width: Maximum bar width in chart bars (default: 30)
Show POC Line toggle
Show Value Area toggle
Show Initial Balance toggle
Show Candle Color toggle
How to Use This Indicator
Step 1: Identify the POC
The POC is the fair value anchor for the session. Price gravitating toward the POC during a pullback indicates healthy trend behavior. Price unable to hold above or below the POC suggests indecision at current levels.
Step 2: Use Value Area for Range Context
Value area acceptance means price is spending time within the 70% volume zone — a range-bound state. Value area rejection (price rapidly leaving VAH or VAL and not returning) indicates directional conviction.
Step 3: Trade Initial Balance Extensions
A close above IB High with follow-through is a bullish extension signal. A close below IB Low is bearish. Range expansion beyond the IB indicates participants accepting new value outside the opening equilibrium.
Step 4: Watch POC as Support or Resistance
On future pullbacks, the prior session's POC often acts as structural support or resistance. The indicator's persistent level lines provide these reference points across sessions.
Indicator Limitations
Volume profile interpretation requires practice; mechanical rules based on profile levels without context produce poor results
On instruments with irregular volume distribution (low-liquidity sessions, gaps), profiles may cluster into unrepresentative patterns
The 70% value area rule is a convention from Market Profile theory, not a mathematically proven optimal threshold
Originality Statement
The combination of a real-time session volume profile with Initial Balance tracking, candle coloring by value area position, and a live-updating dashboard in a single Pine Script v6 publication provides a self-contained session structure tool. The session-adaptive profile calculation using proportional volume allocation across bins is implemented from first principles, not adapted from another published script.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Volume profile levels are historical references and do not guarantee future price reactions. Trading involves substantial risk of loss.
-Made with passion by jackofalltrades
指標

Initial Balance Breakout [samjNQ] v3---samjNQ Initial Balance Breakout strategy---
**Initial Balance Breakout — Strategy Description**
Trades breakouts of the first-hour Initial Balance on the Micro E-mini S&P 500 (MES1!) using a clean set of filters to avoid noise and low-quality setups.
**How it works:**
The Initial Balance (IB) is defined as the high and low of the 9:30–10:30 AM ET window — the first hour of Regular Trading Hours. Once that window closes and the IB locks, the strategy waits for price to break above the IB High (long) or below the IB Low (short) during the trade window (10:30 AM–2:30 PM ET).
**Filters applied:**
- **VWAP trend filter** — only takes long breakouts when price is above VWAP, and short breakouts when price is below. Avoids trading against intraday momentum.
- **IB range filter** — skips days where the IB is too narrow (choppy, commissions eat returns) or too wide (extensions become unreachable). Configurable min/max in points.
- **2:30 PM cutoff** — no new entries in the last 90 minutes of the session. Late breakouts rarely have time to reach targets.
- **One trade per direction per day** — no re-entries after a stop-out.
**Exits:**
- Stop: opposite IB level (IB Low for longs, IB High for shorts)
- Target: 1.5× the IB range beyond the breakout level
- EOD flat: any open position is closed at 3:55 PM ET
**Chart visuals:**
- Yellow background = IB building window
- Blue lines = IB High / IB Low / Midpoint
- Green lines = long extension targets (T1 / T2)
- Red lines = short extension targets (T1 / T2)
- Orange line = VWAP
- Gray background = day filtered out by range rules
**Settings:** All parameters are adjustable — IB window, trade window, target multiples, stop mode, range filter thresholds, and VWAP filter toggle.
Built and backtested on MES1! 5-minute chart. Commission set to $2.25/contract, 1-tick slippage included.
--- 策略

OTE Sweep Signal + MTF Bias + VWAP + DR# OTE Sweep Signal + MTF Bias + VWAP + DR
## Overview
A comprehensive intraday trading system that combines four core concepts into one indicator: **Dealing Range (DR) session boxes**, **Optimal Trade Entry (OTE) sweep signals**, **Multi-Timeframe (MTF) bias**, and **VWAP**. Designed for futures traders (NQ, MNQ, ES, MES) but works on any liquid intraday instrument.
The indicator automatically identifies when price sweeps liquidity above or below a prior HTF candle's high or low, pulls back into the 50–61.8% retracement zone (the OTE), and fires an entry signal — all filtered by session time, swing structure, range limits, VWAP, and a confirmed Dealing Range bias.
---
## How It Works
### 1. HTF Sweep Detection
On each new bar of your chosen Signal Timeframe (default 60m), the indicator locks in the prior candle's high and low as liquidity targets. If price sweeps above the prior high without taking the prior low (bull sweep), or below the prior low without taking the prior high (bear sweep), the sweep is locked in and the OTE zone is drawn.
### 2. OTE Zone
Once a sweep is detected, the indicator calculates the retracement zone between the 50% and your chosen OTE level (default 61.8%) of the swept candle's range. When price closes back inside this zone for the first time, an entry signal fires.
### 3. Entry, Stop, BE, and Target
- **Entry**: Top of OTE zone (bull) or bottom (bear)
- **Stop**: Prior candle high/low OR OTE zone buffer (selectable)
- **Break Even (BE)**: HTF candle open price
- **Target**: Prior candle H/L, next HTF swing H/L, or a fixed R:R multiplier
Each signal draws a label showing all four levels.
---
## Settings Groups
### Timeframe
- **Signal Timeframe** — The HTF used to identify sweeps and draw the OTE zone. Default 60m. Works on any intraday TF (5m, 15m, 30m, 60m, 240m).
- **Auto Sweep Window** — Automatically sets the window for valid sweeps to 1/3 of the signal TF duration. Turn off to set manually.
- **Sweep Window (minutes)** — Manual sweep window when Auto is off.
---
### OTE Zone
- **OTE Level (%)** — The deep retracement level that defines the bottom of the OTE zone. Default 61.8%. Range: 55–79%.
- **Show OTE Zone** — Toggle the shaded OTE box on/off.
- **Show Key Levels** — Toggle individual level lines (prior H/L, open, stop, target).
---
### Signals
- **Show Entry Arrows** — LONG/SHORT arrows plotted at the signal bar.
- **Show Stop & Target Label** — Detailed label with Entry, Stop, BE, and Target levels.
- **Stop Method** — *Prior Candle High/Low*: stop at the swept candle's opposite extreme. *OTE Zone Buffer*: stop just beyond the OTE deep level by a % of range.
- **OTE Stop Buffer** — Buffer percentage when using OTE Zone Buffer stop method.
- **Max Prior Candle Range (pts)** — Filters out signals where the swept candle's range is too large to produce a clean OTE setup. Default 100 pts.
- **Enable Max Range Filter** — Toggle the range filter on/off.
- **Target Method** — *Prior Candle H/L*: target the opposite extreme of the swept candle. *Next Swing H/L*: target the nearest HTF swing high/low beyond the sweep. *Fixed R:R*: target = entry ± (risk × multiplier).
- **Fixed R:R Multiplier** — Used only when Target Method is Fixed R:R. 2.0 = 2:1 reward to risk.
---
### Swing Filter
Filters out signals where price has swept through an intermediate HTF swing high or low between the prior candle extreme and the current bar. This prevents chasing signals that are actually breaking through multi-bar structure, not just taking a liquidity sweep.
- **Enable Swing Filter** — Toggle on/off.
- **Show Swing Levels** — Plots the four most recent HTF swing highs and lows as reference lines.
- **Show Blocked Signals** — Shows faded X arrows where a signal was detected but blocked by the swing filter or range filter.
---
### Session Filter
- **Enable Session Filter** — Only fire OTE signals during your defined trading hours.
- **Session Start Hour (ET)** — Default 9 (9 AM ET).
- **Session End Hour (ET)** — Default 16 (4 PM ET).
---
### Dealing Range (DR)
The Dealing Range (also called the Initial Balance) is the high/low established during each session's opening window. Three sessions are tracked independently.
**Session Times (all ET):**
| Session | Build Window | Extend Window |
|---|---|---|
| Asia | 7:00 PM – 8:00 PM | 8:00 PM – 2:00 AM |
| London | 3:00 AM – 4:00 AM | 4:00 AM – 8:30 AM |
| New York | 9:30 AM – 10:30 AM | 10:30 AM – 4:00 PM |
**Display options:**
- **Show Asia / London / New York DR** — Toggle each session independently.
- **DR Time / Extend** — Fully customizable session windows for each.
- **Show DR Box (build window only)** — Shaded box that spans only the DR build period. Updates live as price builds the range and freezes when the session ends.
- **Show DR High/Low Lines** — Horizontal lines at the DR high and low. Can extend into the session extend window.
- **Extend H/L Lines into session** — When on, H/L lines extend to the end of the session extend window.
- **Show DR Open Line** — Dashed line at the first price of the DR session.
- **Show 25 / 50 / 75% Levels** — Internal DR levels at 25%, 50%, and 75% of the DR range. Update live during the build window and freeze when the DR closes. Labeled at the right edge.
- **Extend % Lines into session** — When on, the 25/50/75% lines also extend into the extend window.
- **Show % Level Labels** — Small text labels at the right edge of each % line.
- **Line Width** — Width of all DR lines (1–4 px).
**Per-session colors:** Each session (Asia, London, NY) has three separate color pickers — Box fill, High/Low line, and % lines — so you can distinguish sessions at a glance.
**DR Open Line Color** — Shared color for the open line across all sessions.
**NY DR Break + Day Bias Filter:**
Once the NY DR build window closes (10:30 AM), the indicator watches for price to close outside the NY DR high or low. When confirmed, it locks in the day's directional bias and fires a labeled arrow on the chart.
- **Filter OTE by NY DR Break Direction** — When on, only takes OTE longs when day bias is BULL, only takes OTE shorts when day bias is BEAR.
- **Show DR Break Label on Chart** — Arrow label showing "BULL DR" or "BEAR DR" with timestamp at the confirmation bar.
- **Confirmation Closes Required** — Number of consecutive closes beyond the DR high/low needed to confirm (1–3). Default 1.
- **Enable Time Gate** — Prevents the DR bias filter from activating before a set time. Avoids pre-market fakeouts locking you into one direction all day. Default 10:30 AM ET.
- **Gate Hour / Gate Minute** — The time gate threshold.
- **Block All Signals Before Gate Time** — When on, no OTE signals fire at all until the gate time passes.
- **Break Bull / Bear Color** — Colors for the DR break label and bias display.
---
### VWAP
- **Show VWAP Line** — Plots the session VWAP. Color and width adjustable.
- **Enable VWAP Filter** — When on, only takes long OTE signals when price is above VWAP, and short signals when below. Defaults to OFF — use the Results Table to A/B test its effect.
- **Show VWAP Distance in Bias Table** — Adds a row to the MTF Bias Table showing how many points price is currently above or below VWAP.
---
### HTF Range Box
Draws a shaded box for every bar of your Signal Timeframe, spanning the full high-to-low range. The box updates live as the HTF candle builds and the color reflects the current candle's direction (green if close ≥ open, red if not). These boxes give immediate visual context for where the HTF candle is relative to its own range.
- **Show HTF Range Box** — Toggle on/off.
- **Bull / Bear Fill Color** — Box fill colors for bullish and bearish HTF candles.
- **Bull / Bear Border Color** — Border colors.
- **Border Width** — 0–4 px.
- **Extend Current Box Right** — When on, the active box projects one bar to the right.
---
### MTF Bias Table
A live bias dashboard showing whether each of your seven chosen timeframes is currently Bullish, Bearish, or Neutral — based on whether the current bar has broken above the prior bar's high or below the prior bar's low.
- **Show MTF Bias Table** — Toggle on/off.
- **TF 1–7** — Set any seven timeframes to monitor. Defaults: 1, 5, 15, 30, 60, 240, D.
- **Bias Table Position** — Top Right, Top Left, Bottom Right, Bottom Left.
- **Bias Table Size** — Tiny, Small, Normal, Large.
- **Show Bull/Bear Score Row** — Summary row showing count of bullish vs bearish TFs (e.g. "4B / 3S").
- **Show Accuracy (n / %)** — For each TF, tracks how often the bias signal correctly predicted the following bar's close direction. Shows percentage and sample count. Each TF accumulates at its own rate — a 1m TF will have far more samples than a Daily.
- **All color options** — Separate colors for bullish fill/text, bearish fill/text, neutral fill/text, header fill/text, score row fill/text.
The table also includes a **NY DR BIAS** row at the bottom showing the current day's confirmed Dealing Range direction and whether the filter is active.
---
### Colors
- **Bullish / Bearish Color** — Main signal colors used for OTE zone fills and entry arrows.
- **Zone Transparency %** — How transparent the OTE zone fill is (60–95%).
---
### Results Table (Table 1 — Summary)
A compact performance summary. Position is independently configurable.
- **Show Results Table** — Toggle on/off.
- **Summary Table Position** — Where to anchor Table 1 (settings + stats + P&L).
- **Table Size** — Tiny, Small, Normal, Large.
- **Timezone** — ET by default.
- **$ Per Point** — Set to 20 for NQ, 2 for MNQ, 50 for ES, 5 for MES.
- **Number of Contracts** — Scales all dollar P&L figures.
**Table 1 shows:**
- Active filter settings (stop method, swing filter, session, max range, target, VWAP, DR)
- Trades, Wins, Break Evens, Losses, Blocked signals, Win Rate
- Avg Win (pts + $), Avg Loss (pts + $), Total Won, Total Lost
- Net P&L (pts + $)
---
### Results Table (Table 2 — Hour/Slot Breakdown)
Separate table showing performance broken down by time slot. Works correctly for any signal timeframe — a 30m signal TF shows `9:30AM-10:00AM` style slots, not just hourly.
- **Hour Table Position** — Where to anchor Table 2. Default: Bottom Left (separate from Table 1).
- **Columns**: Time slot | W | BE | L | Net Pts
---
## Signal Logic Summary
A signal fires when ALL of the following are true:
1. Price swept the prior HTF candle's high (long) or low (short) within the sweep window
2. Price closed back inside the OTE zone for the first time
3. Within the session filter hours
4. Prior candle range did not exceed the max range filter
5. No intermediate HTF swing high/low was breached (swing filter)
6. VWAP filter passed (if enabled)
7. NY DR bias filter passed (if enabled and confirmed)
8. Past the time gate (if block-before-gate is enabled)
Signals blocked by filters 4–8 are shown as faded X arrows so you can visually audit what the filters are doing.
---
## Notes
- Works best on 1m and 5m charts with the Signal Timeframe set to 30m, 60m, or 240m.
- The indicator uses `max_bars_back=5000` to support longer lookback periods.
- DR boxes and lines use `xloc.bar_time` for precise timestamp-based placement.
- On chart timeframes below 5 minutes, a 5m security request is used for DR calculations to match the original DR/Initial Balance convention.
- All dollar P&L figures are estimates based on your $ Per Point and contract count settings — not a substitute for actual brokerage records. 指標

Initial Balance Break Planner [AGPro Series]Initial Balance Break Planner
🧠 Core Idea
Is the Initial Balance break being accepted, or is it becoming vulnerable to failure back inside the balance?
📌 Overview / What it does
Initial Balance Break Planner is an intraday session planning tool built around the first major balance of the trading session. It maps a configurable Initial Balance window, tracks the first break beyond that balance, and evaluates whether that break has enough quality to deserve structured review. The default showcase workflow is designed for intraday charts up to 60 minutes.
The script produces a locked Initial Balance box, break review labels, acceptance labels, failure-risk labels, failed-IB markers, target rails, and an invalidation reference. The panel summarizes the active state through IB State, Break Side, Acceptance Score, Failure Risk, and Action.
It does not predict future price movement, automate trades, or tell the user what to buy or sell. It is a rule-based decision-support overlay for reading Initial Balance behavior with more structure.
🎯 Purpose & Design Philosophy
This script was built to solve a common intraday problem: many traders can see that price broke the first balance, but they still need a cleaner way to judge whether that break is accepted, stretched, weak, or vulnerable.
The tool is designed for traders who use session structure, Initial Balance concepts, intraday breakouts, and structured risk review. Its purpose is not to create another simple breakout signal. Its purpose is to turn the Initial Balance break into a practical planning framework.
The design philosophy is simple: map the balance, evaluate the break, show the risk, project the planning rails, and keep the next action readable.
⚡ Why This Script Is Different
Most opening-range tools focus on basic breakout direction, raw high/low levels, or target projections.
This script does NOT clone ORB Quality or Opening Range Failure Zones. ORB Quality is focused on opening range breakout quality and drive continuation. Opening Range Failure Zones is focused on failed opening range probes and reclaim zones.
Instead, Initial Balance Break Planner focuses on the post-IB decision layer: is the first Initial Balance break accepted, does the retest response support the break, where is the invalidation reference, where are the target rails, and what should the trader review next?
⚙️ Methodology
1. Context Detection
The script builds the Initial Balance from a configurable session window. The default uses the first 60 minutes of the New York regular session.
2. Reference Mapping
Once the IB window ends, the script locks the IB high, IB low, and midpoint. The box remains centered with an internal state label so the chart stays visually clear.
3. Reaction Evaluation
After the first break, the planner scores the setup using:
• IB width
• Break close quality
• Retest response
• Relative volume support
• Volatility fit
4. Visual Output
The chart displays break labels, acceptance labels, risk-review labels, failed-IB markers, target rails, and an invalidation rail. The panel converts the model into a compact next-action state.
🗺️ How to Read the Chart
The Initial Balance box represents the first session balance selected by the user.
Break labels show when price closes beyond the IB edge with enough buffer to start review.
Acceptance labels appear when the break has enough score, enough confirmation time, and controlled failure risk.
Failure-risk labels warn that the break is weakening or returning back inside the balance.
Target rails show measured planning references from the broken IB edge.
The invalidation rail marks the area where the break begins losing acceptance quality.
Panel colors summarize the current state:
• Teal → stronger acceptance or constructive long-side context
• Pink → bearish break side or failed context
• Amber → watch, risk review, or unresolved state
• Indigo / blue → active planning context
🚦 Signals & States
• IB READY → the Initial Balance has locked and the planner is ready to track the first break
• BREAK UP REVIEW → price closed beyond the upper IB edge and long-side review has started
• BREAK DOWN REVIEW → price closed beyond the lower IB edge and short-side review has started
• RETEST HOLD → price retested the broken IB edge without clearly losing it
• ACCEPTED → the break met the acceptance threshold with controlled failure risk
• RISK REVIEW → the break is not yet accepted and failure vulnerability is rising
• FAILED IB → price failed back inside the Initial Balance with elevated weakness context
🔔 Alerts Logic
Alerts trigger when the script detects:
• A bullish IB break review
• A bearish IB break review
• Bullish IB acceptance
• Bearish IB acceptance
• Failure-risk review
• Failed return back inside the IB
Alerts are attention markers only. They are not trade instructions.
🧩 Confluence Logic
The strongest context appears when the break close is clean, the IB width is balanced, volume is supportive, volatility is not overheated, and the retest response holds the broken edge.
When these elements align, the Acceptance Score improves and the panel can move from Observe Retest into Review Long or Review Short.
📊 When to Use
• Intraday markets with clear session structure
• 1-minute to 60-minute charts
• Index, futures, FX, and liquid crypto sessions
• Initial Balance breakout review
• Session expansion planning
• Post-break retest evaluation
• Risk and target planning after the first session balance breaks
⚠️ When NOT to Use
• Very low-liquidity symbols
• Extremely noisy micro timeframes
• Markets with poor session definition
• Events with abnormal volatility spikes
• Symbols where volume data is unreliable and should not be weighted heavily
• Higher timeframes where the selected IB session has little practical meaning
• 4H, daily, weekly, or monthly charts where a one-session Initial Balance cannot be mapped cleanly
🎛️ Key Inputs
• Initial Balance Window → defines the balance-building period
• Tracking Session → defines when break review can update
• Sensitivity → adjusts how selective the planner is
• Acceptance Lookback → controls the review window after the first break
• Minimum Acceptance Score → sets the threshold for accepted-break states
• Confirmation Mode → chooses confirmed-bar behavior or live updating
• Break Buffer ATR → controls how far price must close beyond the IB edge
• Retest Response Buffer ATR → controls retest tolerance around the broken edge
• Failure Buffer ATR → controls how quickly returning inside the IB raises risk
• Target Rail Multiples → control measured target references
• Max Visible IB Boxes → controls how many recent balance boxes stay on the chart
• Max Visible Labels → controls how many recent event labels stay on the chart
• Show IB Ready Labels → optionally displays a readiness label when the Initial Balance locks
• Visual Settings → control labels, box count, rail projection, and spacing
• Panel Settings → control panel visibility, location, theme, and font size
🖥️ Interface & Visual Design
The script uses a chart-first design. The Initial Balance box is the main anchor, and the centered box label keeps the active state visible without requiring a large dashboard.
Event labels are deliberately compact and offset away from candles. Target rails and invalidation rails are projected only after a break, so the chart remains clean during the balance-building phase.
The AG Pro panel uses a single merged blue header row and five compact rows so the user can quickly scan state, side, score, risk, and action.
🧪 Practical Usage Workflow
1. Read the panel after the Initial Balance locks.
2. Wait for price to break one IB edge.
3. Check whether the break receives a clean score or moves into risk review.
4. Watch the broken edge for retest behavior.
5. Use the target rails and invalidation rail as planning references.
6. Interpret the result within broader market context.
🔍 Interpretation Guidelines
The Acceptance Score is a quality score, not a prediction. Higher scores mean the break has better internal structure according to the script's rules.
Failure Risk is a warning layer. It rises when price loses acceptance quality, moves back inside the IB, shows weak close behavior, or lacks participation.
The Action row is the most practical summary. It helps the user decide whether the environment is still building, waiting, reviewing, accepted, vulnerable, or better left alone.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not auto trading
• Not guaranteed signals
• Not a generic ORB breakout system
• Not Opening Range Failure Zones
• Not a broad support/resistance or order-block map
⚠️ Limitations & Transparency
Initial Balance behavior changes across symbols, sessions, and timeframes. A 60-minute IB on one market may behave differently from the same window on another market.
Relative volume can be less useful on symbols where reported volume is incomplete or inconsistent.
Fast news events, thin liquidity, and unusual volatility can reduce the usefulness of any session-break model.
The script evaluates rule-based context only. It cannot know future order flow or guarantee what price will do next.
🧠 Market Context Notes
Initial Balance analysis is most useful when the session has a meaningful opening phase and a clear expansion phase.
A clean break usually needs more than a line cross. The break should show location, acceptance, participation, and controlled risk.
A weak break can still travel further, and a strong break can still fail. The script is designed to help structure the review, not remove uncertainty.
🧾 Use Case Examples
When price breaks above the IB high, receives a strong acceptance score, holds the broken edge on retest, and keeps failure risk low, the panel may move into Review Long.
When price breaks below the IB low but quickly returns back inside the balance with weak close quality, the panel may move into Failure Watch or Failed Back In.
When the IB is too wide, volatility is unstable, and the break lacks volume support, the planner can remain cautious even if price has crossed the edge.
🧱 System Philosophy
The AGPro Series approach is built around decision structure, not raw signal output.
Initial Balance Break Planner follows that philosophy by combining a visible session reference with a score, risk layer, target references, and a next-action panel.
The goal is to make the chart easier to interpret without making the chart crowded.
🔐 Non-Promise Statement
This script does not provide certainty.
It does not guarantee that an accepted break will continue or that a vulnerable break will reverse.
All outputs should be interpreted as structured analytical context.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own analysis, execution, and risk management.
This script is not financial advice and does not provide guaranteed trading outcomes.
📚 Educational Note
Initial Balance analysis can help traders study how a session moves from balance into expansion, but it should always be combined with broader market structure, liquidity, volatility, and personal execution rules.
指標

Session Range Expansion Planner [AGPro Series]Session Range Expansion Planner
🧠 Core Idea
Is the session expanding from balance into a valid range extension, or is the break still too weak to trust as context?
📌 Overview / What it does
Session Range Expansion Planner is a 1H-focused intraday execution-readiness tool built around one clear workflow: define the early-session balance, track expansion beyond that range, and score whether the move has enough acceptance, volume support, volatility fit, and target room to deserve attention.
The script produces a session range box, accepted target-room bands, acceptance/rejection context, alerts, and a premium AGPro panel with a 0-100 planner score. The default visual preset is optimized for 1H and lower charts. Higher intraday charts such as 4H are intentionally kept clean by default.
It does not predict the next candle, automate entries, or issue buy/sell commands. It organizes session behavior into a structured decision layer so the user can evaluate the setup within their own plan.
🎯 Purpose & Design Philosophy
This script was built to fill the gap between simple session boxes and generic breakout indicators.
Most tools show where the session range is. Fewer tools explain whether the break from that range is actually being accepted, whether participation supports it, and whether there is usable room beyond the range.
Session Range Expansion Planner supports a planning mindset: define balance first, wait for expansion, check acceptance, evaluate room, then decide whether the context is worth further review.
⚡ Why This Script Is Different
Most session tools focus on marking opens, coloring sessions, or printing a breakout label as soon as price crosses a high or low.
This script does NOT act as a generic session high/low map, generic support/resistance tool, or broad session reaction scanner.
Instead, it treats the first part of the session as a balance structure and asks whether the later expansion has enough quality to become actionable context. The decision layer is built around acceptance bars, volume support, ATR regime, obstacle distance, and target-room quality.
⚙️ Methodology
1. Context Detection
The script reads the selected intraday session and builds an initial balance range from the first user-defined number of bars.
2. Reference Mapping
The session balance high and low become the only active expansion boundaries. The tool does not use PDH, PDL, weekly open, order blocks, FVGs, or generic swing zones.
3. Reaction Evaluation
When price breaks beyond the balance range, the engine measures acceptance closes, volume support, ATR regime quality, break distance, and nearby obstacle room.
4. Visual Output
The script displays a centered session range label, directional expansion labels, target-room band, acceptance/rejection labels, alerts, and a premium panel with score and next-action state.
🗺️ How to Read the Chart
Session Range Box = the early-session balance area.
Expansion Labels = the side where price first expands beyond the balance high or low.
Target-Room Band = the projected room beyond the broken boundary after expansion has been accepted, scaled by session range or ATR.
Acceptance Labels = confirmation that price has sustained closes beyond the range for the configured number of bars.
Rejection Labels = warning that price has failed back through the broken boundary.
Colors:
• Teal = upside expansion context
• Pink = downside expansion context
• Amber = neutral, warning, or rejection context
• Indigo = AGPro visual accent and target-room support
Panel = the decision cockpit showing planner score, session range, expansion side, acceptance, room score, and next action.
🚦 Signals & States
• Range Set → the initial balance window has completed.
• Expansion Up → price expanded above the session balance high.
• Expansion Down → price expanded below the session balance low.
• Accepted → the expansion held beyond the range for the required acceptance bars.
• Rejection Risk → price failed back through the broken boundary.
• Room Check Reached → price reached the projected target-room area.
🔔 Alerts Logic
Alerts trigger when:
• Upside range expansion is detected
• Downside range expansion is detected
• Expansion becomes accepted
• Rejection risk appears after expansion
Alerts are attention markers. They are not trade instructions and should be interpreted together with broader market context.
🧩 Confluence Logic
The strongest context appears when expansion direction, sustained acceptance, volume support, balanced ATR regime, and clean target room align at the same time.
When those conditions stack together, the planner score rises and the panel moves toward a review-ready state.
📊 When to Use
• 1H intraday charts with clear session behavior
• Opening balance or early-session range workflows
• Breakout quality review
• Volatility expansion planning
• Session continuation evaluation
The script is most useful when a trader wants to know whether a session range break is actually being accepted, not just whether a line was crossed.
⚠️ When NOT to Use
• Very low-liquidity symbols
• Extremely noisy micro timeframes
• Markets with unreliable volume
• Sessions with irregular trading hours
• News-driven candles where range expansion is disorderly
In weak conditions, reduce sensitivity or require stricter acceptance.
🎛️ Key Inputs
• Session Timezone → defines how the selected session is interpreted.
• Expansion Session → sets the active intraday window. The default full-day session is designed to work cleanly on crypto and other 24-hour symbols.
• Visual Timeframe Preset → controls which intraday timeframes show chart objects. The default is 1H and lower because 4H session expansion charts can become too compressed.
• Balance Window Bars → controls how many early-session bars define the range.
• Acceptance Bars → defines how much sustained closing behavior is required.
• Sensitivity → adjusts how fast the script recognizes expansion.
• Confirmation Mode → controls wick, close, or strict acceptance confirmation.
• Minimum Planner Score → sets the score threshold for review-ready context.
• ATR Length → controls volatility normalization and label spacing.
• Obstacle Lookback → estimates nearby structure that may reduce room quality.
• Target Room Multiplier → controls the projected target-room distance.
• Visual Settings → control range boxes, centered range label limit, rails, accepted target-room band, minimum visual score, optional expansion labels, optional room-check labels, optional range-set labels, label size, and object limits.
• Panel Settings → control panel visibility, location, theme, and font size.
🖥️ Interface & Visual Design
The interface is chart-first. The range box and target-room band carry the main visual story, while labels explain state transitions only when meaningful events occur.
The panel is intentionally compact. It gives a fast read of expansion quality without forcing the user to decode many separate plots.
The first panel row follows the AGPro standard: a single merged blue header row with only the script name.
🧪 Practical Usage Workflow
1. Apply the script to an intraday chart.
2. Confirm the correct session and timezone.
3. Let the initial balance window complete.
4. Watch for expansion beyond the balance high or low.
5. Check whether acceptance bars confirm sustained behavior.
6. Read the planner score and room score.
7. Use the next-action state as context for your own execution plan.
🔍 Interpretation Guidelines
A clean expansion is not just a break beyond the range. It should show acceptance, participation, reasonable volatility, and enough room before nearby obstruction.
Low scores usually mean the break is early, unsupported, too noisy, too extended, or too close to an obstacle.
The best use is comparative: review which sessions and symbols repeatedly produce clean accepted expansions versus weak false breaks.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not auto trading
• Not guaranteed signals
• Not a buy/sell command system
• Not a generic support/resistance map
• Not an order block, FVG, or liquidity sweep scanner
⚠️ Limitations & Transparency
Session behavior can vary across assets, timeframes, exchanges, and trading hours.
ATR regime and volume support are rule-based approximations, not certainty models.
On very low timeframes, labels may appear more frequently. On higher intraday timeframes, fewer but more meaningful events are expected.
Markets can expand cleanly and still reverse later. The tool measures context quality, not future certainty.
🧠 Market Context Notes
Session range expansion often becomes more meaningful when it is read together with broader trend, liquidity, volatility, and higher-timeframe structure.
The script deliberately stays focused on session balance and expansion quality. Users can combine it with their own broader framework without duplicating other AGPro tools.
🧾 Use Case Examples
When price breaks above the session range, holds above the balance high for the required acceptance bars, and room score remains strong, the panel may shift into review-ready continuation context.
When price breaks the range but quickly closes back inside the balance, the script marks rejection risk and the panel moves away from continuation review.
🧱 System Philosophy
AGPro tools are built to help traders organize context into clear decision layers.
Session Range Expansion Planner follows that philosophy by turning a common intraday event into a structured planning process: balance, expansion, acceptance, room, action.
🔐 Non-Promise Statement
No script can guarantee future price movement.
The score is a structured context model, not a certainty model.
📉 Risk Disclosure
Trading involves risk. Market conditions can change quickly, and historical session behavior does not guarantee future outcomes.
Users are responsible for their own decisions, risk management, and position sizing.
This script is provided for educational and analytical use only and does not provide financial advice.
📚 Educational Note
Use the script to study how different markets expand from early-session balance. The most valuable insight is not a single label, but the repeated relationship between range quality, acceptance, room, and market context.
指標

Auction Intelligence█ AUCTION INTELLIGENCE
Auction Market Theory Overlay
An Auction Market Theory (AMT) overlay that analyzes market structure through volume profile analysis. It detects profile shape (D/P/b/DD), identifies balance vs. imbalance states, and tracks value migration — giving you the same auction-based framework used by institutional traders to understand market behavior.
Free and Open Source.
█ THE CONCEPT: WHY AUCTION MARKET THEORY MATTERS
Standard indicators tell you what happened. AMT tells you why . Markets are continuous two-sided auctions where buyers and sellers negotiate fair value:
Balance — Price rotates within an accepted value area. Expect mean-reversion and range-bound trading.
Imbalance — Price breaks away from the value area. One side dominates. Expect continuation.
Profile Shape — The distribution of volume tells you who is in control and what to expect next.
Value Migration — The direction where the POC and Value Area are shifting reveals the underlying trend.
█ CORE FEATURES
1. Volume Profile Engine
Distributes each bar's volume proportionally across price rows, building a volume-at-price distribution:
POC (Point of Control) — Highest volume row = strongest S/R level
VAH (Value Area High) — Upper boundary of the 70% value area = resistance
VAL (Value Area Low) — Lower boundary of the 70% value area = support
2. Profile Shape Detection
Automatically classifies the volume distribution into four distinct shapes:
D-shape — Balanced. Volume evenly distributed, POC near center. Expect rotation.
P-shape — Bullish. Volume concentrated in upper half. Buyers in control.
b-shape — Bearish. Volume concentrated in lower half. Sellers in control.
DD (Double Distribution) — Two distinct volume clusters. Market transitioning between value areas.
3. Balance vs. Imbalance Recognition
Three-factor analysis combining price position, VA width dynamics, and trend strength. The chart background colors automatically when imbalance is detected (cyan = bullish discovery, red = bearish discovery).
4. Value Migration Tracker
Monitors how the POC and Value Area midpoint shift over time:
Bullish Migration ▲ — POC and VA migrating higher = institutional buying
Bearish Migration ▼ — POC and VA migrating lower = institutional selling
Neutral ─ — No significant migration = consolidation
█ AUTO-TIMEFRAME ADAPTATION
All parameters automatically adjust based on the chart timeframe:
1-5 min → Lookback 30, 18 Rows, Migration Len 5
15-30 min → Lookback 40, 20 Rows, Migration Len 8
1 Hour → Lookback 50, 24 Rows, Migration Len 10
4 Hour → Lookback 70, 28 Rows, Migration Len 15
Daily → Lookback 100, 32 Rows, Migration Len 20
Weekly+ → Lookback 150, 40 Rows, Migration Len 30
Disable Auto-TF to use manual settings for full control.
█ DASHBOARD
A compact, dark-themed info panel displaying:
State — Current AMT state (BALANCE / IMBALANCE) with context
Shape — Detected profile shape (D / P / b / DD) with description
Migration — Value migration direction and strength
Position — Current price position relative to Value Area
POC / VAH / VAL — Key volume-based levels
█ ALERTS (4 CONDITIONS)
Balance → Imbalance — Market leaving the value area
Imbalance → Balance — Market returning to the value area
Profile Shape Changed — Volume distribution pattern shift
Value Migration Shift — Directional bias change in POC/VA migration
█ PRO VERSION
The PRO version (Auction Intelligence PRO v2.0) adds:
Initial Balance Range — IB Tracking + IB Extension Detection
Failed Auction Detection — VA Breakout Failures
Excess & Poor High/Low — Wick analysis at session extremes
Auction Rotation Factor — POC-cross frequency as market efficiency measure
Day Type Classification — Trend/Normal/Normal Var./Neutral/Double Dist. (Dalton)
Previous Day Value Area — PDPOC/PDVAH/PDVAL as reference levels
Enhanced Confluence Score — 0-12 scale with A+ to D grading
13 Alert Conditions
█ NON-REPAINTING
The volume profile is calculated from confirmed bar data only. The rolling lookback window recalculates on each confirmed bar using historical high/low/volume — no future data is used. No repainting.
█ WORKS ON
Crypto, Forex, Stocks, Futures, Indices — any timeframe from 1 minute to Monthly.
█ DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice. Always do your own research and manage your risk. Past performance does not guarantee future results. Trading involves substantial risk of loss.
指標

Hidden Markov Reversal Finder [UAlgo]Hidden Markov Reversal Finder is a regime aware reversal detection indicator that uses a compact 3 state Hidden Markov style filter with online adaptation to classify market conditions and highlight potential top and bottom rotations. The script models price behavior as transitions between three regimes:
- Bull Expansion
- Balance
- Bear Stress
Instead of running a heavy Baum Welch retraining loop, this version is designed as a lightweight real time filter. It updates regime probabilities using a transition matrix plus a two dimensional Gaussian emission model built from two normalized observations:
Return observation as a smoothed log return z score
Volatility observation as a realized volatility z score
The indicator runs in its own pane ( overlay=false ) but can optionally paint chart bars and place reversal labels on price using force overlay. It also includes a clean dashboard panel showing the current state, confidence, observation values, score, posterior probabilities, stretch, and the current setup classification.
The reversal engine is built around a top rotation and bottom rotation concept. It looks for a probability peak in a regime, then a fade from that peak, combined with momentum flip conditions and a stretch filter measured in ATR units relative to a baseline EMA. Signals are gated by a confidence threshold and a cooldown period to reduce repetitive prints.
This makes the indicator useful as a regime driven reversal framework that integrates:
State probabilities and confidence
Regime score and momentum flip
ATR based stretch extremes
Peak fade rotation logic
Clean visual markers and dashboard transparency
🔹 Features
🔸 1) Three Regime Model
The script uses three explicit regimes with distinct roles:
Bull Expansion, intended to represent positive drift conditions
Balance, intended to represent neutral or mixed drift
Bear Stress, intended to represent negative drift and higher stress conditions
Each regime has its own mean and variance assumptions for return and volatility, which are then adapted online.
🔸 2) Two Dimensional Observation System (Return and Volatility)
The model does not rely on only returns. It uses both:
A normalized return feature
A normalized volatility feature
This helps distinguish clean bullish trends from choppy balance periods, and balance periods from bearish stress regimes.
🔸 3) Transition Matrix with Persistence Controls
Users can control how sticky each regime is through persistence settings:
Bull persistence
Balance persistence
Bear persistence
The transition matrix is constructed so that most probability remains in the same regime, while the remainder flows into other regimes using asymmetric weights that reflect realistic behavior.
🔸 4) Real Time Bayesian Filter Update
Each bar, the model performs:
Prediction step using the transition matrix
Update step using Gaussian emissions
Posterior normalization
Active state selection by arg max
This produces a smooth probability based regime tracker suitable for live use.
🔸 5) Adaptation
After filtering, the model adapts its internal means and variances using a learning rate scaled by posterior responsibility. This allows the state distributions to slowly adjust to changing market conditions without full retraining.
This keeps the indicator responsive while still stable.
🔸 6) Regime Score Output
The main score line is:
Bull posterior minus Bear posterior
This produces a continuous signal that ranges between negative and positive values and functions as a regime tilt meter. A confidence ribbon is also plotted as an area band derived from the dominant posterior.
🔸 7) Confidence Gating and Visual Strength
Confidence is defined as the largest posterior probability among the three regimes. The script uses confidence to:
Gate reversal signals
Determine bar tint transparency when bar coloring is enabled
Decide whether state shift tags should be printed
This reduces noise during low clarity periods.
🔸 8) Rotation Style Reversal Engine
The reversal finder is built on rotation logic:
A top rotation occurs after a Bull probability peak fades while Bear probability begins to rise
A bottom rotation occurs after a Bear probability peak fades while Bull probability begins to rise
This is a probabilistic rotation concept rather than a simple oscillator crossover.
🔸 9) Momentum Flip Confirmation
Signals require momentum confirmation through:
Regime score change direction
Return observation crossing a flip threshold
This is designed to reduce premature top and bottom calls when the regime probabilities shift but price momentum has not actually flipped.
🔸 10) ATR Based Stretch Filter
The script computes stretch as distance from an EMA baseline measured in ATR units. Signals require:
Top signals only when stretch is above a positive threshold
Bottom signals only when stretch is below a negative threshold
This ensures reversal signals occur when price is extended, not when it is near equilibrium.
🔸 11) Cooldown Control
A cooldown setting prevents consecutive buy or sell reversal signals from printing too frequently. This is especially useful when the market chops around an extreme and repeatedly triggers partial rotation conditions.
🔸 12) Dashboard Panel
A table dashboard displays key information on the last bar:
Active state name
Confidence
Return z score and volatility z score
Regime score
Posterior probabilities
Stretch in ATR units
Current setup text such as BUY REVERSAL, SELL REVERSAL, TOP WATCH, BOTTOM WATCH, WAIT
This makes the indicator transparent and easy to interpret.
🔸 13) State Tags and Reversal Labels on Chart
When enabled, the script prints:
State tags such as BULL, BASE, BEAR with arrows
Reversal markers with a vertical guide line and bold letter B or S
Tooltips include confidence, peak probability, stretch, and current posterior probabilities.
🔸 14) Optional Probability Curves and Bar Coloring
Users can toggle:
State probability plots
Signal markers and dots
Dashboard visibility
State tag visibility
Bar coloring by regime with confidence adjusted transparency
This makes the indicator adaptable for minimalist or fully informational workflows.
🔹 Calculations
1) Return Observation Construction
The script uses log returns:
float logReturn = math.log(close / nz(close , close))
It smooths return with an EMA:
float smoothedReturn = ta.ema(logReturn, returnSmoothLength)
Then normalizes by the return standard deviation:
float returnStdev = math.max(nz(ta.stdev(logReturn, returnZLength), EPS), EPS)
float returnObs = clampFloat(smoothedReturn / returnStdev, -obsClamp, obsClamp)
Interpretation:
Return observation is a clamped z score like feature, where positive values represent bullish return pressure and negative values represent bearish return pressure.
2) Volatility Observation Construction
Realized volatility is measured as the standard deviation of log returns:
float realizedVol = nz(ta.stdev(logReturn, volLength), EPS)
Then it is normalized relative to a baseline EMA and baseline standard deviation:
float volMean = nz(ta.ema(realizedVol, volBaselineLength), realizedVol)
float volStdev = math.max(nz(ta.stdev(realizedVol, volBaselineLength), EPS), EPS)
float volObs = clampFloat((realizedVol - volMean) / volStdev, -obsClamp, obsClamp)
Interpretation:
Volatility observation is a clamped z score like feature, where higher values indicate volatility expansion relative to baseline.
3) Warmup Logic
The model waits for enough history to compute stable normalized observations:
int warmupBars = math.max(returnZLength, volBaselineLength) + volLength
bool ready = bar_index > warmupBars and not na(returnObs) and not na(volObs)
Before ready, the script avoids producing live signals and uses the initial posterior distribution.
4) Transition Matrix Configuration
The transition matrix uses persistence values and asymmetric drift splits:
From Bull, most drift flows to Balance and a smaller portion to Bear
From Bear, most drift flows to Balance and a smaller portion to Bull
From Balance, drift splits evenly between Bull and Bear
Core setup:
this.setTransition(STATE_BULL, STATE_BALANCE, bullDrift * 0.78)
this.setTransition(STATE_BULL, STATE_BEAR, bullDrift * 0.22)
...
this.setTransition(STATE_BEAR, STATE_BALANCE, bearDrift * 0.78)
this.setTransition(STATE_BEAR, STATE_BULL, bearDrift * 0.22)
This design makes Balance act like a bridge regime and reduces unrealistic direct flip frequency.
5) Emission Model: 2D Gaussian Density
Each state computes an emission probability from return and volatility observations using a 2D Gaussian likelihood:
float exponent = -0.5 * ((retDeviation * retDeviation) / retVariance + (volDeviation * volDeviation) / volVariance)
float normalizer = 1.0 / (2.0 * math.pi * math.sqrt(retVariance * volVariance))
math.max(normalizer * math.exp(math.max(exponent, -24.0)), EPS)
Variances are floored at 0.12 to prevent collapse.
6) Prediction Step
The model predicts next probabilities using the transition matrix:
predictedProbability += posterior * transition(fromState, toState)
Then normalizes the predicted vector so it sums to 1.
7) Filter Update Step
The posterior is updated by multiplying predicted probabilities by emission likelihoods:
nextPosterior = predicted * emission(state, retObs, volObs)
Then normalized. The active state is the arg max of the posterior.
8) Online Adaptation
The model updates state means and variances using posterior responsibility times learning rate:
float responsibility = posterior * learningRate
Means update by moving toward the current observation:
nextMuRet = oldMuRet + responsibility * retError
nextMuVol = oldMuVol + responsibility * volError
Variances update toward squared error:
nextVarRet = oldVarRet + responsibility * (retError * retError - oldVarRet)
nextVarVol = oldVarVol + responsibility * (volError * volError - oldVarVol)
All parameters are clamped to stability ranges so the model does not explode.
9) Regime Score and Confidence
Score is defined as:
posterior - posterior
Confidence is the maximum posterior:
posterior
These values drive visuals and signal gating.
10) Stretch Calculation in ATR Units
Stretch uses an EMA basis of price and measures distance in ATR units:
float basis = ta.ema(close, stretchLength)
float atrValue = math.max(ta.atr(14), syminfo.mintick)
float stretch = (close - basis) / atrValue
Top stretch requires:
stretch >= stretchThreshold
Bottom stretch requires:
stretch <= -stretchThreshold
This ensures reversals occur when price is statistically extended relative to recent volatility.
11) Probability Peak and Fade Logic
The script measures recent peaks for bull and bear probabilities:
float bullPeak = ta.highest(bullProb , peakLookback)
float bearPeak = ta.highest(bearProb , peakLookback)
Fade is peak minus current:
bullFade = bullPeak - bullProb
bearFade = bearPeak - bearProb
Top rotation condition requires:
Bull peak above threshold
Bull fade above minimum
Bear probability rising
Bottom rotation requires the mirrored conditions.
This captures the idea of regime dominance peaking, then fading as the opposite side begins to regain influence.
12) Momentum Flip Confirmation
Momentum down requires:
Regime score decreasing
Return observation strongly negative below a flip threshold
Momentum up requires:
Regime score increasing
Return observation strongly positive above the flip threshold
This prevents signals when probabilities fade but momentum remains neutral.
13) Signal Gating and Cooldown
Signals require confidence above the threshold and a cooldown to avoid repeated triggers:
confidenceValue >= confidenceThreshold
bar_index - lastSignalBar > cooldownBars
14) Buy and Sell Reversal Signals
Buy reversal:
Bottom rotation
Momentum up
Bottom stretch
Confidence filter
Cooldown filter
Sell reversal:
Top rotation
Momentum down
Top stretch
Confidence filter
Cooldown filter
A Balance signal is also triggered when the state changes to Balance with sufficient confidence.
15) Visual Outputs
The indicator plots:
Regime score line with area fill around zero
Confidence ribbon as an area band
Optional posterior curves for Bull, Balance, Bear
Normalized stretch line scaled by the stretch threshold
Optional dots on the chart for reversal events
Optional bar coloring on the main chart
It also prints:
Reversal labels B and S with stretch, confidence, and peak probability tooltips
State tags on regime shifts
A dashboard panel summarizing live state and setup context 指標

Prior Levels [crlmx] Previous Levels (prLevels) is a Multi-timeframe horizontal price level tool, presenting current/previous day, previous week and custom sessions with optional Initial Balance.
Key Features
- Offering: Open, High, Low, Mid levels on all timeframes
- On/off visibility toggle for sections and individual levels
- Optional price display labels
- Session presets: NYC, London, Asia
- Custom Session timeframes: 4H, 8H, 12H, Month
- Initial Balance: first-hour box with extending H/L reference lines
- Weekday-only session detection for accurate weekend display
- Streamlined input / UI brought to you by crlmx
Trading Applications
- Automated key previous levels for support and resistance read
- Disable unused sections to keep charts clean and reduce visual noise
- Track session-specific ranges for multi-session markets
- Use Initial Balance as directional reference for the day
- Combine with volume or momentum indicators to confirm level reactions
- Intraday Levels: Current Day + Previous Day | Chart: 1-15 min
- Swing Reference: Previous Day + Previous Week | Chart: 15 min - 1H
- Session Trading: Custom Session (NYC/LDN/Asia) + IB | Chart: 1-5 min
- Multi-Session: Stack multiple instances with different session presets
- Initial Balance: Works on 1-5 min charts and can resolve into S/Rs
- Previous Week: Levels for context on session breaks and failed auctions
Version History
- v0.47: Initial release
指標

指標

指標

Fed Balance Sheet (Candles)Fed Balance Sheet (Candles) - TradingView Description
📊 OVERVIEW
Fed Balance Sheet (Candles) transforms the Federal Reserve's total assets into an intuitive candlestick visualization, allowing you to track monetary policy changes with the same visual language you use for price action.
This indicator pulls real-time data directly from FRED (Federal Reserve Economic Data) and displays the Total Assets of All Federal Reserve Banks as dynamic candles on your chart, making it effortless to correlate central bank liquidity with market movements.
🎯 WHY THIS MATTERS
The Federal Reserve's balance sheet is one of the most powerful leading indicators in global markets. When the Fed expands its balance sheet (Quantitative Easing), it injects liquidity into the financial system, historically correlating with:
Rising asset prices (stocks, crypto, commodities)
Lower volatility
Risk-on sentiment
Currency devaluation
When the Fed contracts its balance sheet (Quantitative Tightening), liquidity drains from markets, often leading to:
Asset price pressure
Increased volatility
Risk-off sentiment
Dollar strength
By visualizing this as candles, you can instantly see:
The pace of change (candle size)
The direction (green = expansion, red = contraction)
Acceleration or deceleration (consecutive candles in same direction)
Pivots in monetary policy (color changes from green to red or vice versa)
🔧 HOW IT WORKS
Data Source
Source: Federal Reserve Economic Data (FRED)
Metric: Total Assets of All Federal Reserve Banks
Unit: Displayed in Trillions of USD for easy reading
Frequency: Weekly updates (every Wednesday)
Candlestick Construction
Since balance sheet data is reported as a single number each week (not traditional open-high-low-close), this indicator creates candles by comparing each period to the previous one:
Open = Last week's balance sheet value
Close = This week's balance sheet value
High = The higher of the two values
Low = The lower of the two values
This captures directional movement and magnitude of change, making it intuitive for traders accustomed to candlestick analysis.
Color Scheme
🟢 GREEN CANDLES (Expanding Balance Sheet)
When this week's value is higher than last week's
Interpretation: Fed is adding liquidity (Quantitative Easing)
Historically bullish for risk assets
🔴 RED CANDLES (Contracting Balance Sheet)
When this week's value is lower than last week's
Interpretation: Fed is removing liquidity (Quantitative Tightening)
Historically bearish or neutral for risk assets
Value Label
A floating label displays the current balance sheet value in trillions (e.g., "$8.75T") so you always know the exact figure at a glance.
📈 PRACTICAL APPLICATIONS
1. Market Regime Identification
Strings of green candles = Liquidity-driven bull markets
Strings of red candles = Tightening-induced bear markets or corrections
Color transitions = Potential market inflection points
2. Correlation Analysis
Overlay on stock indices (SPY, QQQ, IWM)
Overlay on crypto (BTC, ETH)
Overlay on commodities (Gold, Silver)
Observe how asset prices react to Fed liquidity changes in real-time
3. Macro Timing
Large green candles = Aggressive easing (crisis response)
Large red candles = Aggressive tightening (inflation fighting)
Small candles = Neutral policy (Fed on hold)
4. Risk Management
Shift portfolio allocation based on liquidity environment
Reduce leverage during red candle trends
Increase exposure during green candle trends
Use as confirmation for other technical signals
5. Multi-Timeframe Context
Daily charts: See how daily price action relates to weekly Fed data
Weekly charts: Perfect alignment with data release frequency
Monthly charts: Visualize long-term monetary cycles spanning years
⚙️ SETTINGS
Zero configuration needed. Simply add the indicator to any chart and it works immediately.
The indicator automatically:
Overlays on your main chart
Uses the left price scale (won't interfere with asset prices)
Updates with the latest Fed data
Displays values in trillions for clean readability
🎨 VISUAL DESIGN PHILOSOPHY
The indicator uses semi-transparent candle bodies with vibrant borders to maintain visibility without obscuring your price action. The color scheme follows universal chart conventions where green represents growth/expansion and red represents decline/contraction.
It's designed to blend seamlessly into any chart theme while providing immediate visual clarity about the Fed's monetary stance.
📚 WHAT YOU NEED TO KNOW
Data Availability
Historical data available from December 2002 (over 20 years of Fed policy)
Updates every Wednesday (Federal Reserve's reporting schedule)
Typically published with a 1-week lag
How the Data Appears
On weekdays: Shows the most recent Wednesday's data
On weekends: Shows Friday's data (which is the prior Wednesday's figure)
Updates automatically when new data is released
Scale Considerations
The Fed's balance sheet is measured in trillions, while most assets are priced much lower. The indicator uses the left price scale by default to avoid conflicts with your main asset's price scale. You can easily move it to a separate pane if you prefer.
🧠 INTERPRETATION GUIDE
Historical QE Phases (Green Candles)
2008-2014: Financial Crisis Response
The Fed's balance sheet expanded from under $1T to ~$4.5T to stabilize markets after the mortgage crisis.
2020: COVID-19 Response
Rapid expansion to ~$7T as the Fed stepped in during pandemic lockdowns.
2020-2022: Extended Support
Balance sheet reached historic peak of ~$9T.
Historical QT Phases (Red Candles)
2017-2019: First Modern QT Attempt
The Fed tried to normalize its balance sheet, reducing it from ~$4.5T to ~$3.8T before pivoting.
2022-Present: Inflation-Fighting QT
The Fed began shrinking its balance sheet to combat inflation, letting bonds mature without replacement.
Key Insights
Size matters, but rate of change matters MORE.
A $9T balance sheet growing slowly has different implications than a $5T balance sheet growing rapidly.
Watch for acceleration.
Increasingly large candles (up or down) signal a policy shift that markets will notice.
Plateaus mean "wait and see."
Tiny candles indicate the Fed is holding steady and watching economic data.
Reversals are major events.
When candles switch from green to red (or vice versa), the Fed has changed course—these are critical market turning points.
🎓 EDUCATIONAL VALUE
This indicator helps you understand:
The mechanics of monetary policy through visual learning
The lag between Fed actions and market reactions by observing temporal correlation
The scale of modern central banking (trillions put into perspective)
The relationship between liquidity and asset prices (cause and effect in action)
Many traders talk about "don't fight the Fed" but never actually track what the Fed is doing. Now you can see it as clearly as you see price action.
🔗 RELATED CONCEPTS
For comprehensive macro analysis, consider also tracking:
Fed Funds Rate (short-term interest rates)
M2 Money Supply (broader measure of money in circulation)
Treasury Yield Curves (bond market expectations)
Dollar Index (DXY) (currency strength)
VIX (market fear/volatility)
The Fed's balance sheet is just one piece of the puzzle, but it's arguably the most important one for understanding liquidity conditions.
⚠️ DISCLAIMER
This indicator displays publicly available economic data from the Federal Reserve. It is for informational and educational purposes only and does not constitute financial advice.
Important considerations:
Past monetary policy does not guarantee future market outcomes
Correlation does not equal causation
Asset prices are influenced by many factors beyond Fed liquidity
Always use proper risk management
Consult with qualified financial professionals before making investment decisions
Trading involves substantial risk of loss and is not suitable for everyone.
📜 VERSION HISTORY
Version 1.0 - Initial Release
Fed balance sheet visualized as candlesticks
Real-time FRED data integration
Automatic display in trillions
Dynamic color coding (green/red)
Current value label with exact figure
💡 WHY CANDLES?
You might wonder: "Why show the Fed's balance sheet as candles instead of a line?"
Because candles tell stories that lines can't.
A line shows you where we are
Candles show you how we got here, how fast we're moving, and what momentum looks like
Candles make the Fed's actions feel immediate and tangible
Candles connect macro data to the chart language you already speak
When you see three big green candles in a row on the Fed balance sheet while your crypto or stock portfolio is rallying, you feel the connection. When you see the candles turn red and shrink, you understand the headwinds forming.
It transforms dry economic data into actionable market intelligence.
📞 SUPPORT & FEEDBACK
If you find this indicator valuable:
⭐ Like and favorite to help others discover it
📝 Comment with your use cases and insights
🔔 Follow for updates and new macro indicators
Your feedback drives improvements and helps build better tools for the trading community.
🚀 THE BOTTOM LINE
The Fed's balance sheet is the tide that lifts or lowers all boats.
Whether you're trading stocks, crypto, forex, or commodities—whether you're a day trader or long-term investor—understanding the Fed's liquidity operations gives you an edge.
This indicator makes that understanding visual, immediate, and actionable.
Stop guessing about macro conditions. Start seeing them.
"Don't fight the Fed" - Wall Street Wisdom
Now you can see exactly what they're doing—in the same language you use to read price action.
May your trades ride the tide of liquidity. 🌊📈 指標

Initial Balance Breakout Signals [LuxAlgo]The Initial Balance Breakout Signals help traders identify breakouts of the Initial Balance (IB) range.
The indicator includes automatic detection of IB or can use custom sessions, highlights top and bottom IB extensions, custom Fibonacci levels, and goes further with an IB forecast with two different modes.
🔶 USAGE
The initial balance is the price range made within the first hour of the trading session. It is an intraday concept based on the idea that high volume and volatility enter the market through institutional trading at the start of the session, setting the tone for the rest of the day.
The initial balance is useful for gauging market sentiment, or, in other words, the relationship between buyers and sellers.
Bullish sentiment: Price trades above the IB range.
Mixed sentiment: Price trades within the IB range.
Bearish sentiment: Price trades below the IB range.
The initial balance high and low are important levels that many traders use to gauge sentiment. There are two main ideas behind trading around the IB range.
IB Extreme Breakout: When the price breaks and holds the IB high or low, there is a high probability that the price will continue in that direction.
IB Extreme Rejection: When the price tries to break those levels but fails, there is a high probability that it will reach the opposite IB extreme.
This indicator is a complete Initial Balance toolset with custom sessions, breakout signals, IB extensions, Fibonacci retracements, and an IB forecast. All of these features will be explained in the following sections.
🔹 Custom Sessions and Signals
By default, sessions for Initial Balance and breakout signals are in Auto mode. This means that Initial Balance takes the first hour of the trading session and shows breakout signals for the rest of the session.
With this option, traders can use the tool for open range trading, making it highly versatile. The concept behind open range (OR) is the same as that of initial balance (IB), but in OR, the range is determined by the first minute, three or five minutes, or up to the first 30 minutes of the trading session.
As shown in the image above, the top chart uses the Auto feature for the IB and Breakouts sessions. The bottom chart has the Auto feature disabled to use custom sessions for both parameters. In this case, the first three minutes of the trading session are used, turning the tool into an Open Range trading indicator.
This chart shows another example of using custom sessions to display overnight NASDAQ futures sessions.
The left chart shows a custom session from the Tokyo open to the London open, and the right chart shows a custom session from the London open to the New York open.
The chart shows both the Asian and European sessions, their top and bottom extremes, and the breakout signals from those extremes.
🔹 Initial Balance Extensions
Traders can easily extend both extremes of the Initial Balance to display their preferred targets for breakouts. Enable or disable any of them and set the IB percentage to use for the extension.
As the chart shows, the percentage selected on the settings panel directly affects the displayed levels.
Setting 25 means the tool will use a quarter of the detected initial balance range for extensions beyond the IB extremes. Setting 100 means the full IB range will be used.
Traders can use these extensions as targets for breakout signals.
🔹 Fibonacci Levels
Traders can display default or custom Fibonacci levels on the IB range to trade retracements and assess the strength of market movements. Each level can be enabled or disabled and customized by level, color, and line style.
As we can see on the chart, after the IB was completed, prices were unable to fall below the 0.236 Fibonacci level. This indicates significant bullish pressure, so it is expected that prices will rise.
Traders can use these levels as guidelines to assess the strength of the side trying to penetrate the IB. In this case, the sellers were unable to move the market beyond the first level.
🔹 Initial Balance Forecast
The tool features two different forecasting methods for the current IB. By default, it takes the average of the last ten values and applies a multiplier of one.
IB Against Previous Open: averages the difference between IB extremes and the open of the previous session.
Filter by current day of the week: averages the difference between IB extremes and the open of the current session for the same day of the week.
This feature allows traders to see the difference between the current IB and the average of the last IBs. It makes it very easy to interpret: if the current IB is higher than the average, buyers are in control; if it is lower than the average, sellers are in control.
For example, on the left side of the chart, we can see that the last day was very bullish because the IB was completely above the forecasted value. This is the IB mean of the last ten trading days.
On the right, we can see that on Monday, September 15, the IB traded slightly higher but within the forecasted value of the IB mean of the last ten Mondays. In this case, it is within expectations.
🔶 SETTINGS
Display Last X IBs: Select how many IBs to display.
Initial Balance: Choose a custom session or enable the Auto feature.
Breakouts: Enable or disable breakouts. Choose custom session or enable the Auto feature.
🔹 Extensions
Top Extension: Enable or disable the top extension and choose the percentage of IB to use.
Bottom extension: Enable or disable the bottom extension and choose the percentage of IB to use.
🔹 Fibonacci Levels
Display Fibonacci: Enable or disable Fibonacci levels.
Reverse: Reverse Fibonacci levels.
Levels, Colors & Style
Display Labels: Enable or disable labels and choose text size.
🔹 Forecast
Display Forecast: Select the forecast method.
- IB Against Previous Open: Calculates the average difference between the IB high and low and the previous day's IB open price.
- Filter by Current Day of Week: Calculates the average difference between the IB high and low and the IB open price for the same day of the week.
Forecast Memory: The number of data points used to calculate the average.
Forecast Multiplier: This multiplier will be applied to the average. Bigger numbers will result in wider predicted ranges.
Forecast Colors: Choose from a variety of colors.
Forecast Style: Choose a line style.
🔹 Style
Initial Balance Colors
Extension Transparency: Choose the extension's transparency. 0 is solid, and 100 is fully transparent.
指標

RTH Levels: VWAP + PDH/PDL + ONH/ONL + IBAlgo Index — Levels Pro (ONH/ONL • PDH/PDL • VWAP±Bands • IB • Gaps)
Purpose. A session-aware, non-repainting levels tool for intraday decision-making. Designed for futures and indices, with clean visuals, alerts, and a one-click Minimal Mode for screenshot-ready charts.
What it plots
• PDH/PDL (RTH-only) – Prior Regular Trading Hours high/low, computed intraday and frozen at the RTH close (no 24h mix-ups, no repainting).
• ONH/ONL – Prior Overnight high/low, held throughout RTH.
• RTH VWAP with ±σ bands – Volume-weighted variance, reset each RTH.
• Initial Balance (IB) – First N minutes of RTH, plus 1.5× / 2.0× extensions after IB completes.
• Today’s RTH Open & Prior RTH Close – With gap detection and “gap filled” alert.
• Killzone shading – NY Open (09:30–10:30 ET) and Lunch (11:15–13:30 ET).
• Values panel (top-right) – Each level with live distance in points & ticks.
• Right-edge level tags – With anti-overlap (stagger + vertical jitter).
• Price-scale tags – Native trackprice markers that always “stick” to the axis.
⸻
New in v6.4
• Minimal Mode: one click for a clean look (thinner lines, VWAP bands/IB extensions hidden, on-chart right-edge labels off; price-scale tags remain).
• Theme presets: Dark Hi-Contrast / Light Minimal / Futures Classic / Muted Dark.
• Anti-overlap controls: horizontal staggering, vertical jitter, and baseline offset to keep tags readable even when levels cluster.
⸻
Quick start (2 minutes)
1. Add to chart → keep defaults.
2. Sessions (ET):
• RTH Session default: 09:30–16:00 (US equities cash hours).
• Overnight Session default: 18:00–09:29.
Adjust for your market if you use different “day” hours (e.g., many use 08:20–13:30 ET for COMEX Gold).
3. Theme & Minimal Mode: pick a Theme Preset; enable Minimal Mode for screenshots.
4. Visibility: toggle PD/ON/VWAP/IB/References/Panel to taste.
5. Right-edge labels: turn Show Right-Edge Labels on. If they crowd, tune:
• Anti-overlap: min separation (ticks)
• Horizontal offset per tag (bars)
• Vertical jitter per step (ticks)
• Right-edge baseline offset (bars)
6. Alerts: open Add alert → Condition: and pick the events you want.
⸻
How levels are computed (no repainting)
• PDH/PDL: Intraday H/L are accumulated only while in RTH and saved at RTH close for “yesterday’s” values.
• ONH/ONL: Accumulated across the defined Overnight window and then held during RTH.
• RTH VWAP & ±σ: Volume-weighted mean and standard deviation, reset at the RTH open.
• IB: First N minutes of RTH (default 60). Extensions (1.5×/2.0×) appear after IB completes.
• Gaps: Today’s RTH open vs prior RTH close; “Gap Filled” triggers when price trades back to prior close.
⸻
Practical playbooks (how to trade around the levels)
1) PDH/PDL interactions
• Rejection: Price taps PDH/PDL then closes back inside → mean-reversion toward VWAP/IB.
• Acceptance: Close/hold beyond PDH/PDL with momentum → continuation to next HTF/IB target.
• Alert: PD Touch/Break.
2) ONH/ONL “taken”
• Often one ON extreme is taken during RTH. ONH Taken / ONL Taken → check if it’s a clean break or sweep & reclaim.
• Sweep + reclaim near VWAP can fuel rotations through the ON range.
3) VWAP ±σ framework
• Balanced: First tag of ±1σ often reverts toward VWAP.
• Trend: Persistent trade beyond ±1σ + IB break → target ±2σ/±3σ.
• Alerts: VWAP Cross and VWAP Reject (cross then immediate fail back).
4) IB breaks
• After IB completes, a clean IB break commonly targets 1.5× and sometimes 2.0×.
• Quick return inside IB = possible fade back to the opposite IB edge/VWAP.
• Alerts: IB Break Up / Down.
5) Gaps
• Gap-and-go: Opening drive away from prior close + VWAP support → trend until IB completion.
• Gap-fill: Weak open and VWAP overhead/underfoot → trade toward prior close; manage on Gap Filled alert.
Pro tip: Stack confluences (e.g., ONL sweep + VWAP reclaim + IB hold) and respect your execution rules (e.g., require a 5-minute close in direction, or your order-flow confirmation).
⸻
Inputs you’ll actually touch
• Sessions (ET): Session Timezone, RTH Session, Overnight Session.
• Visibility: toggles for PD/ON/VWAP/IB/Ref/Panel.
• VWAP bands: set σ multipliers (±1/±2/±3).
• IB: duration (minutes) and extension multipliers (1.5× / 2.0×).
• Style & Theme: Theme Preset, Main Line Width, Trackprice, Minimal Mode, and anti-overlap controls.
⸻
Alerts included
• PD Touch/Break — High ≥ PDH or Low ≤ PDL
• ONH Taken / ONL Taken — First in-RTH take of ONH/ONL
• VWAP Cross — Close crosses VWAP
• VWAP Reject — Cross then immediate fail back
• IB Break Up / Down — Break of IB High/Low after IB completes
• Gap Filled — Price trades back to prior RTH close
Setup: Add alert → Condition: Algo Index — Levels Pro → choose event → message → Notify on app/email.
⸻
Panel guide
The top-right panel shows each level plus live distance from last price:
LevelValue (Δpoints | Δticks)
Coloring: green if level is below current price, red if above.
⸻
Styling & screenshot tips
• Use Theme Preset that matches your chart.
• For dark charts, “Dark Hi-Contrast” with Main Line Width = 3 works well.
• Enable Trackprice for crisp axis tags that always stick to the right edge.
• Turn on Minimal Mode for cleaner screenshots (no VWAP bands or IB extensions, on-chart tags off; price-scale tags remain).
• If tags crowd, increase min separation (ticks) to 30–60 and horizontal offset to 3–5; add vertical jitter (4–12 ticks) and/or push tags farther right with baseline offset (bars).
⸻
Behavior & limitations
• Levels are computed incrementally; tables refresh on the last bar for efficiency.
• Right-edge labels are placed at bar_index + offset and do not track extra right-margin scrolling (TradingView limitation). The price-scale tags (from trackprice) do track the axis.
• “RTH” is what you define in inputs. If your market uses different day hours, change the session strings so PDH/PDL reflect your definition of “yesterday’s session.”
⸻
FAQ
Q: My PDH/PDL don’t match the daily chart.
A: By design this uses RTH-only highs/lows, not 24h daily bars. Adjust sessions if you want a different definition.
Q: Right-edge tags overlap or don’t sit at the far right.
A: Increase min separation / horizontal offset / vertical jitter and/or push tags farther with baseline offset. If you want markers that always hug the axis, rely on Trackprice.
Q: Can I change killzones?
A: Yes—edit the session strings in settings or request a version with user inputs for custom windows.
⸻
Disclaimer
Educational use only. This is not financial advice. Always apply your own risk management and confirmation rules.
⸻
Enjoy it? Please ⭐ the script and share screenshots using Minimal Mode + a Theme Preset that fits your style. 指標

OBVX Conviction Bias🧮 The OBVX Conviction Bias overlay tracks the flow of directional volume using the classic On-Balance Volume calculation, then filters it through a layered moving average system to expose crowd commitment , pressure transitions , and momentum fatigue . The tool applies two smoothed averages to the OBV line—a fast curve and a longer-term baseline scaled using Euler’s constant (2.718)—and visualizes their relationship using a color-coded crossover ribbon and pressure fills. When used correctly, it reveals whether a move is being supported by meaningful volume, or whether the crowd is starting to disengage.
🚦 The core signal compares OBV to its fast moving average. When OBV climbs above the short average, it fills green—suggesting real directional effort. When OBV sinks below, the fill turns maroon—flagging fading conviction or pullback potential. A second fill between the short and long OBV moving averages captures the broader trend of volume intention. If the short is above the long, this space fills greenish, showing constructive pressure. If it flips, the fill fades red, signaling crowd hesitation, rotation, or early exhaustion.
⚖️ All smoothing is user-selectable, defaulting to VWMA for effort-sensitive structure. The long-term average is auto-scaled using the natural exponential multiplier (2.718), offering rhythm that reflects the curve of participation. OBVX Conviction Bias isn’t trying to predict—it’s trying to show you where the crowd is leaning , and whether that lean is gaining traction or losing strength.
🧐 Ideal Use-Cases:
• Detect divergence between volume flow and price action
• Confirm breakout validity with volume alignment
• Fade breakouts where OBV fails to follow through
• Time pullback entries when OBV pressure resumes in trend direction
🍷 Recommended Pairings:
• ZVOL to measure whether volume is statistically significant or just noise (as shown)
• RVOL Effort Matrix to validate crowd effort by tier and structure zone
• SUPeR TReND 2.718 and/or MA Ribbons for directional confluence
• ATR Turbulence to track volatility-phase alignment with volume intention 指標

VWAP Balance Zones - SessionsVWAP Balance Zones Sessions Version is an alternate take on the Original VWAP Balance Zones indicator. The Sessions version allows users to select a specific session to view the VWAP Balance Zones at while still utilizing the full ETH Data.
The Session version provides a better focused display while still maintaining the core functions of the original script with mindful optimizations.
Author's Note: "VBZ Sessions was made with logistics in mind, for the users who only trade within certain times of the day. While it displays the same core concepts, it is not as "Raw" of a display as the Original. For this reason, some users may prefer the Original VWAP Balance Zones, which is why I have opted to release this alternate version instead of updating the original."
> What are VWAP Balance Zones?
"VWAP Balance Zones" is an original concept aimed at identifying the equilibrium area between market participants within the current trend by averaging the Daily Extremes and the Daily VWAP.
Refer to the illustration below for a better understanding of exactly how VWAP Balance Zones are formed:
These zones are displayed for the Daily, Weekly, and Monthly VWAPs, with the most interactive timeframe being the Daily.
> Features
1. The Session Version uses ETH data at all times, and does not solely rely on the chart's data to create the VWAPs or Zones.
This allows the user to focus on a specific trading session, while not losing out on the full VBZ Calculation, with the notable benefit of a cleaner display.
The Original VBZ starts drawing at the beginning of the chart's "Day", and would produce different results when using an RTH chart vs an ETH chart. Along with creating a bird's nest of unusable data at the beginning of the day.
2. Session Start and End lines are displayed for easier identification of the designated trading session.
3. The extreme "Close" Lines are no longer displayed to reduce noise and redundancy.
4. Additionally, the interior VWAP lines are no longer displayed. Ultimately, this was to reduce noise and focus the script on the 50% zones.
5. Weekly and Monthly Zones are now displayed due to the reduced noise!
6. As with the original, the weekly display will yield to the daily, and the monthly display will yield to the weekly.
In the screenshot below, you can observe this behavior.
Enjoy! 指標

指標

Dynamic Candle Balance Indicator (Binary)
Dynamic Candle Balance Indicator
The Dynamic Candle Balance Indicator is a powerful tool designed to identify imbalances in candle colors on a chart, which can indicate potential reversals or changes in market direction. This indicator is specifically developed for traders operating on short timeframes, such as 1-minute candles, and is particularly useful for identifying opportunities in binary options.
How to Use:
Set Parameters
Initial Position: Specify the number of initial candles to be considered for calculation.
Count: Determine the total number of candles to be analyzed, including the initial position.
Interpret Results:
Green: Indicates the number of bullish candles (where the closing price is higher than the opening price).
Red: Indicates the number of bearish candles (where the closing price is lower than the opening price).
Absent: Indicates the number of candles that were not considered due to the selected interval.
Performance Analysis:
The indicator calculates the percentage of green and red candles relative to the total number of analyzed candles, providing insights into market balance or imbalance.
Identify Trading Opportunities:
Significant imbalances between candle colors can indicate potential reversals or changes in market direction.
Traders can use this information to make informed decisions about their trading strategies, such as identifying entry or exit points.
Example:
In the last 40 candles, there were 13 green candles and 27 red candles, indicating a higher likelihood of the next candle being green.
Usage Tips:
The indicator is most effective when used on a 1-minute timeframe for binary options trading, especially during periods of high imbalance.
Adjust the parameters according to your trading strategy and the timeframe being analyzed.
Combine the Dynamic Candle Balance Indicator with other technical analysis tools to confirm trading signals.
Legal Disclaimer:
This indicator is provided for educational and informational purposes only. It represents a theory and should be used as part of a comprehensive trading strategy. Past performance is not indicative of future results. Traders should always conduct their own analysis before making trading decisions.
Try out the Dynamic Candle Balance Indicator and leverage its functionalities to identify trading opportunities on short-term charts, especially in 1-minute timeframes for binary options trading during periods of high imbalance. Remember to test the indicator on a practice account before using it on a real account. 指標

Central Banks Balance Sheets ROI% ChangeIntroducing the "Central Banks Balance Sheets ROI% Change" indicator, a tool designed to offer traders and analysts an understanding of global liquidity dynamics.
This indicator tracks the Return on Investment (ROI) percentage changes across major central banks' balance sheets, providing insights into shifts in global economic liquidity not tied to cumulative figures but through ROI calculations, capturing the pulse of overall economic dynamics.
Key Enhancements:
ROI Period Customization: Users can now adjust the ROI calculation period, offering flexibility to analyze short-term fluctuations or longer-term trends in central bank activities, aligning with their strategic time horizons.
Chart Offset Feature: This new functionality allows traders to shift the chart view, aiding in the alignment of data visualization with other indicators or specific analysis needs, enhancing interpretive clarity.
Central Bank Selection: With options to include or exclude data from specific central banks among the world's top 15 economies (with the exception of Mexico and the consolidation of the EU's central bank data), traders can tailor the analysis to their regional focus or diversification strategies.
US M2 Option: Recognizing the significance of the M2 money supply as a liquidity metric, this indicator offers an alternative view focusing solely on the US M2, allowing for a concentrated analysis of the US liquidity environment.
Comprehensive Coverage: The tool covers a wide array of central banks, including the Federal Reserve, People's Bank of China, European Central Bank, and more, ensuring a broad and inclusive perspective on global liquidity.
Visualization Enhancements: A histogram plot vividly distinguishes between positive and negative ROI changes, offering an intuitive grasp of liquidity expansions or contractions at a glance.
This indicator is a strategic tool designed for traders who seek to understand the undercurrents of market liquidity and its implications on global markets.
Whether you're assessing the impact of central bank policies, gauging economic health, or identifying investment opportunities, the "Central Banks Balance Sheets ROI% Change" indicator offers a critical lens through which to view the complex interplay of global liquidity factors.
指標

指標

VWAP Balance ZonesVWAP Balance Zones (VBZ) Is based on 3 concepts.
Many Traders use VWAP to help determine Price Trends.
Trends are typically identified by new Highs or new Lows.
Balanced is found when Supply and Demand are mostly Equal.
VBZ tracks the daily, weekly, and monthly highs and lows; Then plots the average (50%) between the VWAP and the respective extremes.
50% VWAP Zones can be considered significant since they attempt to identify the equilibrium between market participants within the current trend, serving as key reference points to consider for decision making. >While in an uptrend, Buyers may see price falling to the Hi 50% as an attractive value entry for the continuation upwards.
>While ALSO in an uptrend, Sellers may see price falling to the Hi 50% as a change in sentiment with more downwards movement on the way.
Because of these conflicting mindsets, these zones are thought to display areas of balance between buyers and sellers, which can serve as potential decision points throughout the day.
VBZ Draws Zones from the Daily (High/Low/Close) VWAPs and the Day's (High/Low/Close) extremes as seen below.
Technically speaking, an average between vwap and extreme is a single point, to make these into zones I am using multiple sources for vwap and tracking different points of the bar throughout the day (ex. Close VWAP & Daily Highest Close)
Weekly and Monthly are only displaying the Average Price between the VWAP and the (Weekly or Monthly) High/Low.
These hold up as important levels for speculation; however, since most action will be discovered at the daily zones, I am not displaying the zones for the Weekly and Monthly to keep noise to a minimum.
Unique Behaviors:
- Weekly values are hidden on the first day of the week since they are similar to the daily values on the first day of the week.
- Monthly values are hidden in the first week of the month for the same reason.
指標
