Statistical Mapping [Pro+] (Joshuuu)

Dive into the dynamic world of statistical market analysis with Statistical Mapping, designed for statistical traders of all time frames.

OHLC Statistical Mapping° [Pro+]

Concept Introduction

Dive into the intricate world of candlestick analysis with the OHLC Statistical Mapping Pro+! This collaboration with Joshuuu offers a closer look into the historical data of specific candles within an analyst’s chosen timeframe, providing insights for future time and price delivery. Incorporate this interactive tool into your TradingView templates and revolutionize your strategies with data. This advanced indicator goes beyond conventional OHLC representation, incorporating the principles of Inner Circle Trader (ICT) to explore accumulation, manipulation, and distribution candle-by-candle.

ICT traders identify manipulation as the wick opposing to the candle’s close. Analysts can observe manipulation legs seen as a movement to trap market participants in the "wrong" direction, to anticipate a candle's distribution.

When price distributes, it expands for higher or lower prices. Analysts can therefore note distribution levels for a draw on liquidity, retracement, or reversal.

These levels will provide important information about order flow when price trades through them and the sequence in which the delivery occurs.

Additionally, to amplify the price mapping, this tool plots the average Time at which its manipulation and distribution phases should complete. This feature allows traders to utilize historical Timings in conjunction with the price levels of manipulation and distribution.

As with any historical data driven tool, analysts should not expect past behavior to match future performance. This tool was created with a data driven edge to bring attention to when candles are likely to turn after their manipulations, or retrace after completing set distributions.

Indicator Features

  • Average Range Precision: Visualize candlestick data through a sophisticated line and label-based format, facilitating the identification of your manipulation, distribution, and time pivots. Enhance your comprehension of market volatility by graphing the average range of your selected candle timeframe. This metric acts as a compass, steering you towards potential support and resistance areas.

  • Tailored Timeframe Selection: Tailor your analysis by choosing a specific time frame that aligns with your trading strategy, enabling a focused exploration of the candle’s manipulation, distribution, and time in which both levels are hit.

  • Real-time Information Flow: Monitor market developments with instantaneous updates on candlestick statistics. Each candle updates the script with latest OHLC information providing continuous historical data computations, even on timeframes sub 1 minute.

  • Historical Mapping: Easily backtest previous mappings by enabling the historical mapping feature. This feature allows traders to revisit and analyze past market scenarios, offering a valuable tool for refining and validating trading strategies. Choose to show historical labels or remove them, giving ultimate flexibility for journaling.

  • User-Intuitive Interface: Navigate effortlessly through the tool's interface, designed to accommodate advanced traders with keen passion for data driven precision. Effortlessly customize the display settings to match your preferences, ensuring a seamless and personalized experience.

Usage Guidance:

  1. Add OHLC Statistical Mapping Pro to your TradingView chart.

  2. Choose up to 3 timeframes + 3 sessions for the mapping to plot on your chart, be sure to adjust your style and visual preferences to differentiate the timeframes’ levels.

  3. Observe how calculated manipulation, distributions, and delivery times align together with predetermined analysis.

  4. Leverage this information with other models and insights to create a stronger narrative for your analysis

Calculation Settings

Calculation Lookback

This setting defines how much historical data the script uses to generate its statistical outputs. You can choose a predefined window or set a custom value.

  • Predefined Options – Choose from 5, 20, 40, or 60 sessions to quickly adjust how much historical data is used.

  • Custom – Enter any number to specify an exact lookback length based on your personal strategy or asset volatility.

  • Maximum – Uses the full available dataset provided by TradingView, based on your chart's resolution and limits.

A shorter lookback makes the model more sensitive to recent price behavior. A longer or maximum lookback creates more stable statistical outputs based on broader context. Custom mode allows for targeted tuning based on your timeframe or strategy needs.

Calculation Method

Mean: Uses the mean value as calculation for the manipulation and distribution levels

Median: Uses the median value as calculation for the manipulation and distribution levels.

Both: Displays a range that highlights both the mean and the median values used to calculate the manipulation and distribution levels.

Percent or Points? If you want to account for high volatility, or process high amounts of historical data based on displacement rather than absolute price values, experiment with the Percent Method; if you are focused on the last few weeks/months, dial in with the Points

Custom Timezone

This option allows traders to override the default session timezone used by the indicator.
When disabled, the model uses America/New_York as the default reference (EST/EDT), aligning with typical NY market hours.

When enabled, users can select from a range of global timezones to anchor the session and mapping calculations based on their local trading hours or preferred session definitions.

Use Custom Anchor

This option lets traders redefine the anchor point for daily sessions by setting a specific hour:minute in the selected timezone.

  • When disabled, the indicator uses the default daily open time aligned to the chosen session or timezone.

  • When enabled, it anchors the session to a user-defined time (e.g., 00:00 or 09:30), letting the trader control when each new session begins.

Use Continuous Contracts

Use Continuous Contracts: Applies only to futures contracts, uses the continuous contracts data for calculation. For example, when NQH2025 is selected, the data will be retrieved from NQ1!.

Day-of-Week (Intraday + Sessions)

This option controls how intraday statistical data is grouped and visualized within the indicator.

  • When enabled, the data is grouped by both day of the week (Monday through Sunday) and time of day, allowing users to identify weekday-specific tendencies (e.g., Tuesday AM volatility vs. Friday PM consolidation).

  • When disabled, the data is aggregated purely by time of day, regardless of which weekday it occurred on, useful for generalizing session behavior without weekday bias.

Timeframes & Sessions

For complete customization, every price level can be drawn according to your preferences. You have the flexibility to modify the colour, style, and width for each line. Additionally, you can choose the display style, session, and determine the number of historical levels you wish to showcase.

Timeframes
The StatMap allows you to configure up to 3 standard timeframe-based projections simultaneously.
Each enabled timeframe calculates its own set of manipulation and distribution levels based on that period's historical statistics. This lets you layer multiple timeframe perspectives simultaneously.

Sessions
The StatMap allows you to configure up to 3 custom session-based projections simultaneously.
Perfect for traders who focus on specific market hours (London open, NY session, Asian session, etc.) rather than standard daily candles.

Understanding of OHLC

In ICTs teachings, most candles have a distinct manipulation and distribution.

In the context of a bullish setup, manipulation often appears as an initial downward price action that breaks below the open, falsely signaling bearish intent and stopping out traders positioned for a rise. This 'stop hunt' clears the way for a price ascent, known as distribution, where the market moves up, rewarding those who identified the manipulation and positioned themselves accordingly.

Savvy traders might seek areas of sell-side liquidity at these manipulation levels, where they can match their buy orders at a 'discount' with the higher prices—'premium'—where resting buy orders are likely to be filled.

Conversely, for bearish scenarios, manipulation occurs above the opening price, luring traders into bullish positions before the true distribution takes place below the open, driving prices lower.

This tool is designed to compile data driven insights to average manipulation and distribution movements with visualizations to help traders anticipate potential reversal zones.

When anticipating a bullish candlestick pattern, a trader should monitor the '+Manipulation' and '+Distribution' levels as these represent the thresholds of deceptive downward moves followed by upward price distribution.

In the expectation of a bearish pattern, attention should be turned to '-Manipulation' and '-Distribution' levels, signifying upward manipulation preceding a downward distribution.

Time: When selected, displays historical time calculations on the chart, seen as vertical lines indicating specific manipulation and distribution times.

Align Time and Price for studies congruent with ICT’s Power of Three.

Style

Visible Elements

This setting allows traders to control which overlay elements are displayed on the chart, depending on what kind of analysis they want to prioritize.

You can choose from three options:

  • StatMap Levels – Only shows projection levels and statistical time markers derived from historical mapping.

  • Liquidity Levels – Only displays liquidity lines and raid thresholds, useful for identifying sweep zones or targets.

  • Both – Displays all statistical and liquidity elements, giving a full-picture view.

Line Position

This setting controls how far the statistical lines extend while the current session is still ongoing.

You can choose from the following modes:

  • Full Session – Lines extend from the session open to the projected end of the session (ideal for full-range context).

  • Current Bar – Lines extend from the session open to the current live bar (good for real-time intraday tracking).

  • Offset – Shows a short preview of the statistical levels just ahead of price near the current bar (minimizes clutter while keeping context visible).

Labels & Styling

For complete customization, every price level can be drawn according to your preferences. You have the flexibility to modify the colour, style, and width for each line. Additionally, you can choose the display style, timeframes, and determine the number of historical levels you wish to showcase.

Historical Sessions

Table

This table format divides each timeframe into four quarters, serving as a roadmap illustrating how price evolves over time within the projected levels.

Easily monitor the distribution, manipulation, and opens by reading the OHLC stat table. When price reaches one of the levels, the grey box will shade.

Table Orientation:
Easily style your Time Table and adjust location preferences from the Top, Middle, or Bottom and Left, center, and Right. Additionally, choose your table size that can fit your screen size or device. For best view for Phone and Tablets, analysts should select Tiny or Small, while Desktop Users should select Normal, Large, or Huge.

Liquidity

Liquidity

This group of options customizes how liquidity pool levels are displayed on the chart.
You can choose to adjust the Color, Line style and Width, helpful for tailoring liquidity visualization to your layout style.

Raid

These controls adjust the appearance of Raid Lines, which mark liquidity pools that have already been raided. You can choose to adjust the Color, Line style and Width, helpful for tailoring liquidity visualization to your layout style.

Timeframe

This section controls how liquidity pools are sourced by defining both the chart timeframe used for detection and the historical depth of that data.

  • Timeframe – Choose the timeframe from which liquidity levels should be detected.

  • Lookback – Specify how far back the model should search for liquidity events, from a few days to several months.

Threshold

These controls define how closely liquidity pools must align with StatMap levels to be considered significant, and whether those proximity zones are visualized on your chart.

Only Pre-Session Liquidity

Threshold (%) – This sets the proximity tolerance in percent, not ticks or points.
For example: A threshold of 20 means any liquidity pool within ±20% of the projected StatMap level distance will be highlighted.

  • Higher values (e.g., 50) capture more liquidity points with a wider tolerance

  • Lower values (e.g., 10) only highlight exact alignments for higher precision

Show Area? – When enabled, this option draws a visual box around the proximity window to help you easily see which liquidity zones fall within the specified threshold.

When enabled, this setting filters liquidity levels so that only those formed before the current session open are considered.

Get Access to this script here!

P.S. We appreciate you reading our tool manual! Your feedback is invaluable in helping us grow to strengthen our community. Please let us know in Discord any way we can improve!
Take 10% off your first billing using code FEATURES10.