Framework & template ยท MT5

Roffild Library

by Roffild

Roffild Library is an extensive framework and collection of expert advisors for MetaTrader 5 that bridges MQL5 with modern data science tools.

GitHub stars120
Forks46
Last update6 years ago4 May 2020
LicenceApache-2.0

Overview

Roffild Library provides functional implementations for machine learning models, specifically Multilayer Perceptron neural networks and Random Forests via the AlgLib library. The project facilitates advanced workflows including Python integration for TensorFlow or PyTorch, and Apache Spark for big data processing on AWS. As a framework, it includes utility classes for logging, serialization, and array management. The provided expert advisors focus on model training and validation rather than out-of-the-box trade management or specific risk controls.

Details

Author

Roffild on GitHub

Type

Framework & template

Platform

MetaTrader 5 (MQL5)

Strategy

AI / machine learning

Markets

Forex

Timeframes

Any timeframe

Risk profile

  • Trades without a fixed stop loss

Topics

mq5sparklibraryrandom-forestneural-networkforexmqlmql5

Input parameters

Read from Alglib_MultilayerPerceptron.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
File_Numint0
Validation_TypeENUM_VALIDATIONVALIDATION_KFOLD
MLPCreateENUM_MLPCREATEMLPCREATE_NMLP Create
Hidden_1uint0
Hidden_2uint0
Activ_Adouble0Activ_A for MLPCreateR
Activ_Bdouble0Activ_B for MLPCreateB or MLPCreateR
Activ_DENUM_ACTIV_DACTIV_D_PLUSActiv_D for MLPCreateB
Decaydouble0.001
Decay_Powdouble1
Restartsuint1
LBFGSbooltrueL-BFGS
Show all 22 inputs
NameTypeDefaultDescription
WStepdouble0.01
WStep_Powdouble1
MaxItsuint5
FoldsCountuint2FoldsCount
z___ENUM_NOTHINGโ€”Else
Random_Index_Inputsboolfalse
Tester_Repeatint3
Tester_Result_Multidouble100
Tester_Reportbooltrue
Tester_Show_Incorrectboolfalse

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone Roffild/RoffildLibrary from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
  3. 3Copy the filesCopy the .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.

Similar expert advisors

Neural Network Tester Improved

by PhiAlphaInvestments
9 stars

Neural Network Tester Improved is a MetaTrader 5 expert advisor designed as a framework for integrating machine learning models into automated trading. The repository includes a main tester file that references an external neural network library. Currently, the source code provides a basic structure for initialization

MT5 Framework & template AI / machine learning
5 stars

This MetaTrader 5 expert advisor serves as a modular framework for building high-performance trading systems with external connectivity. It utilizes a three-pillar architecture: a bridge interface for REST API communication with external backends, a multi-agent logic system for AI-driven signal generation, and a risk m

MT5 Framework & template AI / machine learning
5 stars

This MetaTrader 5 expert advisor provides a comprehensive framework for training and deploying deep learning models natively within the MQL5 environment. It bypasses external dependencies by implementing Multilayer Perceptron, Recurrent Neural Network, and Long Short-Term Memory architectures directly in the platform.

MT5 Framework & template AI / machine learning
Updated 8 weeks ago None stated GitHub repository of MQL5 Neural Network Library
1 stars

This MetaTrader 5 framework integrates artificial intelligence models into trading strategies through the OpenRouter API. It provides a structured set of libraries for managing multiple AI providers, handling API fallback logic, and parsing natural language outputs into executable trade commands. The included demo expe

MT5 Framework & template AI / machine learning

Prediction App DLL

by LeCray
1 stars

This MetaTrader 5 framework provides tools for integrating machine learning models with algorithmic trading. It features scripts designed to generate training data by exporting price action and technical indicators like RSI, MACD, and Stochastics into CSV formats. The system interfaces with external neural network mode

MT5 Framework & template AI / machine learningTrend following
Updated 5 years ago None stated GitHub repository of Prediction App DLL

QGA SVM Forex

by TerenceLiu98
1 stars

This repository provides a framework for integrating machine learning and quantum physics models with MetaTrader 4 and 5. It aims to implement a Quantum Genetic Algorithm and Support Vector Machine for feature selection and price classification. The system utilizes a ZeroMQ bridge to connect Python 3.8 with the trading

MT4MT5 Framework & template AI / machine learning
Updated 6 years ago BSD-3-Clause GitHub repository of QGA SVM Forex

More frameworks and templates

Need a broker for MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers