Welcome to The Gear
The official documentation for The Gear institutional trading indicator suite. Built
on Pine Script v6 for TradingView.
The Gear is a collection of precision-engineered statistical indicators designed to automate institutional
trading concepts and range distributions directly on your charts. We eliminate the daily friction of manual drawings, level
calculations, and session tracking — so you can focus on execution.
Overview
Our indicator suite features three core statistical components designed to provide structural order flow context:
- Statistical VWAP Levels (Elite+) — Projects expected deviation expansion targets above and below the prior session's VWAP, derived from historical price distribution thresholds.
- Statistical OHLC Ledge (Elite+) — Automatically calculates and projects five session-open levels derived from historical candle deviation ranges, highlighting manipulation and distribution phases.
- Statistical Bar-Range Matrix (Elite+) — Measures and maps historical range-delivery components from open (midrange, close, highs/lows) to project seven precise intraday structural levels.
Key Features
- Zero-repaint architecture with
barmerge.lookahead_off
- Session-anchored recalculation for intraday precision
- Explicit type safety across all modules
- Optimized for minimal memory footprint on high-volume charts
Note
No paid TradingView subscription is required. The indicators run perfectly on the standard free version of TradingView.
Technology Stack
| Component |
Technology |
Version |
| Runtime |
Pine Script |
v6 |
| Platform |
TradingView |
Latest |
| Data Feed |
Multi-Security |
barmerge v2 |
| Alert Engine |
TradingView Built-in (Web/Desktop) |
Native |
Installation
Add The Gear indicators to your TradingView chart in under 60 seconds.
Requirements
- TradingView account (Free account works perfectly)
- Pine Script v6 runtime environment
- Active subscription to The Gear via Whop
Step-by-Step
- Open TradingView and navigate to the Pine Editor panel.
- Click Indicators → Invite-only scripts.
- Search for
The Gear in the indicator search bar.
- Click the indicator you want to add — it will appear on your chart immediately.
- Open the Settings gear icon to configure input parameters.
Important
Make sure your chart timeframe matches the indicator's intended use. Session-anchored indicators
like VWAP reset at the daily session boundary.
Access Management
Access is managed automatically through Whop. After subscribing to The Gear on Whop, make sure to link your TradingView account in your Whop dashboard. Your TradingView username is automatically whitelisted within 5 minutes. If the indicator does not appear under Invite-only scripts, try refreshing your TradingView page or clearing your browser cache.
Try a Demo
Get a taste of The Gear indicator suite with our free, limited Lite versions on TradingView.
📊
Statistical VWAP (Lite)
Test out institutional-grade VWAP anchoring with standard deviation bands on any intraday chart. This light version gives you a feel of our VWAP expansion levels without the advanced probabilistic lookback buffers or multi-timeframe dashboard tracking.
Try VWAP Demo
📐
Statistical OHLC Ledge (Lite)
Analyze session range boundaries with ATR-normalized open price projections. This version simulates open-drive range limits, excluding Power of Three manipulation tracking and session mitigation dashboards.
Try OHLC Demo
Elite+
Unlock the Full Suite
Upgrade to Elite+ to unlock the complete calculation engine. Features include rolling historical probability distributions, z-score volatility filters, multi-timeframe anchors, and real-time mitigation dashboard matrices built to eliminate manual chart work.
Get Elite+ Access
Statistical VWAP Levels (Elite+)
Indicator ID: StatVWAP (Elite+) — Pine Script v6
Overlay Indicator
#1 Core Identity
Purpose:
To project statistically-derived price expansion levels above and below
a prior session's VWAP, giving traders objective, data-backed targets and decision zones rather than
arbitrary fixed multiples. The indicator answers the question: "Based on how far price has
historically moved from this anchor, where is it likely to expand to — or reject from — this
session?"
Target Market:
Optimized for any liquid instrument with meaningful volume data —
particularly index futures (NQ, ES, MNQ, MES), Forex majors, and crypto perpetuals. Most effective
on intraday timeframes (1m–15m chart) with a Daily HTF anchor during regular trading hours (RTH),
though the multi-HTF architecture makes it adaptable to swing trading setups as well.
#2 Concept & Calculation (The "Teaser")
Underlying Logic:
The indicator is built on the premise that VWAP deviation is not random — it is
statistically bounded. Every session, price stretches a measurable distance from its VWAP anchor. By
collecting those historical stretch distances over a user-defined lookback window, the script builds
a live probability distribution of expected ranges.
Rather than projecting today's levels using only today's volatility (as a standard VWAP band does),
this indicator learns from the past N sessions and places its bands at levels where price has
actually reached — filtered through mean, median, Donchian median, or standard deviation
logic. The result is a set of dynamically-calibrated expansion targets that adapt as market
conditions shift.
The baseline anchor can be either the previous session's closing VWAP (reflecting
where smart money last valued price) or the current session's opening price
(reflecting gap-and-go or mean-reversion setups).
The Formula (High-Level):
- For each completed HTF session, a raw deviation value is harvested by measuring the distance
between the session's VWAP and a multiple of its internal price variance — essentially how
"stretched" price became relative to its fair value anchor.
- These raw deviation values are stored in a rolling history buffer (your Lookback Days setting).
- On each new session open, the buffer is statistically processed — averaged, sorted for median,
or converted into a standard deviation — producing a single representative expansion distance
per group (G1, G2, G3).
- That distance is projected symmetrically upward and downward from the anchor price, creating the
six deviation bands visible on the chart.
Three groups of bands are generated, with each group representing a progressively wider expected
range (configurable via the deviation multipliers). Think of them as the 1-sigma, 2-sigma, and
3-sigma equivalent zones, but derived from observed historical behavior rather than a theoretical
bell curve.
#3 Visual Anatomy
Chart Placement: Overlay on the main price chart. All elements are drawn using
xloc.bar_time, so they align correctly regardless of session gaps or market closures.
Signal & Visual Meanings:
| Visual Element |
Default Color |
Meaning |
| VWAP Line (Base) |
White / Black |
The prior session's closing VWAP — the fair value anchor. This is the "origin" from
which all bands expand. |
| Group 1 Bands (+G1 / -G1) |
Orange |
First statistical expansion zone. Price frequently reaches and reacts here. Acts as a
first target or support/resistance level. |
| Group 2 Bands (+G2 / -G2) |
Aqua |
Second expansion zone. Represents a statistically significant stretch — often a
high-value area for mean-reversion trades or trend continuation entries. |
| Group 3 Bands (+G3 / -G3) |
Red |
Outer expansion boundary. Reached less frequently; signals potential overextension,
climactic moves, or stop-hunt zones. |
| Zone Boxes (Zone Mode) |
Gradient fill |
When Mean + Normal Median (Zone) mode is active, a shaded box fills the gap
between the Mean and Median lines for each group, defining a high-probability reaction
zone rather than a single line. |
| Labels |
Matches line color |
Annotate each line with the level name (e.g., 1D +G1), the price, or both —
depending on your Label Display Mode setting. |
Table (Dashboard):
A compact overlay table showing the current session's projected levels for all active HTF slots. Two
layout modes:
- Default Mode: Two columns per HTF — level name and current price. Clean,
minimal.
- Optimum Mode: Six columns per HTF — level name, price, and four quadrant
columns (Q1–Q4). The quadrant cells shade gray when price has mitigated
(touched/crossed) that level during that quarter of the session, building a real-time
interaction map. This tells you at a glance which levels have already been tested and which
remain unmitigated.
Level Row Order (top to bottom in table):
+G3 → Outer upper band
+G2 → Mid upper band
+G1 → Inner upper band
VWAP → Baseline anchor
-G1 → Inner lower band
-G2 → Mid lower band
-G3 → Outer lower band
── Higher Timeframes ──
| Setting |
Options |
Description |
| HTF 1 / HTF 2 / HTF 3 |
Enable toggle + timeframe selector |
Up to three independent HTF anchors can run simultaneously. Default: HTF 1 = Daily
(D), HTF 2 = 4H (240), HTF 3 = 1H (60). Each
generates its own set of seven levels. |
| Display Mode (per HTF) |
Chart Only / Table Only / Chart + Table |
Controls where each HTF's levels are rendered. Use Table Only for higher
timeframes you want to reference without cluttering the chart. |
── Deviation ──
| Setting |
Default |
Description |
| Group 1 Deviation |
1.0 |
Multiplier for the inner bands. Lower values = tighter bands, suited to scalping or
low-volatility instruments. |
| Group 2 Deviation |
2.03 |
Multiplier for the mid bands. The slight non-integer default is calibrated to
statistical distance relationships — adjust with intent. |
| Group 3 Deviation |
3.03 |
Multiplier for the outer bands. Increasing this stretches the outer boundary further;
useful in trending or high-volatility markets. |
── Calculation ──
| Setting |
Options |
Description |
| Band Anchor Baseline |
Previous VWAP Line / Daily Open |
Defines the price origin from which bands project. Previous VWAP Line is
ideal for VWAP-based fair value trading; Daily Open shifts focus to gap
analysis and opening range logic. |
| Lookback Days |
Integer, min 1 |
How many prior sessions feed the historical distribution. More days = smoother, more
stable bands that adapt slowly. Fewer days = bands react faster to recent volatility
shifts. Recommended: 10–30 for most setups. |
| Calculation Method |
Mean / Normal Median / Donchian Median /
Mean + Normal Median (Zone) / Standard Deviation |
The statistical filter applied to the historical deviation buffer. See breakdown below.
|
| Show levels for last X sessions |
Integer, 1–50 |
How many past session drawings are kept visible on the chart. Increasing this provides
historical context; reduce it to minimize visual noise. |
Calculation Method Breakdown:
| Method |
Behavior |
Best Used When |
| Mean |
Arithmetic average of historical deviations. Smooth, balanced. |
Normal market conditions, sufficient lookback history. |
| Normal Median |
Middle value of sorted history. More resistant to outlier sessions. |
Volatile instruments or periods where one extreme session could skew the mean. |
| Donchian Median |
(Max + Min) / 2 of the buffer — the midpoint of the full observed range.
|
When you want to account for both extremes rather than central tendency. |
| Mean + Normal Median (Zone) |
Draws both the Mean and Median lines and fills the gap between them as a zone
box. |
High-conviction zone trading — the overlap represents where two statistical methods
agree. |
| Standard Deviation |
Projects bands at mean ± 1 SD of the deviation history. |
Statistically-minded traders who want a formal dispersion-based band. |
── Styling ──
| Setting |
Options |
Description |
| pVWAP / Group 1–3 |
Color, width (1–4), style |
Independent color, line weight, and dash style for each level group. Width 1 for
secondary references, 2+ for primary levels. |
| Label Display Mode |
None / Level Only / Price Only /
Level + Price |
Controls the annotation on each line. Level + Price is most informative;
None for a clean chart with table reference only. |
| Label Size |
Tiny / Small / Normal / Large /
Huge |
Scales the on-chart text annotations. |
| Line Position Mode |
Full Session / Current Bar / Offset |
Full Session: lines extend to the projected end of the HTF session.
Current Bar: lines terminate at the current bar (minimal look-ahead).
Offset: lines project a user-defined number of bars beyond the current bar
— useful for seeing levels ahead of price. |
| Bar Padding |
Integer, min 0 |
Only active when Line Position Mode = Offset. Defines how many bars beyond
the current bar the lines extend. |
── Table [Mode, Position, Size] ──
| Setting |
Options |
Description |
| Cluster Mode |
None / Default / Optimum Mode |
None: no table. Default: simple price reference table.
Optimum Mode: full quadrant mitigation dashboard. |
| Table Position |
7 position options |
Where the dashboard anchors on screen. Default: Top Right. |
| Table Size |
Tiny → Huge |
Font scale for table text. Match to your monitor resolution and chart layout. |
#5 Usage Notes
- Session Boundary Behavior: Levels are fixed at the start of each new HTF
session and do not repaint. The only live update is the line's right-side endpoint (x2), which
advances bar-by-bar until the session closes.
- Quadrant Mitigations Reset: The Q1–Q4 hit flags in Optimum Mode reset at the
start of each new HTF session, so the table always reflects the current session's
interaction history.
- Multiple HTFs Together: Running Daily + 4H simultaneously gives a confluence
map — when a Daily G1 level sits close to a 4H G2, the overlap becomes a high-probability
reaction zone.
- Lookback Calibration: On a new instrument or after a volatility regime change,
allow at least 20+ sessions of history before relying heavily on the bands. Early in history,
bands may be unusually wide or narrow.
Statistical OHLC Ledge (Elite+)
Indicator ID: StatOHLC (Elite+) — Pine Script v6 Overlay Indicator
#1 Core Identity
Purpose:
Statistical OHLC Ledge (Elite+) calculates and projects five statistically-derived price levels ahead of each Higher Timeframe (HTF) session. It answers the question: "Where is price statistically likely to reach during this session, based on how far it has historically traveled above and below its opening price?"
The indicator serves three core jobs:
- Level identification — Define expected intraday high/low targets before price gets there
- Bias framing — Determine whether price is in a manipulation phase or distribution phase relative to the HTF open
- Mitigation tracking — Log which price levels have been touched within each quarter (Q1–Q4) of the active session
Target Market:
Designed for intraday traders operating on any liquid instrument — equity index futures (NQ, ES, MNQ), Forex majors, or crypto pairs. The indicator only activates when the chart is on an intraday timeframe; it will not plot on daily or higher charts.
#2 Concept & Calculation (The "Teaser")
Underlying Logic:
The indicator is grounded in the Power of Three (PO3) market structure concept: every HTF candle has three behavioural phases — accumulation near the open, a manipulation sweep in one direction, and a distribution move in the opposite direction.
Rather than using fixed pip/point values to anticipate where those sweeps will reach, this tool measures how far price has historically traveled from the open into each phase over a user-defined lookback window, then applies that statistical measure to the current session's open to derive forward-looking price levels.
The Formula (High-Level):
- For each completed HTF candle in the lookback window, the indicator captures:
- The manipulation range — the distance the candle travels from its open in the losing direction (below open on a bull candle, above open on a bear candle)
- The distribution range — the distance the candle travels from its open in the winning direction (above open on a bull candle, below open on a bear candle)
- Those historical ranges are then aggregated using one of five statistical methods (selected by the user), and the resulting value is added/subtracted from the current session's open price to produce the five projected levels.
- The calculation can operate in either raw price points or tick-normalised units to make the lookback portable across instruments with different price increments.
#3 Visual Anatomy
Chart Placement: Main chart overlay. Lines, boxes, and labels are drawn directly on the price pane. The table floats in a configurable corner of the chart window.
Signal & Visual Meanings:
| Level Tag |
Full Name |
Default Style |
Meaning |
+DIS |
Upper Distribution |
Red solid |
Statistically expected high target above open |
+MAN |
Upper Manipulation |
Silver dotted |
Expected sweep high in the manipulation phase |
OPEN |
HTF Open |
Orange solid |
Anchor price for the current session |
−MAN |
Lower Manipulation |
Silver dotted |
Expected sweep low in the manipulation phase |
−DIS |
Lower Distribution |
Red solid |
Statistically expected low target below open |
Zone Mode:
When the Mean + Normal Median (Zone) calculation method is active, the indicator draws shaded boxes instead of single lines for the manipulation and distribution pairs. Each box spans the gap between the Mean and the Median projection, creating a probability zone rather than a single price target. The Mean and Median can use independent lookback lengths in this mode.
Table (Dashboard):
A companion table (optional, per HTF) is displayed in the corner of the chart. It divides the active session into four equal time quarters (Q1–Q4) and shades a cell whenever price has crossed a given level during that quarter.
┌──────────────────────────────────────┐
│ 1D (20) │ Q1 │ Q2 │ Q3 │ Q4 │
├────────────┼───────┼──────┼──────┼──────┤
│ +DIS │price│ ░░ │ │ │ │
│ +MAN │price│ │ │ │ │
│ OPEN │price│ ░░ │ ░░ │ │ │
│ −MAN │price│ │ │ │ │
│ −DIS │price│ │ │ │ │
└──────────────────────────────────────┘
Shaded cells (░░) indicate a mitigation (price touched that level in that quarter).
── Higher Timeframes ──
| Setting |
Description |
| HTF 1 / HTF 2 / HTF 3 (toggle) |
Enable or disable each of the three independent HTF slots. HTF 1 defaults to Daily, HTF 2 to H4, HTF 3 to H1. |
| Timeframe selector (per HTF) |
The HTF to analyse. Any TradingView-supported timeframe string is valid. |
| Display Mode (per HTF) |
Controls what is rendered for that HTF: Chart Only (lines on chart, no table), Table Only (table in corner, no lines), or Chart + Table (both). |
── Calculation ──
| Setting |
Description |
| Lookback Period |
Number of completed HTF candles used to build the statistical sample. Options: 20 bars, 40 bars, 60 bars, or Custom. A longer lookback smooths out outliers; a shorter lookback makes levels more reactive to recent behaviour. |
| Custom Lookback |
Active only when Lookback Period is set to Custom. Enter any integer value. |
| Calculation Method |
The statistical formula applied to the historical range samples. See breakdown below. |
| Calculation Unit |
Points uses raw price differences. Ticks divides by the instrument's minimum price increment (syminfo.mintick), making the lookback portable across assets with different tick sizes. |
| Show levels for last X sessions |
How many completed HTF sessions to keep visible on the chart simultaneously. 1 = current session only; up to 50 historical sessions can be displayed for back-context. |
Calculation Method Options:
| Method |
Behaviour |
| Mean |
Arithmetic average of the historical range samples. Balanced and responsive. |
| Normal Median |
Middle value of the sorted sample set. More robust against extreme outlier candles. |
| Donchian Median |
Average of the minimum and maximum values in the sample (midpoint of the range). Captures the outer extremes of historical behaviour. |
| Mean + Normal Median (Zone) |
Draws both Mean and Median projections simultaneously as a shaded zone, rather than a single line. Ideal for identifying confluent areas. |
| Standard Deviation |
Projects levels at ±1 standard deviation from the historical mean, highlighting statistically unusual reach. |
── Styling ──
| Setting |
Description |
| [+] Dist. / [−] Dist. |
Toggle visibility, line color, line style (solid/dashed/dotted), and line width for the upper and lower distribution levels independently. |
| [+] Man. / [−] Man. |
Same controls for the upper and lower manipulation levels. |
| Open |
Toggle, color, style, and width for the HTF open line. |
| Line Position Mode |
Current Bar — the line's right edge tracks the live bar. Full Session — extends to the HTF session's scheduled close time. Offset — extends a fixed number of bars beyond the current bar (set via bar padding). |
| Bar Padding |
Number of bars to project beyond the current bar when Line Position Mode is Offset. |
| Label Display Mode |
What text appears at the end of each line: None, Level Only (e.g. +DIS), Price Only (e.g. 18245.25), or Level + Price (both). |
| Label Size |
Text size for all line labels: Tiny, Small, Normal, Large, or Huge. |
| Table Cluster Position |
Corner of the chart where the mitigation table is anchored. |
| Table Size |
Text size inside the mitigation table. |
── Overrides ──
| Setting |
Description |
| Enable Override HTF Lookback Period |
Master toggle. When on, each HTF uses its own lookback instead of the global one. |
| HTF 1 / 2 / 3 Lookback Period |
Individual lookback lengths per HTF slot (active only when the override toggle is on). |
| Enable Override HTF Calculation |
When on, each HTF can use a different calculation method independently of the global setting. |
| HTF 1 / 2 / 3 Calculation Method |
Individual calculation method per HTF slot. |
| Enable Override Zone Mode |
When on, the Mean and Median lookbacks in Zone mode can be split into two separate lengths (e.g. Mean uses 20 bars, Median uses 60 bars), giving the zone asymmetric historical depth. |
| Zone Mean Lookback Period |
Sample size used for the Mean component of the Zone calculation. |
| Zone Median Lookback Period |
Sample size used for the Median component of the Zone calculation. |
── Alerts ──
| Setting |
Description |
| Enable Alerts |
Global on/off for all alert firing. When off, no alerts trigger regardless of other settings. |
| Alert on All Levels & Zones |
Fires an alert whenever price crosses any of the five projected levels across all enabled HTFs. |
| Alert on +/− Manipulation Levels |
Fires only when the +MAN or −MAN level is crossed. |
| Alert on +/− Distribution Levels |
Fires only when the +DIS or −DIS level is crossed. |
| Alert on Open Level |
Fires when price crosses back through the HTF open line. |
Note
Alerts fire at most once per bar per triggered condition. The alert message includes the HTF name, the level tag, and the exact price at the time of the cross.
#5 Usage Notes
- The indicator is intraday-only. Add it to a chart set to any sub-daily timeframe (e.g. 1m, 5m, 15m). It will produce no output on daily or weekly charts.
- For best results on index futures, set HTF 1 to Daily and use the Mean method with a 20-bar lookback as a starting baseline.
- When using Zone mode with the override enabled, a shorter Mean lookback (e.g. 20) combined with a longer Median lookback (e.g. 60) provides a zone where the inner edge reflects recent behaviour and the outer edge reflects longer-term statistical norms.
- The Donchian Median method is useful for instruments with fat tails (e.g. crypto) where the standard median underestimates true range potential.
- Enabling Table Only mode for secondary HTFs (HTF 2, HTF 3) keeps the chart clean while still surfacing their level prices and mitigation status in the dashboard table.
Statistical Bar-Range Matrix (Elite+)
Indicator ID: StatRange (Elite+) — Pine Script v6 Overlay Indicator
#1 Core Identity
Purpose:
This indicator projects statistically-derived price levels for the current higher-timeframe (HTF) session directly onto the intraday chart. Its primary job is to answer the question: "Given how this instrument has historically behaved from its open, where is price statistically likely to reach — high, low, close, and midrange?"
It serves three complementary roles:
- Bias framing — defines an expected range envelope (bull vs. bear side) before price gets there
- Target mapping — gives actionable price levels for entries, exits, and stop placement
- Mitigation tracking — monitors in real-time which levels have been touched (mitigated) and in which quarter of the session it happened
Target Market:
Optimized for intraday trading on any liquid instrument (equities, indices, futures, forex, crypto). It is most effective when applied to instruments with consistent daily open-drive behavior — such as index futures (ES, NQ, MNQ), major forex pairs, or large-cap equities — where historical open-to-high/low distributions carry forward predictive value.
Warning
The indicator only activates on intraday timeframes. It will not draw levels when viewed on a daily or higher chart.
#2 Concept & Calculation (The "Teaser")
Underlying Logic:
The core philosophy is statistical range projection from the open. Rather than using arbitrary fixed levels or percentage-based pivots, this indicator studies how far price has historically traveled from the session open to reach its high, low, close, and midpoint — and uses those distributions to project expected zones for the current session.
The model decomposes each historical bar into a set of directional distance components — from open to midrange, midrange to high, midrange to close, etc. — and accumulates these over a configurable lookback window. From that distribution it can derive the mean, median, Donchian midpoint, or standard deviation, giving the user control over how "aggressive" or "conservative" the projected levels should be.
The Formula (High-Level):
At each new HTF candle open, the indicator:
- Measures the historical distance from open to each structural level (high, statistical close — bull side, upper midrange, lower midrange, statistical close — bear side, low) across the lookback period
- Aggregates those distances using the chosen statistical method (mean, median, Donchian midpoint, or standard deviation band)
- Projects the result symmetrically above and below the current session's open price, generating 7 horizontal price levels
- Tracks which of those levels price touches during each quarter of the session, populating a mitigation matrix table
The calculation can be performed in price points or ticks, and can be independently configured per HTF.
#3 Visual Anatomy
Chart Lines:
All levels are drawn as horizontal lines extending from the HTF session open time to the current bar (or session close, depending on the Line Position Mode setting).
| Label |
Color (default) |
Meaning |
(HIGH) |
Teal |
Statistically projected session high — upper boundary of the expected range |
(C-BULL) |
Lime Green |
Expected close level if the session closes bullishly (above open) |
(MID-U) |
Gray (dotted) |
Upper midrange equilibrium — acts as a resistance pivot above open |
(OPEN) |
Orange |
Actual HTF session open price — the anchor for all projections |
(MID-L) |
Gray (dotted) |
Lower midrange equilibrium — acts as a support pivot below open |
(C-BEAR) |
Red |
Expected close level if the session closes bearishly (below open) |
(LOW) |
Maroon |
Statistically projected session low — lower boundary of the expected range |
Zone Mode (Mean + Normal Median):
When Zone calculation mode is selected, paired lines are replaced by shaded boxes spanning from the Mean projection to the Median projection of each level, creating a visual zone of confluence rather than a single line.
Labels:
Each line or zone can optionally display a label at its right edge showing the level name, price, both, or nothing — configurable per preference.
Mitigation Table:
A compact on-chart table displays a mitigation matrix for each enabled HTF. Columns represent the four temporal quarters of the session (Q1–Q4). Rows represent the 7 price levels. A cell is highlighted (gray fill) when price has touched that level during that quarter of the session, giving a quick read on which levels have been respected and which remain open.
── Higher Timeframes ──
| Setting |
Description |
| HTF 1 / HTF 2 / HTF 3 (Enable toggle) |
Activates or deactivates each HTF independently. HTF 1 is enabled by default (Daily). HTF 2 and 3 are off by default. |
| HTF 1 / 2 / 3 (Timeframe selector) |
Sets the resolution for each HTF session. Any valid TradingView timeframe is accepted (e.g., D, W, 240, 60). |
| HTF 1 / 2 / 3 (Display mode) |
Controls whether levels are shown on the chart, in the table, or both. Options: Chart Only, Table Only, Chart + Table. |
── Calculation ──
| Setting |
Description |
| Lookback Period |
How many historical HTF bars are used to build the distribution. Options: 20, 40, 60 bars, or Custom. Shorter lookbacks react faster to recent volatility regimes; longer lookbacks are more stable. |
| Custom Lookback |
Active only when Custom is selected above. Enter any integer. |
| Calculation Method |
Selects the statistical aggregation method applied to the historical distance distribution. See method descriptions below. |
| Calculation Unit |
Whether internal distances are measured in Points (price-native) or Ticks (exchange minimum increments). Ticks normalizes comparisons across instruments with different price scales. |
| Show levels for last X sessions |
How many historical HTF sessions to keep drawn on the chart simultaneously (1–50). Useful for back-reading how well past projections matched actual price action. |
Calculation Methods Explained:
| Method |
Behavior |
Mean |
Uses the arithmetic average of the distance distribution. Balanced, reacts to outliers. Best for general use. |
Normal Median |
Uses the sorted middle value of the distribution. More robust to extreme sessions. Tighter levels in calm conditions. |
Donchian Median |
Uses the midpoint between the smallest and largest observed distances. Widens levels proportionally to the full historical range. |
Mean + Normal Median (Zone) |
Projects both Mean and Median simultaneously, drawing a shaded zone between them instead of a single line. Best for identifying value areas with width. |
Standard Deviation |
Projects levels at ±1 standard deviation from the mean distance. Useful for volatility-adjusted range expectations. |
── Styling ──
| Setting |
Description |
| High / Close(B) / Mid(U) / Open / Mid(D) / Close(S) / Low (Show toggle) |
Show or hide each individual level independently. |
| Color pickers (per level) |
Customize the line and label color for each level. |
| Line style (per level) |
Solid (⎯⎯⎯), Dashed (----), or Dotted (····) per level. Mid levels default to dotted for visual hierarchy. |
| Line width (per level) |
1–5 pixel width per level. |
| Line Position Mode |
Controls how far the lines extend to the right. Full Session extends to session close time. Current Bar stops at the current candle. Offset extends a configurable number of bars beyond the current bar (set via the padding field beside it). |
| Bar Padding |
Number of bars to extend lines beyond the current bar when Offset mode is active. |
| Label Display Mode |
Controls what text appears at the end of each line. None, Level Only, Price Only, or Level + Price. |
| Label Size |
Text size for line-end labels: Tiny, Small, Normal, Large, Huge. |
| Table Cluster (Position) |
Where the mitigation table is anchored on screen: Top/Middle/Bottom × Right/Left, or Bottom Center. |
| Table Size |
Text size inside the mitigation table. |
── Overrides ──
| Setting |
Description |
| Enable Override HTF Lookback Period |
When enabled, each HTF uses its own individual lookback instead of the global setting. |
| HTF 1 / 2 / 3 Lookback Period |
Individual lookback for each HTF when the override is active. |
| Enable Override HTF Calculation |
When enabled, each HTF uses its own calculation method instead of the global setting. Useful for running Mean on the Daily and Median on the 4H simultaneously. |
| HTF 1 / 2 / 3 Calculation Method |
Per-HTF method selector (same options as global Calculation Method). |
| Enable Override Zone Mode |
Activates split lookbacks for the Zone method — one lookback for the Mean component, a different one for the Median component. |
| Zone Mean Lookback Period |
Lookback used for the Mean line when Zone Mode override is active. |
| Zone Median Lookback Period |
Lookback used for the Median line when Zone Mode override is active (typically longer, e.g., 60). |
── Alerts ──
| Setting |
Description |
| Enable Alerts |
Master toggle for all alert functionality. |
| Alert on All Levels & Zones |
Fires an alert whenever price touches any of the 7 projected levels across all enabled HTFs. |
| Alert on High / Close Bullish / Midrange (U/D) / Open / Close Bearish / Low |
Granular per-level alert toggles, active only when Alert on All Levels is disabled. Allows targeting alerts to specific levels of interest (e.g., only alert when the projected High or Low is reached). |
Note
Alerts fire once per bar using TradingView's alert.freq_once_per_bar frequency. The alert message identifies the HTF, level name, and exact price at the time of mitigation.
#5 Quick-Start Recommendations
| Use Case |
Suggested Settings |
| Intraday day trading (e.g., NQ 5m) |
HTF 1: Daily, Method: Mean, Lookback: 20, Display: Chart + Table |
| Swing trade context |
HTF 1: Weekly, HTF 2: Daily, Method: Median, Lookback: 40 |
| Volatility-aware ranging |
Method: Zone, Override Zone Mode ON, Mean LB: 20, Median LB: 60 |
| Clean minimal chart |
Label Mode: Price Only, Mid(U)/Mid(D): hidden, Line Pos: Current Bar |