Collection · MT5

Medium Papers EA Collection

by jsgaston

This repository contains a collection of MetaTrader 5 expert advisors focused on advanced quantitative and machine learning techniques.

GitHub stars2
Forks2
Last update2 weeks ago7 Sep 2026
LicenceNone stated

Overview

The featured EA utilizes a technical summary approach inspired by TradingView, combining moving averages and oscillators with neural network confirmation via Hopfield and Restricted Boltzmann Machines. It manages trades across multiple symbols and timeframes simultaneously. Risk controls include ATR-based stop losses, take profits, break-even logic, and trailing stops. The collection also includes tools for hidden Markov models and market regime detection for various asset classes.

Details

Author

jsgaston on GitHub

Type

Collection

Platform

MetaTrader 5 (MQL5)

Strategy

AI / machine learning, Trend following, Breakout, Multi-strategy

Markets

Forex, Gold

Timeframes

M15-H1, H4 and above

Risk profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

Input parameters

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

NameTypeDefaultDescription
InpSymbolsstringEURUSD,GBPUSD,USDJPY,AUDUSD,USDCAD,NZDUSD,USDCHF,EURGBP,EURJLista de símbolos separados por coma
InpTimeframesstringH4,D1Lista de timeframes separados por coma
InpStrongThresholddouble0.55rating| >= esto => Strong Buy/Sell
InpNormalThresholddouble0.20rating| >= esto => Buy/Sell
InpADXTrendLevelint25ADX mínimo para considerar tendencia direccional
InpTrainBarsint1500Barras de histórico para entrenar
InpForwardBarsint8Barras hacia delante para etiquetar patrón buy/sell
InpLabelATRMultdouble0.5Movimiento mínimo (en ATR) para etiquetar patrón
InpHopfieldMargindouble0.15Margen mínimo de energía para confirmar (Hopfield)
InpRBMMargindouble0.15Margen mínimo de energía libre para confirmar (RBM)
InpRBMHiddenint4Neuronas ocultas RBM (fijo a 4 internamente, informativo)
InpRBMEpochsint150Épocas de entrenamiento CD-1
Show all 36 inputs
NameTypeDefaultDescription
InpRBMLearningRatedouble0.10Learning rate RBM
InpRetrainEveryBarsint100Reentrenar Hopfield/RBM cada X velas (por par/TF)
InpAutoTradebooltruefalse = solo señales en Journal, no abre operaciones
InpOnlyStrongTradesboolfalsetrue = solo abre operaciones en Strong Buy/Strong Sell
InpOnlyNormalTradesboolfalsetrue = solo abre operaciones en Buy/Sell normal (ignora Strong). NUNCA pongas este Y InpOnlyStrongTrades en true a la ve
InpStrongAllowedTimeframesstringD1Timeframes donde SÍ se permiten operaciones Strong, separados por coma (vacío = todos los timeframes). Ej: "D1" o "D1,H4
InpRiskPercentdouble1.0% de riesgo por operación (si 0, usa InpFixedLot)
InpFixedLotdouble0.01Lote fijo si InpRiskPercent = 0
InpATRPeriodint14Periodo ATR
InpATR_SL_Multdouble1.0SL = ATR * este múltiplo
InpATR_TP_Normaldouble1.0TP = ATR * este múltiplo (señal normal)
InpATR_TP_Strongdouble1.0TP = ATR * este múltiplo (señal strong)
InpBreakevenTriggerdouble0.5Al recorrer esta fracción de la distancia al TP, mueve el SL a break-even (0 = desactivado)
InpTrailingEnabledbooltrueActiva el trailing stop que deja correr las ganancias más allá del TP fijo
InpTrailingStartATRdouble0.8Cuando el precio ha recorrido esta fracción del ATR a favor, se quita el TP fijo y empieza el trailing
InpTrailingDistanceATRdouble1.0Distancia del trailing stop detrás del precio, en múltiplos de ATR
InpTrailingStepATRdouble0.1Paso mínimo (en ATR) para mover el stop; evita modificaciones excesivas
InpMagicBaseint990000Magic base (se suma índice de par internamente)
InpMaxBarsOpenint12Nº máximo de velas (del TF del par) con la orden abierta. 0 = sin límite
InpMaxSpreadATRFracdouble0.20No abrir si el spread actual > esta fracción del ATR (0 = sin filtro)
InpMaxConsecutiveLossesint4Pausa ese par/tipo (normal o strong) tras N pérdidas seguidas (0 = sin límite)
InpMaxDrawdownPercentdouble15Si el equity cae este % desde su máximo histórico, se detienen nuevas aperturas (0 = sin límite)
InpTimerSecondsint30Frecuencia de chequeo (segundos)
InpPrintTableAlwaysbooltrueImprimir tabla en cada ciclo (si no, solo al cambiar señal)

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone jsgaston/Medium-Papers 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.
  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

49 stars

This repository contains a diverse collection of MetaTrader 5 expert advisors ranging from RSI-based scalping robots to multi-timeframe trend following systems. The EAs utilize various technical indicators including EMA crossovers, MACD momentum, and ATR for volatility-based exits. The core logic often incorporates mul

MT5 Collection ScalpingTrend followingBreakout High risk
Updated 2 months ago Custom licence GitHub repository of Frontline MT5 Strategy Collection
22 stars

This repository provides a collection of MetaTrader 5 expert advisors and indicators developed for experimental purposes. It features a range of trading systems, including standard MetaQuotes examples and custom implementations like NERV and RNN-based logic. The primary expert advisors utilize technical indicators such

MT5 Collection Indicator crossoverMulti-strategyAI / machine learning
20 stars

This MetaTrader 5 repository provides a collection of expert advisors centered around an artificial neural network implementation. Developed using Matlab and exported as a DLL, the system integrates external computational models with MQL5. The primary advisor executes trades within defined time intervals, utilizing pri

MT5 Collection AI / machine learningTrend followingMulti-strategy
Updated 9 years ago None stated GitHub repository of ANN Trader MetaTrader

This MetaTrader 5 repository features a diverse collection of automated trading strategies, including indicator-based scalpers and price action robots. The experts utilize technical filters such as Average True Range periods and baseline moving averages to identify entry signals. Key risk management features integrated

MT5 Collection Trend followingBreakoutScalping
7 stars

This repository contains a collection of MetaTrader 5 expert advisors, primarily featuring the Signal Poller EA series alongside standard indicator-based robots. The system is designed for high-leverage environments, specifically targeting gold, bitcoin, forex, and indices. It utilizes an external signal push architect

MT5 Collection Trend followingBreakoutScalping High risk
Updated 6 months ago None stated GitHub repository of Signal Poller EA Collection
3 stars

This repository provides a diverse collection of MetaTrader 5 expert advisors and utility scripts for automated trading. The primary logic focuses on managing pending orders through dynamic distance adjustments, time-scheduled trade execution, and sophisticated trailing stops that operate via price ticks or millisecond

MT5 Collection BreakoutIndicator crossoverTrend following
Updated 2 years ago None stated GitHub repository of Cesreve MQL5 Collection

More collections

Need a broker for MT5?

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

Compare brokers