Skip to content
All library documents

Using Neural Networks to Build and Test Trading Signals

Article MQL5 articles

Summary

The article explains how neural networks can support trading systems, focusing on signal generation and indicator calculation. It distinguishes forecasting a future closing price from producing a decision signal during a trading session, and argues that the latter is easier to integrate into an automated strategy. The proposed workflow trains networks on historical price-derived inputs and indicator examples, then uses their outputs as signals for an Expert Advisor.

A Stochastic Oscillator example illustrates how a network can learn an indicator-like response from relative price data. The author also describes splitting processing between the network and the trading terminal, exchanging small files to pass inputs and signals. Different training samples can produce distinct buy and sell indicators, which may be optimized individually or together. The article outlines staged testing, including checking the compiled module in the terminal. It offers implementation concepts and visual examples, but does not provide independently validated performance evidence or a detailed account of overfitting, transaction costs, or out-of-sample robustness.

Key ideas

  • A trading network can be trained to emit actionable signals instead of simply reproducing a future price forecast.
  • Historical price features and indicator outputs can serve as inputs and training examples.
  • A network can handle indicator calculations and return compact signals to an Expert Advisor.
  • Training samples shape the resulting signals and can support separate buy and sell models.
  • The proposed workflow includes testing the network module within the trading terminal.

Tags

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