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.
Read from Xeque Mate - Open Source - v0.1.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
configs_base
string
Configurações Base
Configurações Base
nome_ea
string
XM - Open Source(BETA)
Nome do EA
tempo_grafico
ENUM_TIMEFRAMES
PERIOD_M15
Tempo Gráfico
magicNum
ulong
123456
Magic Number
exibir_logs_grafico
SIM_NAO
SIM
Exibir Logs no gráfico? // TODO falta implementar
preenchimento
ENUM_ORDER_TYPE_FILLING
ORDER_FILLING_RETURN
Tipo do preenchimento de ordens à mercado
preenchimento_ordens_pendentes
ENUM_ORDER_TYPE_FILLING
ORDER_FILLING_RETURN
Tipo do preenchimento de ordens pendentes // TODO Falta implementar
validade_ordens_pendentes
ENUM_ORDER_TYPE_TIME
ORDER_TIME_DAY
Tipo da validade das ordens pendentes
custos_operacionais
string
*** Custos Operacionais ***
Custos Operacionais
custo_operacional_fixo_por_contrato
double
0.48
Custo operacional fixo por contrato // TODO Falta implementar
parametros_estrategia
string
*** Parâmetros da Estratégia ***
Parâmetros da Estratégia
ma_periodo
int
15
Período da Média Móvel
Show all 40 inputs
Name
Type
Default
Description
distancia_media
int
800
Distância da Média em pontos
distancia_ordem_limit
int
50
Distância da ordem Limit
tempo_validade_ordem_limit
int
900
Tempo validade ordem limit [segundos] (0=Off)
UmaOrdemPorCandle
bool
false
Aguardar novo candle para tentativa de reentrada? //Ricardo em 23/12
numero_contratos
int
1
Número de contratos
maximo_operacao_dia
int
1
Quantidade maxima de operacoes permitidas por dia
filtro_gap
SIM_NAO
NAO
[FILTRO GAP] Não operar dias com GAP maior que // TODO Falta implementar
parametros_saida
string
*** Parâmetros de Saída ***
Parâmetros de Saída
fechar_operacao_tensao
SIM_NAO
SIM
Fechar Operação pela Tensão? // TODO Falta implementar
percentual_tensao_saida
double
0
% Tensão p/ saída // TODO Falta implementar
stops_iniciais
string
*** Stops Iniciais ***
Stops Iniciais
stop_loss
int
1200
Stop Loss em pontos (SL)
stop_gain
int
5000
Stop Gain em pontos (TP)
janela_operacoes
string
*** Janela de Operações ***
Janela de Operações
marcar_horarios_linhas_verticais
SIM_NAO
SIM
Marcar horários c/ linhas verticais no gráfico?
periodo_diario
string
Período Diário
Período Diário
horario_inicial_abrir_posicoes
int
09
Horário inicial permitido p/ abrir posições
minuto_inicial_abrir_posicoes
int
30
Minuto inicial permitido p/ abrir posições
horario_final_abrir_posicoes
int
12
Horário final permitido p/ abrir posições
minuto_final_abrir_posicoes
int
0
Minuto final permitido p/ abrir posições
fechamento_diario
string
Fechamento Diário
Fechamento Diário
fechar_posicoes_final_dia
SIM_NAO
SIM
Fechar posições no final de cada dia?
horario_fechar_todas_posicoes
int
13
Horário para fechar todas as posições em aberto
minuto_fechar_todas_posicoes
int
00
Minuto para fechar todas as posições em aberto
alertas_notificacoes
string
Alertas e Notificações
Alertas e Notificações
exibir_alerta_mt5_novas_posicoes
SIM_NAO
NAO
Exibir um alerta no MT5 ao abrir novas posições? // TODO Falta implementar
enviar_notificacao_smartphone_primeiro_tick
SIM_NAO
SIM
Notificação no Smartphone no primeiro tick do dia? // TODO Falta implementar
enviar_notificacao_smartphone_novas_posicoes
SIM_NAO
SIM
Notificação no Smartphone ao abrir novas posições? // TODO Falta implementar
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone petrusbastos/xequemateopensource from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
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.
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
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
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
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
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,
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