INVITE-ONLY SCRIPT
Session OHLC Statistical Mapping

Session OHLC Statistical Mapping — Mean/Median Price Zones (Percent-Normalized)
Session OHLC Statistical Mapping plots statistically derived price zones around a session’s Open using historical behavior of that same session on a higher “mapping” timeframe (15m / 1H / 4H / Daily / Weekly).
It is designed to answer a simple question:
“Based on historical sessions, how far does price typically displace away from the open — and how far does it typically manipulate against it?”
Instead of using fixed ATR or arbitrary ranges, this tool builds zones from real distribution data collected from previous sessions, using Mean / Median / Both and optional robust estimators (including Power Mean).
What the levels mean
The indicator draws five core levels (or zones when Mean+Median are shown together):
OPEN (O) — The anchor of the session.
+DIS — “Displacement” in the direction of the session’s move (typical expansion away from open).
-DIS — Displacement on the opposite side (symmetrical reference).
-MAN — “Manipulation” zone above open (often where price runs stops/liq before moving).
+MAN — Manipulation zone below open.
DIS vs MAN logic (per historical candle):
If the session candle is bullish:
DIS = High − Open
MAN = Open − Low
If the session candle is bearish:
DIS = Open − Low
MAN = High − Open
That means DIS captures directional expansion and MAN captures the typical counter-move or wick against the open.
Why Percent Mode matters (important for multi-asset trading)
This indicator supports Points and Percent modes.
Points mode is direct and works well when your instrument is stable in price scale.
Percent mode normalizes distances by the historical session open:
𝑟
𝑖
=
𝑑
𝑖
𝑠
𝑡
𝑎
𝑛
𝑐
𝑒
𝑖
𝑜
𝑝
𝑒
𝑛
𝑖
×
100
r
i
=
open
i
distance
i
×100
Then the statistic is computed on
𝑟
𝑖
r
i
, and converted back to points using the current session open.
✅ Percent mode is usually the best choice when you trade multiple instruments (Gold, indices, FX, crypto) or when price levels change over time, because it keeps the zones comparable across regimes.
Mean vs Median (and why “Both” is powerful)
Median represents the “typical” session behavior and is more resistant to outliers.
Mean reflects the average including rare but large expansions (fat tails).
If you select Both, the indicator draws a zone between mean and median, which effectively becomes a distribution band.
Practical interpretation:
Median area = common/expected range
Mean extension = “higher probability tail events” / stretched sessions
This is especially useful in volatile markets where occasional big days pull the mean away from the median.
Robust averaging (Power Mean, RMS, EMA)
Markets often have non-normal distributions (skew, fat tails). Standard arithmetic mean can be influenced heavily by rare extreme sessions. This script allows alternative estimators:
Power Mean (p > 1): increases sensitivity to larger values in a controlled way (useful when you want zones that respect occasional expansions without fully jumping to outlier extremes).
RMS: strongly weights larger moves.
EMA: prioritizes recent behavior (good when volatility regime changes quickly).
These options let you match the zones to how the market actually behaves instead of assuming a perfect bell curve.
How to use it in trading
1) Intraday bias around the Open
If price holds above OPEN, you can treat upside zones as the primary magnet (+MAN → +DIS).
If price holds below OPEN, downside zones matter more (+MAN → -DIS).
2) Targets and take-profit mapping
A simple structured approach:
First target: nearest MAN zone
Second target: DIS zone
Extended target: mean/median extremes (if “Both” is enabled)
3) Rejection / reversal zones
MAN zones often behave like “liquidity sweep” regions:
Price runs into a MAN zone, wicks, and returns through OPEN → reversal potential.
Price enters a DIS zone and stalls → partial take profit or tighten stops.
4) Session-to-session context
Because zones are drawn for historical sessions, they can act like:
daily/weekly range expectations
contextual “where price should struggle”
systematic reference levels for day structure
Best markets to use this on
This indicator is built for anything liquid and session-driven, including:
Futures (ES, NQ, YM, CL, GC, etc.)
Great for mapping daily/4H session expansions and where stop-runs occur.
Gold (XAUUSD / GC)
Percent mode helps because gold moves in changing volatility regimes.
Forex (EURUSD, GBPUSD, USDJPY, etc.)
Percent normalization is ideal for FX pairs and long historical comparisons.
Crypto (BTC, ETH)
Works well with EMA or Power Mean when volatility shifts frequently.
Tips for best results
Start with Mapping TF = Daily, Lookback = 60.
Use Percent mode if you compare different assets or time periods.
Use Both (Mean+Median) to see distribution width and avoid overconfidence in a single number.
Use Power Mean (p ≈ 1.4–1.8) if arithmetic mean feels too tight or too distorted by outliers.
Combine with structure: previous highs/lows, session highs/lows, and rejection candles.
What this indicator is not
It does not predict direction by itself.
It’s a statistical mapping tool: it tells you where price typically expands and where it often “manipulates” around the session open.
Your edge comes from combining these zones with confirmation (market structure, orderflow, volume, candlesticks, etc.).
Session OHLC Statistical Mapping plots statistically derived price zones around a session’s Open using historical behavior of that same session on a higher “mapping” timeframe (15m / 1H / 4H / Daily / Weekly).
It is designed to answer a simple question:
“Based on historical sessions, how far does price typically displace away from the open — and how far does it typically manipulate against it?”
Instead of using fixed ATR or arbitrary ranges, this tool builds zones from real distribution data collected from previous sessions, using Mean / Median / Both and optional robust estimators (including Power Mean).
What the levels mean
The indicator draws five core levels (or zones when Mean+Median are shown together):
OPEN (O) — The anchor of the session.
+DIS — “Displacement” in the direction of the session’s move (typical expansion away from open).
-DIS — Displacement on the opposite side (symmetrical reference).
-MAN — “Manipulation” zone above open (often where price runs stops/liq before moving).
+MAN — Manipulation zone below open.
DIS vs MAN logic (per historical candle):
If the session candle is bullish:
DIS = High − Open
MAN = Open − Low
If the session candle is bearish:
DIS = Open − Low
MAN = High − Open
That means DIS captures directional expansion and MAN captures the typical counter-move or wick against the open.
Why Percent Mode matters (important for multi-asset trading)
This indicator supports Points and Percent modes.
Points mode is direct and works well when your instrument is stable in price scale.
Percent mode normalizes distances by the historical session open:
𝑟
𝑖
=
𝑑
𝑖
𝑠
𝑡
𝑎
𝑛
𝑐
𝑒
𝑖
𝑜
𝑝
𝑒
𝑛
𝑖
×
100
r
i
=
open
i
distance
i
×100
Then the statistic is computed on
𝑟
𝑖
r
i
, and converted back to points using the current session open.
✅ Percent mode is usually the best choice when you trade multiple instruments (Gold, indices, FX, crypto) or when price levels change over time, because it keeps the zones comparable across regimes.
Mean vs Median (and why “Both” is powerful)
Median represents the “typical” session behavior and is more resistant to outliers.
Mean reflects the average including rare but large expansions (fat tails).
If you select Both, the indicator draws a zone between mean and median, which effectively becomes a distribution band.
Practical interpretation:
Median area = common/expected range
Mean extension = “higher probability tail events” / stretched sessions
This is especially useful in volatile markets where occasional big days pull the mean away from the median.
Robust averaging (Power Mean, RMS, EMA)
Markets often have non-normal distributions (skew, fat tails). Standard arithmetic mean can be influenced heavily by rare extreme sessions. This script allows alternative estimators:
Power Mean (p > 1): increases sensitivity to larger values in a controlled way (useful when you want zones that respect occasional expansions without fully jumping to outlier extremes).
RMS: strongly weights larger moves.
EMA: prioritizes recent behavior (good when volatility regime changes quickly).
These options let you match the zones to how the market actually behaves instead of assuming a perfect bell curve.
How to use it in trading
1) Intraday bias around the Open
If price holds above OPEN, you can treat upside zones as the primary magnet (+MAN → +DIS).
If price holds below OPEN, downside zones matter more (+MAN → -DIS).
2) Targets and take-profit mapping
A simple structured approach:
First target: nearest MAN zone
Second target: DIS zone
Extended target: mean/median extremes (if “Both” is enabled)
3) Rejection / reversal zones
MAN zones often behave like “liquidity sweep” regions:
Price runs into a MAN zone, wicks, and returns through OPEN → reversal potential.
Price enters a DIS zone and stalls → partial take profit or tighten stops.
4) Session-to-session context
Because zones are drawn for historical sessions, they can act like:
daily/weekly range expectations
contextual “where price should struggle”
systematic reference levels for day structure
Best markets to use this on
This indicator is built for anything liquid and session-driven, including:
Futures (ES, NQ, YM, CL, GC, etc.)
Great for mapping daily/4H session expansions and where stop-runs occur.
Gold (XAUUSD / GC)
Percent mode helps because gold moves in changing volatility regimes.
Forex (EURUSD, GBPUSD, USDJPY, etc.)
Percent normalization is ideal for FX pairs and long historical comparisons.
Crypto (BTC, ETH)
Works well with EMA or Power Mean when volatility shifts frequently.
Tips for best results
Start with Mapping TF = Daily, Lookback = 60.
Use Percent mode if you compare different assets or time periods.
Use Both (Mean+Median) to see distribution width and avoid overconfidence in a single number.
Use Power Mean (p ≈ 1.4–1.8) if arithmetic mean feels too tight or too distorted by outliers.
Combine with structure: previous highs/lows, session highs/lows, and rejection candles.
What this indicator is not
It does not predict direction by itself.
It’s a statistical mapping tool: it tells you where price typically expands and where it often “manipulates” around the session open.
Your edge comes from combining these zones with confirmation (market structure, orderflow, volume, candlesticks, etc.).
招待専用スクリプト
このスクリプトは作者が承認したユーザーのみアクセス可能です。使用するにはアクセス申請をして許可を得る必要があります。通常は支払い後に承認されます。詳細は下記の作者の指示に従うか、ahmadsabzwari786に直接お問い合わせください。
TradingViewは、作者を完全に信頼し、スクリプトの動作を理解していない限り、有料スクリプトの購入・使用を推奨しません。コミュニティスクリプトには無料のオープンソースの代替が多数あります。
作者の指示
Send me a message over Tradingview
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
招待専用スクリプト
このスクリプトは作者が承認したユーザーのみアクセス可能です。使用するにはアクセス申請をして許可を得る必要があります。通常は支払い後に承認されます。詳細は下記の作者の指示に従うか、ahmadsabzwari786に直接お問い合わせください。
TradingViewは、作者を完全に信頼し、スクリプトの動作を理解していない限り、有料スクリプトの購入・使用を推奨しません。コミュニティスクリプトには無料のオープンソースの代替が多数あります。
作者の指示
Send me a message over Tradingview
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。