Fractal Dimension – Market Regime Analyzer
Copyright 2025, Jose María Molina Sánchez
? This email address is being protected from spambots. You need JavaScript enabled to view it. | Version 1.00
Financial markets do not follow linear models or normal distributions. Their behavior is complex, chaotic, and highly sensitive to initial conditions. Seemingly small events — such as rumors or news — can trigger sharp and unpredictable movements.
The Fractal Market Hypothesis offers a more realistic framework for understanding these phenomena. Unlike the classical Efficient Market Theory, this hypothesis recognizes that prices exhibit temporal autocorrelation, heavy tails in their distributions, and a self-similar statistical structure across different timeframes.
This indicator, Fractal Dimension – Market Regime Analyzer, precisely measures this fractal dimension of the market, providing an objective tool to identify whether the environment is trending or sideways, helping traders make more informed decisions.
The fractal dimension is a value between 1 and 2 that measures the degree of "order" or "chaos" in price movement:
This value reflects the long-term memory of the price:
The Fractal Dimension.mq5 indicator analyzes the price time series using a user-configurable period. It presents its result in three ways:
In a separate window:
In the main chart window:
Automatic comments:
Period: Number of bars used to calculate the fractal dimension.
Recommendation: Adjust this value according to the asset and timeframe. A period that is too short may generate noise; one that is too long may cause delay.
? Key Tip: There is no universal period. It must be optimized for each asset:
✅ Trading in a Trend
? Combination with Other Indicators
This indicator does not generate direct buy/sell signals but acts as a market regime filter. To maximize performance, combine it with trending strategies like:
As shown in the attached images, the same asset can show different regimes depending on the timeframe:
EURUSD | 1 min | 30 | ~1.3 | Trending |
EURUSD | 30 min | 30 | ~1.3 | Trending |
USDCNH | 1 min | 30 | ~1.5 | Sideways |
USDCNH | 1 min | 5 | ~1.6 | Sideways |
This demonstrates the importance of analyzing the temporal context before trading.
Fractal Dimension – Market Regime Analyzer does not predict the future, but it reveals the hidden nature of price movement. By accurately identifying whether the market is trending or sideways, it helps you avoid one of the most costly mistakes: trading with the wrong strategy at the wrong time.
It is an essential tool for quantitative traders, EA developers, and any operator seeking to improve consistency through context analysis.
"I designed this indicator after years of research into nonlinear market dynamics. It's not just a mathematical formula, but a practical translation of how markets really work. Use it with discipline, and it will give you a real edge."
— Jose María Molina Sánchez
For questions, suggestions, or error reports:
? This email address is being protected from spambots. You need JavaScript enabled to view it.
If for any reason you do not like the purchased program, you can request a refund within 30 days from the date of purchase. You can also make an exchange for any other product at an equal cost or by paying the difference.
Simply send a request for refund or exchange with your order number by email: support@ea-market.pro.
Refund requests received more than 30 days after purchase will be rejected.