Trading robot · MT5

Xeque Mate Open Source

by petrusbastos

Xeque Mate Open Source is a counter-trend expert advisor for MetaTrader 5 based on the theories of Flavio Schotgues.

GitHub stars3
Forks1
Last update7 years ago23 Dec 2018
LicenceNone stated

Overview

Xeque Mate Open Source executes trades by placing limit orders at a user-defined point distance from a moving average. The system manages risk through fixed stop loss and take profit levels, while limiting exposure to a single trade per day. It includes specific intraday session controls, allowing users to set start and end times for new positions and an automated daily square-off time.

Details

Author

petrusbastos on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Mean reversion

Markets

Indices, Forex

Timeframes

M15-H1

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 Xeque Mate - Open Source - v0.1.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
configs_basestringConfigurações BaseConfigurações Base
nome_eastringXM - Open Source(BETA)Nome do EA
tempo_graficoENUM_TIMEFRAMESPERIOD_M15Tempo Gráfico
magicNumulong123456Magic Number
exibir_logs_graficoSIM_NAOSIMExibir Logs no gráfico? // TODO falta implementar
preenchimentoENUM_ORDER_TYPE_FILLINGORDER_FILLING_RETURNTipo do preenchimento de ordens à mercado
preenchimento_ordens_pendentesENUM_ORDER_TYPE_FILLINGORDER_FILLING_RETURNTipo do preenchimento de ordens pendentes // TODO Falta implementar
validade_ordens_pendentesENUM_ORDER_TYPE_TIMEORDER_TIME_DAYTipo da validade das ordens pendentes
custos_operacionaisstring*** Custos Operacionais ***Custos Operacionais
custo_operacional_fixo_por_contratodouble0.48Custo operacional fixo por contrato // TODO Falta implementar
parametros_estrategiastring*** Parâmetros da Estratégia ***Parâmetros da Estratégia
ma_periodoint15Período da Média Móvel
Show all 40 inputs
NameTypeDefaultDescription
distancia_mediaint800Distância da Média em pontos
distancia_ordem_limitint50Distância da ordem Limit
tempo_validade_ordem_limitint900Tempo validade ordem limit [segundos] (0=Off)
UmaOrdemPorCandleboolfalseAguardar novo candle para tentativa de reentrada? //Ricardo em 23/12
numero_contratosint1Número de contratos
maximo_operacao_diaint1Quantidade maxima de operacoes permitidas por dia
filtro_gapSIM_NAONAO[FILTRO GAP] Não operar dias com GAP maior que // TODO Falta implementar
parametros_saidastring*** Parâmetros de Saída ***Parâmetros de Saída
fechar_operacao_tensaoSIM_NAOSIMFechar Operação pela Tensão? // TODO Falta implementar
percentual_tensao_saidadouble0% Tensão p/ saída // TODO Falta implementar
stops_iniciaisstring*** Stops Iniciais ***Stops Iniciais
stop_lossint1200Stop Loss em pontos (SL)
stop_gainint5000Stop Gain em pontos (TP)
janela_operacoesstring*** Janela de Operações ***Janela de Operações
marcar_horarios_linhas_verticaisSIM_NAOSIMMarcar horários c/ linhas verticais no gráfico?
periodo_diariostringPeríodo DiárioPeríodo Diário
horario_inicial_abrir_posicoesint09Horário inicial permitido p/ abrir posições
minuto_inicial_abrir_posicoesint30Minuto inicial permitido p/ abrir posições
horario_final_abrir_posicoesint12Horário final permitido p/ abrir posições
minuto_final_abrir_posicoesint0Minuto final permitido p/ abrir posições
fechamento_diariostringFechamento DiárioFechamento Diário
fechar_posicoes_final_diaSIM_NAOSIMFechar posições no final de cada dia?
horario_fechar_todas_posicoesint13Horário para fechar todas as posições em aberto
minuto_fechar_todas_posicoesint00Minuto para fechar todas as posições em aberto
alertas_notificacoesstringAlertas e NotificaçõesAlertas e Notificações
exibir_alerta_mt5_novas_posicoesSIM_NAONAOExibir um alerta no MT5 ao abrir novas posições? // TODO Falta implementar
enviar_notificacao_smartphone_primeiro_tickSIM_NAOSIMNotificação no Smartphone no primeiro tick do dia? // TODO Falta implementar
enviar_notificacao_smartphone_novas_posicoesSIM_NAOSIMNotificação no Smartphone ao abrir novas posições? // TODO Falta implementar

How to install it

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

EA31337 Libre

by EA31337
252 stars

EA31337 Libre is an open-source, multi-strategy trading robot for MetaTrader 4 and MetaTrader 5. It functions as a simplified implementation of the EA31337 framework, providing a collection of over 35 built-in strategies based on technical indicators. The expert advisor performs independent market analysis across vario

MT5 Trading robot Multi-strategyTrend followingMean reversion
Updated 1 year ago GPL-3.0 GitHub repository of EA31337 Libre

GridMaster Pro

by sajidmahamud835
128 stars

An automated MetaTrader 5 expert advisor that executes a bi-directional grid trading strategy. It uses the Average True Range (ATR) indicator to dynamically calculate grid spacing, allowing the system to adapt to current market volatility. The robot supports neutral, bullish, and bearish modes. It includes risk managem

MT5 Trading robot GridMean reversion High risk
Updated 5 months ago MIT GitHub repository of GridMaster Pro
52 stars

This MetaTrader 5 expert advisor serves as an educational example from a book on MQL5 programming. It implements a versatile trading system that can be configured to use moving average crossovers, Relative Strength Index levels, or both indicators combined for trade entries. The EA manages risk with user-defined stop l

MT5 Trading robot Indicator crossoverMean reversion
Updated 6 years ago None stated GitHub repository of Introduction MQL5 Book EA

Spike Trader

by EarnForex
29 stars

Spike Trader is a price action robot for MetaTrader 4 and 5 that identifies price spikes to trade market reversals. It monitors candle highs or lows relative to preceding bars and requires a specific percentage price jump and candle close position to trigger an entry. The EA enters trades in the opposite direction of t

MT4MT5 Trading robot Mean reversion
Updated 1 year ago Apache-2.0 GitHub repository of Spike Trader

Allegro Stormer

by ReneMilare
28 stars

Allegro Stormer is a MetaTrader 5 expert advisor that implements a specific technical setup based on momentum and oscillator indicators. It utilizes a Momentum indicator filtered by a moving average alongside a Stochastic Oscillator to identify entry points. Risk management is centralized around the Average True Range,

MT5 Trading robot Mean reversionIndicator crossover
Updated 6 years ago None stated GitHub repository of Allegro Stormer

Scalpflip EA

by anthonycdp
25 stars

Scalpflip EA is an automated scalping robot for MetaTrader 5 that utilizes a multi-layered technical analysis approach. It offers three entry modes: trend-following, mean-reversion, and a smart mode that selects the strategy based on current market conditions. The system filters trades using the Relative Strength Index

MT5 Trading robot ScalpingTrend followingMean reversion
Updated 1 year ago None stated GitHub repository of Scalpflip EA

More trading robots

Need a broker for MT5?

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

Compare brokers