Skip to content
All library documents

Using Latent Gaussian Mixtures to Extract Indicator Features for Trading Models

Article MQL5 articles

Summary

The article presents a workflow for using a Latent Gaussian Mixture Model to identify hidden structure in technical-indicator data. It introduces mixture components and latent assignments, then describes fitting the model with expectation-maximization, which alternates between estimating component membership probabilities and updating model parameters. The example collects daily gold prices and a set of built-in oscillator values from MetaTrader 5 for analysis in Python.

The resulting latent features are explored as inputs to a classifier, and the article describes an Expert Advisor that combines those features with oscillator data for trade decisions. It also considers choosing the number of mixture components. The account provides a software and modeling workflow, but the excerpt gives limited detail on validation design or out-of-sample performance, so it does not establish predictive reliability. The example’s single instrument and timeframe also constrain how broadly its results can be applied.

Key ideas

  • A Gaussian mixture model represents observations as draws from multiple distributions with hidden component assignments.
  • Expectation-maximization alternates between estimating component probabilities and updating distribution parameters.
  • The example builds a daily gold dataset from price fields and oscillator indicators.
  • Latent mixture features are combined with indicator inputs for a classifier-based trading robot.
  • The reported workflow does not by itself establish out-of-sample predictive performance or generality across markets.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.