Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Twitter !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Indicateurs

Institutional Shannon Entropy (Predictability Index) - indicateur pour MetaTrader 5

Amanda V | KayruYuta
Publié par:
Amanda Vitoria De Paula Pereira
Vues:
539
Note:
(1)
Publié:
MQL5 Freelance Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

The Flaw in Constant Algorithmic Exposure

 Retail developers build trading algorithms under the fatal assumption that the market is always printing exploitable patterns. They leave their Expert Advisors running 24/5. However, financial markets frequently transition into states of "Random Walk" (perfect efficiency) where price action is entirely driven by noise. When you deploy a technical strategy in a perfectly efficient environment, you are mathematically guaranteed to lose capital to spreads and commissions.


The Institutional Edge: Information Theory

To solve this, quantitative hedge funds do not rely on standard technical filters; they use Information Theory.

The Institutional Shannon Entropy Index applies Claude Shannon’s thermodynamic and information formulas to financial time series. It calculates the probability distribution of log-returns over a rolling window to measure the exact level of systemic "surprise" or randomness in the market structure.

Print


Core Quantitative Features

  • Mathematical Predictability: * High Entropy: The market is perfectly efficient and random. Patterns hold no statistical edge. Algorithms must be paused.

    • Low Entropy: The market is highly inefficient and patterned. The probability of algorithms finding exploitable edges drastically increases.

  • Dynamic Probability Distribution: The engine dynamically bins tick/price velocities into discrete micro-states to calculate the true $H(X) = -\sum P(x) \log_2 P(x)$ function in real-time.

  • Algorithmic Filter Overlay: Designed to act as the ultimate "Master Switch" for your automated portfolio. Only allow your trending or mean-reverting EAs to execute when the Shannon Entropy begins to dive below its historical baseline.

  • Zero-Lag Architecture: Coded strictly in MQL5 C++ using highly optimized array processing to deliver deep data-science calculations without the heavy CPU footprint of external Python bridges.


How to Execute

  1. Attach the Indicator to your primary execution chart.

  2. Monitor the Entropy Oscillator: The dynamic histogram will plot the level of market randomness.

  3. Deploy Capital Safely: Wait for a sharp decline in the Entropy Index. This mathematically confirms that the chaotic noise has dissipated and institutional order flow is creating a predictable, low-entropy structural regime.

Weekend Gap Statistics and Distribution Analyzer Weekend Gap Statistics and Distribution Analyzer

The Weekend Gap Statistics & Distribution Analyzer is a purely analytical MQL5 indicator designed to evaluate the historical behavior of weekend price gaps. It scans chart data to calculate gap closure rates and measures the adverse excursion (drawdown) experienced before a gap successfully closes. By providing statistical distributions—including the 70th and 90th percentiles of adverse heat—this tool enables traders to make data-driven decisions. It moves beyond simple averages, allowing traders to properly assess risk, filter out low-probability instruments, and optimize stop-loss placement when fading weekend gaps.

Chart Water Mark Chart Water Mark

Chart Water Mark Transform your MetaTrader 5 charts to look as elegant and professional as TradingView.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

MACD Signals MACD Signals

Indicator edition for new platform.