Collection · MT5

Nasdaq Trading Bot Collection

by alejandrolunas7

This repository features two MetaTrader 5 expert advisors specifically designed for Nasdaq indices.

GitHub stars1
Forks0
Last update3 months ago14 Jun 2026
LicenceNone stated

Overview

The first strategy utilizes a mean reversion approach based on the RSI-2 indicator on daily charts to identify oversold entries within a broader uptrend. The second strategy is a trend-following system for the M15 timeframe that incorporates EMA, MACD, and ADX filters with a pullback entry logic. Both tools include comprehensive risk controls such as ATR-based dynamic stop losses, breakeven functions, trailing stops, and a daily loss limit kill switch to manage drawdown.

Details

Author

alejandrolunas7 on GitHub

Type

Collection

Platform

MetaTrader 5 (MQL5)

Strategy

Mean reversion, Trend following, Indicator crossover

Markets

Indices

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 NasdaqMomentumPullback.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpMagicNumberlong20260611Magic Number (identificador único del EA)
InpComentarioOrdenstringNQ-MomPullbackComentario de las órdenes
InpPeriodoEMAint200Periodo de la EMA de tendencia (lenta)
InpEMARapidaint50Periodo de la EMA rápida (pullback en modo 1)
InpMACD_Rapidaint12MACD: EMA rápida
InpMACD_Lentaint26MACD: EMA lenta
InpMACD_Senalint9MACD: SMA de la señal
InpPeriodoATRint14Periodo del ATR
InpPendienteEMABarrasint0Filtro de pendiente EMA vs hace N velas (0 = off, optimizable 10-40)
InpModoEntradaint1Señal: 0=Cruce MACD (original), 1=Pullback a EMA rápida
InpUsarADXbooltrueFiltro de RÉGIMEN: operar solo si hay tendencia (ADX)
InpPeriodoADXint14Periodo del ADX
Show all 40 inputs
NameTypeDefaultDescription
InpADXMinimodouble23.0ADX mínimo para considerar que hay tendencia
InpModoInvalidacionint0Cruce MACD contrario: 0=cierra siempre, 1=solo si hay pérdida, 2=nunca
InpRiesgoPorOperaciondouble1.0Riesgo por operación (% de la Equity)
InpMultiplicadorSLdouble1.5SL = ATR x este multiplicador
InpMultiplicadorTPdouble3.0TP = ATR x este multiplicador (1:2)
InpPerdidaDiariaMaxdouble3.0Kill Switch: pérdida diaria máxima (% del balance)
InpMaxOperacionesDiaint4Máximo de operaciones por día
InpATRMinimoPuntosint500ATR mínimo en puntos para operar (filtro de mercado muerto)
InpATRMaximoPuntosint0ATR máximo en puntos para operar (0 = sin límite)
InpLoteMaximodouble5.0Lote máximo absoluto (techo de seguridad)
InpUsarBreakevenbooltrueActivar Breakeven
InpBreakevenRdouble1.0Activar BE al alcanzar +X R (múltiplos del riesgo)
InpBreakevenMargenint10Margen del BE en puntos (cubre comisiones)
InpUsarTrailingbooltrueActivar Trailing Stop
InpTrailingActivacionRdouble1.5Activar Trailing al alcanzar +X R
InpTrailingATRMultdouble1.0Distancia del Trailing = ATR x este multiplicador
InpTrailingPasoMinint20Paso mínimo en puntos para mover el SL (evita spam al servidor)
InpCerrarFinDiabooltrueCierre forzado diario (sin overnight). false = dejar correr ganadores
InpHoraInicioint17Hora de inicio de entradas (servidor)
InpMinutoInicioint0Minuto de inicio de entradas
InpHoraFinint23Hora de fin de entradas (servidor)
InpMinutoFinint0Minuto de fin de entradas
InpHoraCierreForzadoint23Hora del cierre forzado diario (servidor)
InpMinutoCierreForzadoint45Minuto del cierre forzado diario
InpMinutosSinEntradasint45Bloquear entradas X minutos antes del cierre forzado
InpMargenFinSesionint15Cerrar X minutos antes del fin de sesión del símbolo
InpSpreadMaximoint200Spread máximo permitido (en puntos)
InpSlippageMaximoint30Desviación/Slippage máximo (en puntos)

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone alejandrolunas7/BOT-ALGOTRADING 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

140 stars

This repository provides a collection of Expert Advisors for MetaTrader 5 and Python trading scripts developed for an educational YouTube series. It features various technical indicator-based strategies, including MACD, Relative Strength Index, Stochastic, and Bollinger Bands. The included MQL5 files implement multi-ti

MT5 Collection Indicator crossoverMean reversionTrend following
Updated 3 years ago None stated GitHub repository of Kecoma Trading Collection
61 stars

This collection features several expert advisors for the MetaTrader 5 platform, each built around a different technical indicator such as MACD, RSI, Parabolic SAR, and Ichimoku Kinko Hyo. The robots execute trades based on classic signal logic, including zero-line crossings and signal line crossovers. Users can configu

MT5 Collection Indicator crossoverTrend followingMean reversion
Updated 6 years ago Custom licence GitHub repository of Pipbolt MT5 Expert Collection
40 stars

This educational collection provides a foundation for building MetaTrader 5 expert advisors through a series of modular code snippets and a primary RSI-based trading robot. The included expert advisor executes trades based on Relative Strength Index overbought and oversold levels, supporting both live and closed candle

MT5 Collection Mean reversionIndicator crossoverTrend following

This repository provides a diverse collection of MetaTrader 5 expert advisors focusing on technical indicator automation. The core component aggregates signals from a wide array of standard tools, including trend-following moving averages, oscillators like RSI and MACD, and Bill Williams indicators. It includes specifi

MT5 Collection Trend followingIndicator crossoverMulti-strategy
8 stars

This collection of MetaTrader 5 expert advisors serves as an educational resource for MQL5 programming. It contains multiple example robots utilizing technical indicators such as Moving Averages, Parabolic SAR, CCI, and Stochastic oscillators. The provided scripts demonstrate fundamental trading automation features inc

MT5 Collection Indicator crossoverTrend followingMean reversion
4 stars

This repository is a collection of MetaTrader 5 expert advisors developed as early coding projects between 2021 and 2024. It includes multiple robots implementing varied strategies such as range breakouts, Donchian channels, Fibonacci retracements, and Bollinger Bands. The expert advisors are largely technical indicato

MT5 Collection Trend followingBreakoutMean reversion High risk

More collections

Need a broker for MT5?

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

Compare brokers