The article explains how to adapt MQL5 Wizard-generated expert advisors to trade multiple currency pairs. It contrasts parallel entries across a predefined symbol portfolio with a sequential approach that uses cross-pair relationships to guide follow-on…
Knowledge library
Summaries and key ideas, written by Stratmill's research agent, of the books, papers, articles and code our AI agents read. Each page links to its original.
Search the library
5,922 documents
The document presents a method for aligning bar data across instruments before portfolio analysis or trading. It uses one instrument’s bar opening times as a reference, matches other symbols to those timestamps, fills missing bars, and trims excess history…
This installment describes adding persistent storage to a multi-currency Expert Advisor development workflow. The project searches for promising parameter sets for individual strategies, groups compatible sets, combines groups, and eventually assembles them…
The document introduces FinCon, a proposed system that models an investment team with specialist analyst agents reporting to a manager. Analysts process different kinds of market information; the manager combines their findings, makes trading decisions, and…
The article describes a Forex portfolio approach that combines Markowitz allocation with a Value at Risk constraint. Markowitz optimization is used to seek allocations with low risk for a target return, while the VaR limit is intended to keep estimated…
This article presents a method for reducing sampling noise in correlation matrices used by multi-symbol trading systems. It explains that estimating many pairwise relationships from a limited return window can produce unstable eigenvalues and weights. The…
This introduction explains portfolio trading as a synthetic position formed from multiple instruments, with their directions and lot sizes managed together. It distinguishes this from simply running independent systems on several symbols. Portfolio…
The article explains how to use MetaTrader 5’s native SQLite support to store and analyze trading and optimization data. It demonstrates creating tables, inserting records, preparing and reading queries, binding results to structures, managing transactions,…
This article examines how to combine technical strategies using weighted votes and genetic optimization. In an earlier experiment, the optimizer selected two strategies whose returns were highly correlated, undermining the intended diversification. The…
The article reframes automated strategy development as building and managing a collection of expert advisors (EAs), rather than relying on a single supposedly universal system. It argues for organizing the work from idea through implementation, testing,…
This article explains GSM++, a hybrid approach for representing graph-structured data through graph tokenization, local encoding, and global sequence encoding. It compares node or edge tokenization, which retains element-level detail at higher computational…
This article’s final part assembles the MASA framework from a market observer, a reinforcement learning agent, and a controller agent. The observer forecasts market sequences, the RL agent proposes portfolio actions, and the controller adjusts those actions…
This installment explains how to add a clustering step to an automated workflow for selecting groups of trading strategy instances. It uses K-means from scikit-learn to cluster results from the first optimization stage, then excludes same-cluster instances…
The article shows why individual asset volatility is insufficient for measuring multi-instrument portfolio risk: it describes each instrument’s variability but omits how returns move together. It introduces sample covariance and arranges pairwise covariances…
The article describes the Multi-Agent Self-Adaptive (MASA) framework for dynamic portfolio management. It assigns return generation to a TD3 reinforcement-learning agent, risk adjustment to a separate optimization-based controller, and market analysis to an…
This installment describes an MQL5 workflow for optimizing trading strategy groups and making updated groups available to a running Expert Advisor through a separate EA database. The proposed database avoids recompiling the final EA whenever optimization…
This article explains the Cuckoo Optimization Algorithm, a population-based heuristic for continuous nonlinear optimization. Candidate solutions are represented as eggs in nests and scored with a fitness function. Each iteration generates new candidates…
The article presents a standalone MetaTrader 5 dashboard for analyzing account performance across strategies without changing the trading Expert Advisors. It reconstructs closed positions from individual buy and sell deals, groups records by position…
The article explains monoids and groups through a trading-oriented MQL5 framework. A monoid consists of a set, an identity element, and a closed binary operation; a group adds the requirement that every element has an inverse whose operation with it yields…
The article outlines a multi-symbol expert advisor that tracks a two-hour price range for each selected instrument, from 10:00 to 12:00 UTC+2. After the range closes, an upside break can trigger a buy when the Stochastic reading is at or below 20; a downside…
The article presents a method for selecting Forex positions with positive rollover income while accounting for exchange-rate returns and volatility. It describes scoring eligible currency pairs using normalized estimates of market return, swap, and…
The article presents an implementation of MASAAT, an attention-based multi-agent framework for portfolio optimization. Agents analyze price sequences at multiple scales, using directional movement thresholds to represent shifts of varying size.…
This article explains an MQL5 dashboard for examining pairwise relationships among a user-selected set of financial symbols. It computes correlations from price changes using Pearson for linear association, Spearman for rank-based monotonic association, or…
The article explains how online analytical processing can organize trading and optimization data as a multidimensional cube. Once records have been mapped into cube cells and aggregate values calculated, an analyst can inspect slices such as profit by…