Muhammad Minhas Qamar
Muhammad Minhas Qamar
5 (1)
  • Informations
Aucun
expérience
2
produits
15
versions de démo
1
offres d’emploi
0
signaux
0
les abonnés
Developer by Profession, Trader by Hobby

Gmail: ayanminhasshayar@gmail.com
Muhammad Minhas Qamar
Article publié Porting the Canonical Catch22 Time-Series Feature Set and Testing It on Volatility Regimes
Porting the Canonical Catch22 Time-Series Feature Set and Testing It on Volatility Regimes

We present a native MQL5 implementation of the catch22 feature set: all 22 canonical time-series characteristics in a reusable class validated against pycatch22. Using a leak-free pipeline (chronological split, purging, embargo), we run a three-arm ablation—classic indicators, catch22, and combined—for volatility-regime classification. Finally, we deploy the combined model as a Strategy Tester regime filter to quantify its impact on a simple baseline strategy.

1
Muhammad Minhas Qamar
Article publié Bayesian Online Change-Point Detection (BOCPD) in MQL5: One Regime-Break Signal, Three Ways to Use It
Bayesian Online Change-Point Detection (BOCPD) in MQL5: One Regime-Break Signal, Three Ways to Use It

This article delivers Bayesian Online Change-Point Detection as a single, dependency-free MQL5 class that maintains a per-bar, causal probability of a regime break. We use it three ways: a live monitor, a moving average that flushes on breaks, and a risk overlay with a matched-frequency random control. Readers get a reusable primitive to watch structural change, adapt indicators, and gate exposure after detected shifts.

1
Muhammad Minhas Qamar
Code publié EVT Crash Gauge
Théorie des valeurs extrêmes (EVT) adaptée au langage MQL5 pour évaluer les risques de krach et de perturbations sur le marché.
Muhammad Minhas Qamar
Code publié SAX Forecaster
Un modèle de prévision basé sur l'approche d'agrégation symbolique (SAX)
Muhammad Minhas Qamar
Code publié Relative Moving Average EA
Une implémentation MQL5 des quatre stratégies de croisement issues du cadre théorique des « moyennes mobiles relatives » de Bloch, intégrant ses règles de sortie adaptatives (« Adaptive Crossover Exit ») en fonction du régime de volatilité. Les entrées et sorties sont déterminées dans l'espace des fractiles ; ainsi, les seuils ont la même signification pour chaque symbole.
Muhammad Minhas Qamar
Code publié Relative Moving Average Indicator
Une adaptation fidèle en MQL5 du framework « Relative Moving Average » de Daniel Bloch. Elle classe le cours de clôture actuel au sein de la distribution de sa propre fenêtre sur une échelle [0, 1] comparable d'un symbole à l'autre, et publie les fractiles, la classification par régime et la cohérence directionnelle sous forme de tampons lisibles.
Muhammad Minhas Qamar
Article publié Symbolic Aggregate Approximation (SAX) in MQL5: Historical Analog Search and Forecasting
Symbolic Aggregate Approximation (SAX) in MQL5: Historical Analog Search and Forecasting

Symbolic Aggregate approXimation (SAX) encodes price windows as short words to enable fast, sound similarity search on history. We implement SAX in pure MQL5, including Gaussian breakpoints, PAA, and the lower-bounding MINDIST, and validate it with a test harness. An indicator applies a no-lookahead, two-stage search, summarizes forward paths in ATR units, and draws a forecast fan, explicitly indicating when the sample shows no edge.

1
Muhammad Minhas Qamar
Article publié Ordinal Pattern Transition Networks in MQL5
Ordinal Pattern Transition Networks in MQL5

We implement ordinal pattern transition networks in MQL5: a Lehmer-code encoder, a directed network over ordinal price patterns, and three complexity metrics. Two indicators expose a trend-versus-range regime from time-irreversibility and an efficiency gauge from permutation entropy, with a transparent parameter sweep showing how to tune settings on FX data.

Muhammad Minhas Qamar
Article publié Mapping Dealer Gamma Exposure (GEX) in MetaTrader 5: Walls, the Zero-Gamma Flip, and a Chart Overlay
Mapping Dealer Gamma Exposure (GEX) in MetaTrader 5: Walls, the Zero-Gamma Flip, and a Chart Overlay

In this article we build a dealer gamma-exposure map in MQL5. From an option chain, the tool computes per-strike GEX, finds the call and put walls, and solves for the zero-gamma flip that separates a mean-reverting regime from a trending one, then draws it all on the chart. CSV and native-symbol data paths included.

Muhammad Minhas Qamar
Article publié Foundation Models for Trading (Part I): Porting Kronos to Native MQL5
Foundation Models for Trading (Part I): Porting Kronos to Native MQL5

Kronos is a pretrained transformer that models OHLCV bars the way a language model predicts words. We reimplement its tokenizer/encoder and transformer block in native MQL5, export weights to flat .bin files, and remove Python from runtime entirely. Part 1 delivers preprocessing and BSQ tokenization plus a bit-for-bit verification harness against PyTorch, so you can run the encoder inside MetaTrader 5 with confidence.

Muhammad Minhas Qamar
Article publié From Option Chain to 3D Volatility Surface in MetaTrader 5
From Option Chain to 3D Volatility Surface in MetaTrader 5

This article walks through creating an MT5 indicator that ingests option chains from native symbols or CSV, inverts prices to implied volatility via a hybrid Newton–Raphson/bisection method, and assembles a clean strike–expiry grid. It then renders a shaded, rotatable 3D surface with the platform's DirectX layer, enabling clear, in-terminal analysis of skew and term structure using live or file-based data.

Muhammad Minhas Qamar
Article publié Beyond GARCH (Part VIII): The MMAR Library And Putting it to Work in an Expert Advisor
Beyond GARCH (Part VIII): The MMAR Library And Putting it to Work in an Expert Advisor

This article finalizes the MMAR project with a CMMAR facade class and a demo Expert Advisor for MetaTrader 5. The facade exposes a compact API—configure, Fit(), Forecast()—that wraps partition analysis, spectrum fitting and Monte Carlo simulation. You will learn how to load data, fit the model and obtain a volatility forecast, with diagnostics and status handling for robust use in EAs.

Muhammad Minhas Qamar
Article publié Extreme Value Theory in MQL5: Building a Tail-Risk Crash Gauge Beyond Monte Carlo VaR
Extreme Value Theory in MQL5: Building a Tail-Risk Crash Gauge Beyond Monte Carlo VaR

Standard MQL5 risk tools read risk from recent history and miss how heavy the downside tail can be. We implement Extreme Value Theory in MetaTrader 5: a Peaks‑Over‑Threshold fit of the Generalized Pareto Distribution via ALGLIB, a live indicator that reports EVT VaR/ES and tail shape, and an EA that sizes positions from the tail estimate. A controlled backtest illustrates reduced drawdown for unchanged entries.

Muhammad Minhas Qamar
Article publié How to Connect AI Agents to MQL5 Algo Forge via MCP
How to Connect AI Agents to MQL5 Algo Forge via MCP

This article extends Part 1 by giving an AI access to the development lifecycle on MQL5 Algo Forge. We implement an MCP server over the Forgejo REST API so an agent can create repositories, commit Expert Advisors, branch from main, open pull requests, file issues, and tag releases. You will get a ready-to-run Python server, clear tools, and a safer, reversible workflow.

Muhammad Minhas Qamar
Article publié Beyond GARCH (Part VII): Monte Carlo Volatility Forecasting in MQL5
Beyond GARCH (Part VII): Monte Carlo Volatility Forecasting in MQL5

We implement the CMonteCarlo module that turns the fitted MMAR parameters into a volatility forecast via Monte Carlo. It runs N independent simulations over a chosen horizon and reports mean, median, standard deviation, and a percentile-based 95% confidence interval, with access to per-run values if needed. Adaptive cascade depth selects the minimal k such that b^k covers the horizon, keeping the run fast and consistent.

Muhammad Minhas Qamar
Article publié Beyond GARCH (Part VI): Fractional Brownian Motion And The Multiplicative Cascade in MQL5
Beyond GARCH (Part VI): Fractional Brownian Motion And The Multiplicative Cascade in MQL5

This article implements the MMAR Simulation Engine that turns fitted parameters (H, distribution, coefficients, sample volatility) into synthetic price paths. It builds multifractal trading time via a multiplicative cascade, synthesizes fractional Brownian motion with Davies–Harte or Cholesky, scales it to target volatility, and composes the process by time deformation. Readers get a reusable MQL5 class, method choices by path length, and validation steps for scenario testing and Monte Carlo use in the next part.

Muhammad Minhas Qamar
Article publié Beyond GARCH (Part V): Fitting the Multifractal Spectrum in MQL5
Beyond GARCH (Part V): Fitting the Multifractal Spectrum in MQL5

This article builds the Spectrum Fitter: from tau(q) we compute f(alpha) with a discrete Legendre transform, then fit Normal, Binomial, Poisson, and Gamma spectra under box constraints using BLEIC. The best model by SSE is selected, and its parameters (eg, alpha min, alpha max or alpha_0, gamma) become the cascade inputs for multifractal simulation.

3
Muhammad Minhas Qamar
Article publié Beyond GARCH (Part IV): Partition Analysis in MQL5
Beyond GARCH (Part IV): Partition Analysis in MQL5

In this article, we shift from Python research to native MQL5 engineering. We build the first module of the MMAR library: a shared constants header, an SVD-based OLS regression class, a Generalized Hurst Exponent estimator, and the partition analysis engine that computes the partition function, extracts tau(q), estimates H via zero-crossing interpolation, and scores multifractality through three diagnostic tests. Tested on 500,000 bars of EURUSD M10, the engine correctly classifies the data as multifractal in under four seconds. Part 4 of an eight-part series. Part 5 fits the tau(q) curve to four candidate distributions via the Legendre transform.

1
Muhammad Minhas Qamar
Article publié Beyond GARCH (Part III): Building the MMAR and the Verdict
Beyond GARCH (Part III): Building the MMAR and the Verdict

With the multifractal parameters from Part 2 in hand, this article builds the full MMAR process. We construct the multiplicative cascade for trading time, generate Fractional Brownian Motion via Davies-Harte FFT, and combine both into X(t) = B_H[theta(t)]. A 1000-path Monte Carlo simulation produces the volatility forecast, which we then pit against GARCH on the same EURUSD M5 data. Does Mandelbrot's fractal architecture outforecast Engle's conditional variance framework? Part 3 of a eight-part series leading to a native MQL5 library and Expert Advisor.

1
Muhammad Minhas Qamar
Article publié Beyond GARCH (Part II): Measuring the Fractal Dimension of Markets
Beyond GARCH (Part II): Measuring the Fractal Dimension of Markets

Building on the partition function analysis from Part 1, this article deepens the theoretical foundation before completing the analytical pipeline. We first give a full treatment of the Hurst exponent: what it measures, what it implies about market memory, and why it matters for the MMAR. This is followed by an intuitive exploration of multifractal spectra and what f(α) reveals about volatility heterogeneity. We then move to implementation: extracting the scaling function τ(q), estimating H via R/S analysis, and fitting the multifractal spectrum across four candidate distributions. By the end, we have the complete parameter set needed to construct the MMAR process in Part 3. Part 2 of an eight-part series.

2
123