Skip to content
All library documents

Using 1D Convolutional Neural Networks for Trading Time Series

Article MQL5 articles

Summary

The article introduces convolutional neural networks and explains how convolution filters, stride, padding, activation functions, pooling, dense layers, and dropout contribute to feature extraction and prediction. It emphasizes one-dimensional convolutions as a possible fit for sequential financial data, where local temporal patterns may matter. The discussion also describes building a CNN in Python and deploying a trained model in a MetaTrader 5 trading robot through ONNX.

The author presents a CNN-based EUR/USD daily trading example using OHLC inputs and refers to a strategy tester report, claiming favorable predictive performance. The excerpt does not include the report’s detailed metrics or enough information about data splits, baselines, costs, or validation to judge that claim. CNNs can learn local patterns, but that capability does not ensure they generalize to changing markets. The material assumes prior familiarity with Python, neural networks, machine learning, and ONNX, and readers should treat the reported example as illustrative rather than conclusive evidence.

Key ideas

  • One-dimensional convolutions can extract local patterns from sequential financial inputs.
  • Convolution filters, stride, and padding affect which patterns are captured and the resulting feature-map dimensions.
  • Pooling reduces sequence dimensions, while dense layers use extracted features for prediction and dropout is intended to limit overfitting.
  • The article demonstrates a Python CNN deployed in a MetaTrader 5 robot through ONNX.
  • The claimed EUR/USD example lacks sufficient reported validation details in the excerpt to establish predictive robustness.

Tags

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