Monte Carlo Mean Reversion Heatmap
Feb 17, 2026

The Monte Carlo Mean Reversion Heatmap indicator is a quantitative trading indicator that uses Monte Carlo simulation and Geometric Brownian Motion (GBM) to forecast 100+ potential future price paths and measure the statistical probability of price reverting back to a defined mean. Instead of relying on a single price projection, this tool visualizes a full probability distribution, helping traders evaluate overextensions, trend strength, and realistic mean reversion scenarios with institutional-grade statistical modeling.
By transforming historical volatility and drift into a forward-looking probability cloud, this trading strategy tool allows traders to make data-driven decisions based on mathematical expectations rather than subjective bias.
How to Trade the Monte Carlo Mean Reversion Heatmap Indicator
This trading indicator projects a forward “probability cloud” from the current price into future bars. It visually represents where price is statistically likely to move — and how likely it is to revert toward its long-term average.
The tool is ideal for:
- Mean reversion trading strategies
- Volatility expansion analysis
- Identifying statistical overbought and oversold conditions
- Risk-adjusted trade targeting
- Trend continuation vs exhaustion assessment
1. Measuring Mean Reversion Probability
At the core of this indicator is the Mean Reversion % displayed in the dashboard. This metric shows how many of the simulated price paths (out of 100+) touched or crossed the EMA ribbon within the projection window (for example, the next 30 bars).
This transforms a common trading concept — “price is far from the EMA” — into a measurable statistical probability.
-
High Probability (>70%)
When price is extended far from the EMA and the reversion probability is high, it suggests statistical overextension. This often aligns with potential counter-trend trading setups targeting a return toward the mean. -
Low Probability (<30%)
When probability is low, it suggests either strong directional drift or elevated volatility. In these environments, mean reversion becomes statistically less likely in the short term — often seen during parabolic moves or breakout trends.
This feature makes the indicator valuable for traders who want confirmation before fading a move or avoiding premature reversal entries.
2. Trading the Monte Carlo "Probability Fan"
The indicator plots percentile boundaries derived from the simulated price distribution:
- 5% Line
- 50% Line (Median Path)
- 95% Line
These form a statistical projection cone into the future.
Trading Statistical Extremes
- Overbought / Oversold Conditions
If price moves beyond the 5% or 95% percentile boundaries, it is statistically entering a zone that only occurs in approximately 1 out of 20 modeled scenarios.
These extremes often signal:- Profit-taking zones
- Potential exhaustion
- Reversal opportunities
The Median Path (50%)
The 50% line represents the most statistically probable forward trajectory based on current drift and volatility. It acts as:
- A realistic trend-following target
- A benchmark for evaluating whether price is outperforming or underperforming expectations
- A guide for trade management
This probabilistic framing improves both entry timing and exit precision in systematic trading strategies.
Understanding the Heatmap Density
The heatmap itself represents probability density.
- Darker Zones: Higher concentration of simulated paths
- Lighter Zones: Lower probability areas
This gives traders a visual map of the most mathematically probable price zones over the projection window. Instead of guessing where price might consolidate, the density cloud shows where it is statistically most likely to travel.
The result is a forward-looking volatility map grounded in quantitative finance principles.
DETAILS
The engine behind this trading indicator is the Geometric Brownian Motion (GBM) model — a continuous-time stochastic process widely used in mathematical finance for modeling asset prices.
GBM assumes price follows a random walk with two components:
- Drift: The directional bias or trend component
- Volatility: The randomness derived from historical log-return variability
By running 100+ simulations simultaneously, the script produces a distribution of potential outcomes rather than a single forecast line. This is a major advantage over traditional indicators that project only one deterministic path.
The “width” of the cloud reflects uncertainty. Narrow projections indicate controlled volatility, while wide projections reveal elevated risk and dispersion.
This approach makes the indicator suitable for:
- Systematic traders
- Quantitative analysts
- Volatility traders
- Swing traders
- Intraday traders evaluating risk-adjusted setups
SETTINGS
The Monte Carlo Mean Reversion Heatmap offers full customization to adapt to different trading styles and asset classes.
Mean Calculation
- Mean Length: Defines the EMA period used as the statistical reversion target.
- Mean Color: Customizes the EMA ribbon display.
Adjusting the mean length changes the reversion horizon — shorter EMAs for faster strategies, longer EMAs for swing or macro approaches.
Monte Carlo Simulation Parameters
- Simulations: Number of random price paths (higher values increase statistical smoothness but may affect performance).
- Projection Length: Number of future bars simulated.
- Volatility Lookback: Window used to calculate historical log-volatility.
- Include Drift: Incorporates EMA slope into the simulation to account for directional bias.
Disabling drift produces a pure volatility-based model. Enabling drift makes projections trend-aware.
Visual Customization
- Price Bins: Controls vertical resolution of the heatmap.
- Heatmap Color: Defines the probability cloud color scheme.
- Show Percentile Lines: Toggles the 5%, 50%, and 95% projection lines.
Dashboard Controls
- Show Dashboard: Displays statistical metrics including mean reversion probability.
- Position/Size: Adjusts dashboard placement and scaling.
Why Use This Monte Carlo Trading Indicator?
Most trading indicators rely on past data to infer future direction. The Monte Carlo Mean Reversion Heatmap goes further by modeling multiple possible futures simultaneously.
It helps traders:
- Quantify mean reversion probability
- Visualize forward volatility dispersion
- Identify statistically extreme price behavior
- Improve risk management decisions
- Combine probabilistic forecasting with traditional technical analysis
Rather than asking “Will price revert?”, this tool answers:
“What is the mathematical probability that it will?”
FAQ
What makes this different from a standard EMA strategy?
Traditional EMA strategies show where price is relative to the mean. This indicator shows the statistical probability of price returning to that mean within a defined window.
Is this a trend-following or mean reversion trading strategy?
It can be used for both. High reversion probabilities favor counter-trend setups, while the median projection path and percentile bands can support trend-following trade management.
Does the indicator repaint?
The simulation is based on current volatility and drift inputs. Once projected, the probability cloud represents a forward distribution from that bar’s data.
How do I access the Monte Carlo Mean Reversion Heatmap?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.comTradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, CoinAPI. CBOE BZX real-time US equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

