Articles

Native Apache Cassandra Client in MQL5: Writing Trade and Market Data via the CQL Binary Protocol for MetaTrader 5

This article shows how to build a native Cassandra CQL v4 client in MQL5 over a raw socket, without a REST or gRPC proxy. It details CQL frame encoding, correct handling of prepared-statement ids as short bytes, and a lot-sizing error found in the Strategy Tester, with targeted guards. You get a

The Brunner-Munzel Test for MQL5: Comparing Trade Outcomes When the Variances Don't Agree for MetaTrader 5

Mann–Whitney's usual normal-approximation reading relies on equal shape and variance, which trade outcomes often violate. We implement the Brunner–Munzel test natively in MQL5, validate it against SciPy, and quantify Mann–Whitney's type‑I mis-sizing under unequal variance. The test is integrated as

Apache Arrow Flight from MQL5: A Native gRPC Client for Columnar Data Transport for MetaTrader 5

This article implements a native Apache Arrow Flight client in pure MQL5: FlatBuffers-based Arrow IPC encoding/decoding, a raw HTTP/2 client with HPACK, and a thin gRPC/Flight framing layer, no external libraries. We detail the protocol stack, message formats, and the DoPut/DoGet/ListFlights calls

Bland-Altman Analysis for MQL5: Agreement Between Strategy Tester Modes (Real Ticks vs 1 Minute OHLC). for MetaTrader 5

The article builds a full MQL5 workflow for Bland-Altman agreement analysis between two Strategy Tester execution modes (real-tick vs 1-minute OHLC). A logging EA produces paired trades, a statistics core calculates bias, SD, 95% limits of agreement, confidence bands and proportional bias, and a

Embedding a WebSocket Server in an MQL5 Expert Advisor: Live Push to Browsers and Scripts Without a Middleman for MetaTrader 5

We build a WebSocket server inside an MQL5 Expert Advisor to stream ticks, positions and deal events to a browser or a Python client in real time. The article implements RFC 6455 (handshake, framing, masking and ping/pong) in pure MQL5 with Winsock, drives non-blocking sockets from a timer, wires

Native SFTP Client in MQL5: Uploading Trade Reports over SSH Without External Tools for MetaTrader 5

Send MetaTrader 5 trade reports to an SFTP server without WinSCP or external scripts. A pure-MQL5 SSH/SFTP client uses host-key pinning, safe packet handling and a temporary “.part” swap to avoid partial files, while an EA writes daily CSV reports and a service uploads them. The article also

Pesaran–Timmermann Test in MQL5: Separating Real Directional Skill from a Lucky Hit Rate for MetaTrader 5

This article implements the Pesaran–Timmermann directional accuracy test in pure MQL5 and applies its rolling right-tail p-value as a gate to enable or disable an Expert Advisor. Forecasts are scored without look-ahead, and the framework includes an EA, a rolling statistical display, and a

Hjorth Parameters for MQL5: Activity, Mobility, and Complexity as a Volatility-Momentum-Shape Dashboard for MetaTrader 5

Implements Hjorth's Activity, Mobility and Complexity in MQL5 as an O(1) rolling engine, a regime-colored dashboard indicator, and an Expert Advisor. Explains how volatility, lag-1 autocorrelation and path shape arise from three variances, how null bands classify regimes, and how the indicator feeds

Benford's Law for Trade Log and Quote Feed Integrity Auditing in Native MQL5 for MetaTrader 5

This article presents a native MQL5 auditor for Benford's first- and second‑digit tests on trade logs and market data. It implements an eligibility gate (sample size and decade spread), a theory-based test (chi-square, MAD, per‑digit z‑scores), and a reference comparison calibrated by bootstrap

Diebold-Mariano Test in MQL5: Does Your Indicator Actually Forecast Better Than a Random Walk? for MetaTrader 5

The article implements the Diebold–Mariano test in pure MQL5 with HAC long‑run variance and the Harvey–Leybourne–Newbold small-sample correction, and adds the Clark–West adjustment for nested models. Forecasts are scored without look‑ahead over a rolling window while accounting for overlapping