Bad Robot Sample offers a comprehensive suite of trade management tools, including fixed tick-based stop loss and take profit levels, trailing stops, and break-even settings. Users can configure up to three partial exits to scale out of positions. Risk management is further enhanced by daily financial limits for both profit and loss. The EA operates within defined time windows and can optionally trail stops using previous candle extremes. The repository contains minimal documentation as it is presented as a template.
Read from sample.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
Secao1
string
###############
### Definições Básicas ###
HoraInicio
string
00:00
Hora de início de execução da estratégia
HoraFim
string
00:00
Hora de término de execução da estratégia
HoraInicioIntervalo
string
00:00
Hora de início intervalo de execução da estratégia
HoraFimIntervalo
string
00:00
Hora de término intervalo de execução da estratégia
FecharPosition
ENUM_LOGIC
0
Fechar posições ao término de horario de execução?
Volume
double
0
Volume
TipoUltimoPreco
ENUM_LAST_PRICE_TYPE
0
Tipo de referência do ultimo preço
Spread
int
0
Spread para entrada na operação em ticks
Secao2
string
###############
### Alvos ###
StopGainEmTicks
int
0
Stop Gain em ticks
StopLossEmTicks
int
0
Stop Loss em ticks
Show all 40 inputs
Name
Type
Default
Description
Secao3
string
###############
### Gerenciamento de Stop ###
IsStopNoCandleAnterior
ENUM_LOGIC
0
Stop na máxima/ mínima do candle anterior?
SpreadStopNoCandleAnterior
int
0
Spread utilizado no ajuste em ticks
WaitBreakEvenExecuted
ENUM_LOGIC
0
Aguardar execução do break even?
IsPeridoPersonalizadoStopNoCandleAnterior
ENUM_LOGIC
0
Utilizar período personalizado?
PeridoStopNoCandleAnterior
ENUM_TIMEFRAMES
0
Período personalizado
Secao4
string
###############
### Trailing Stop ###
IsTrailingStop
ENUM_LOGIC
0
Ativar Trailing Stop?
TrailingStopInicio
int
0
Valor de inicio em ticks
TrailingStop
int
0
Valor de Ajuste do Trailing Stop em ticks
Secao5
string
###############
### Break-Even ###
IsBreakEven
ENUM_LOGIC
0
Ativar Break-Even?
BreakEven
int
0
Valor do break-even, zero é o ponto inicial em ticks
BreakEvenInicio
int
0
Valor de inicio em ticks
Secao6
string
###############
### Financeiro ###
IsGerenciamentoFinanceiro
ENUM_LOGIC
0
Ativar Gerenciamento Financeiro?
MaximoLucroDiario
double
0
Lucro máximo no dia
MaximoPrejuizoDiario
double
0
Prejuízo máximo no dia
Secao7
string
###############
### Realização de Parcial ###
IsParcial
ENUM_LOGIC
0
Ativar saída parcial?
PrimeiraParcialVolume
double
0
Volume da 1ª saída parcial
PrimeiraParcialInicio
int
0
Valor de inicio da 1ª saída parcial em ticks
SegundaParcialVolume
double
0
Volume da 2ª saída parcial
SegundaParcialInicio
int
0
Valor de inicio da 2ª saída parcial em ticks
TerceiraParcialVolume
double
0
Volume da 3ª saída parcial
TerceiraParcialInicio
int
0
Valor de inicio da 3ª saída parcial em ticks
Secao8
string
###############
### Indicadores ###
SubSecao1
string
###############
Cruzamento de Medias Moveis
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone cupidarrow0417/sample.bad-robot 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, and any .mqh files into the Include folder the code expects.
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 is a comprehensive multi-strategy trading robot and framework for MetaTrader platforms. It features dozens of pre-built strategies utilizing technical indicators like ATR, Moving Averages, and SuperTrend. The system manages entries and exits through a unique filtering system that monitors account metrics, volat
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
EA Scalper XAUUSD is an automated trading research project for MetaTrader 5 focused on gold. It employs a multifaceted entry strategy using Smart Money Concepts like order blocks and liquidity sweeps, alongside moving average crossovers and Fibonacci zones. The EA includes a self-learning module designed to adapt to di
Ladino Bot is an open-source expert advisor for MetaTrader 5 that uses HiLo Activator indicators and moving average crossovers to identify trade entries. It features a triple-timeframe architecture, allowing users to align entries with higher-period trends. Risk controls include daily gain and loss caps, brokerage fee
Gold Trader EA is a multi-strategy expert advisor designed for trading XAUUSD on the MetaTrader 5 platform. It employs a fusion engine that combines up to 14 different technical analysis methods, including candlestick patterns, chart patterns, price action, and institutional levels. The system requires a user-defined n
This MetaTrader 5 expert advisor automates the 9.1 trading setup popularized by Larry Williams, utilizing an exponential moving average to detect trend shifts. It enters trades based on price action relative to the moving average slope. The system includes built-in trade management features like partial profit taking,