Muhammad Minhas Qamar
Muhammad Minhas Qamar
  • 信息
经验
2
产品
15
演示版
1
工作
0
信号
0
订阅者
Developer by Profession, Trader by Hobby

Gmail: ayanminhasshayar@gmail.com
Muhammad Minhas Qamar
已发布文章Network Momentum for MetaTrader5: Trading the Lead-Lag Graph Between Markets
Network Momentum for MetaTrader5: Trading the Lead-Lag Graph Between Markets

This article builds a trend-following Expert Advisor that trades momentum spillover across markets, implemented fully in MQL5 without external solvers. It detects leaders with Derivative Dynamic Time Warping, learns a sparse weighted network by convex optimization, and propagates momentum through it with a reverting response. Readers get a step-by-step, reproducible pipeline and a working EA ready to run in the Strategy Tester.

1
Muhammad Minhas Qamar
留下反馈给客户为工作 Python/mql5 indicator and the expert advisor
Muhammad Minhas Qamar
已发布文章Foundation Models for Trading (Part II): Decoding, Autoregression, and an Exact KV-Cache
Foundation Models for Trading (Part II): Decoding, Autoregression, and an Exact KV-Cache

We complete the native MQL5 port of Kronos: the decoder, the predictor's decode_s1 and decode_s2 stages with their cross-attention traps, and the autoregressive loop that produces a multi-bar forecast. Then we profile and make it roughly 4.5x faster with an exact KV-cache and pre-transposed weights, verifying every stage against PyTorch.

Muhammad Minhas Qamar
已发布文章Bloch's Relative Moving Average (RMA) Framework Implementation In MQL5
Bloch's Relative Moving Average (RMA) Framework Implementation In MQL5

We port Daniel Bloch's Relative Moving Average framework into a complete MetaTrader 5 system. Instead of smoothing price, the RMA measures where price sits inside its own recent distribution on a [0,1] fractile scale, and drives four cross-strategies with a regime-adaptive exit. Includes the engine, indicators, and a backtested Expert Advisor.

Muhammad Minhas Qamar
已发布文章Implementing and Benchmarking Bag-of-SFA-Symbols (BOSS) Against Dynamic Time Warping (DTW)
Implementing and Benchmarking Bag-of-SFA-Symbols (BOSS) Against Dynamic Time Warping (DTW)

This article implements BOSS from scratch in MQL5 and applies it to regime classification: SFA turns windows into words, bags record word frequencies, and an ensemble over window lengths votes on labels. We cover the encoding steps, the BOSS distance, training with auto-generated regime labels, and practical parameters. A BTCUSD benchmark versus DTW shows higher macro accuracy on clean data and markedly faster inference.

Muhammad Minhas Qamar
已发布文章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
已发布文章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
已发布代码EVT Crash Gauge
将极值理论(EVT)移植到MQL5中,用于评估市场中潜在的暴跌和剧烈波动。
Muhammad Minhas Qamar
已发布代码SAX Forecaster
基于符号聚合近似法(SAX)构建的预测模型
Muhammad Minhas Qamar
已发布代码Relative Moving Average EA
这是对布洛赫(Bloch)相对移动平均线框架中全部四种交叉策略的MQL5实现,其中采用了其根据波动率区间调整的自适应交叉平仓规则。入场和出场均在分位数空间中进行,因此阈值在每个交易品种上的含义都是一致的。
· 1 133 399
Muhammad Minhas Qamar
已发布代码Relative Moving Average Indicator
这是对丹尼尔·布洛赫(Daniel Bloch)的“相对移动平均线”(Relative Moving Average)框架的忠实 MQL5 移植版。它将当前收盘价在其自身窗口的分布中按 [0, 1] 尺度进行排序(该尺度在不同交易品种间具有可比性),并将分位数、状态分类和方向一致性作为可读缓冲区发布。
Muhammad Minhas Qamar
已发布文章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
已发布文章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
已发布文章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
已发布文章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
已发布文章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
已发布文章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
已发布文章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
已发布文章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
已发布文章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.

12