The robot calculates a box area using a specified number of candles and enters positions when price moves outside these boundaries. It includes comprehensive trade management features such as fixed stop loss and take profit targets in ticks, trailing stops, and break-even triggers. Additionally, the EA supports three levels of partial profit closing and enforces daily financial limits for account protection. Trading is restricted to specific time windows defined by the user.
Read from box_of_consolidation.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
###############
### Expert Control ###
NumeroMagico
int
0
O número mágico é utilizado para diferenciar ordens de outros robôs
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone erlonfs/box.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.
This MetaTrader 5 expert advisor implements an open range breakout strategy specifically designed for gold trading on the hourly timeframe. It identifies the high and low of the initial trading hour and establishes a definitive range after a user-defined consolidation period. Trades are triggered when price breaks thro
Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT
This MetaTrader 5 expert advisor specializes in trading Gold (XAUUSD) by targeting volatility during the New York session. It utilizes an Average True Range (ATR) indicator to identify market trends and determine entry levels for limit orders. Risk management includes fixed stop loss parameters and dynamic trailing sto
Black XAU is an automated trading robot for MetaTrader 5, specifically designed for gold. It utilizes a multi-timeframe breakout and retest strategy, identifying trading zones based on initial H4 market structure. Entries are triggered on the M5 timeframe when price retests a confirmed breakout level. The expert adviso
This MetaTrader 5 expert advisor implements a box breakout strategy designed for the foreign exchange market. The robot identifies price ranges during specific time windows and enters trades upon a breakout. It features a trend filter using fast and slow moving averages to align entries with broader market direction. R
First Candle Breakout is a MetaTrader 5 expert advisor designed to trade the breakout of the high or low of the first candle within a specified period. While traditionally used with the first 60-minute candle, the software allows users to configure any timeframe for the initial range. The robot enters a buy position wh