Trading robot · MT5

First Candle Breakout

by erlonfs

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.

GitHub stars20
Forks20
Last update4 years ago21 Jul 2022
LicenceMIT
Latest release1.5.07 years ago

Overview

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 when the price breaks above the high and a sell position when it breaks below the low. Risk management tools include hard stop losses, take profits, trailing stops, and break-even settings. It further supports tiered partial closes and daily financial limits for account protection.

Details

Author

erlonfs on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Breakout

Markets

Any symbol

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.

Topics

metatradermetatrader5roboticstrading-bottrading-strategiestrading-algorithmstradingfirst-candle

Input parameters

Read from first_candle.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
Secao1string################## Definições Básicas ###
HoraIniciostring00:00Hora de início de execução da estratégia
HoraFimstring00:00Hora de término de execução da estratégia
HoraInicioIntervalostring00:00Hora de início intervalo de execução da estratégia
HoraFimIntervalostring00:00Hora de término intervalo de execução da estratégia
FecharPositionENUM_LOGIC0Fechar posições ao término de horario de execução?
Volumedouble0Volume
TipoUltimoPrecoENUM_LAST_PRICE_TYPE0Tipo de referência do ultimo preço
Spreadint0Spread para entrada na operação em ticks
Secao2string################## Alvos ###
StopGainEmTicksint0Stop Gain em ticks
StopLossEmTicksint0Stop Loss em ticks
Show all 40 inputs
NameTypeDefaultDescription
Secao3string################## Gerenciamento de Stop ###
IsStopNoCandleAnteriorENUM_LOGIC0Stop na máxima/ mínima do candle anterior?
SpreadStopNoCandleAnteriorint0Spread utilizado no ajuste em ticks
WaitBreakEvenExecutedENUM_LOGIC0Aguardar execução do break even?
IsPeridoPersonalizadoStopNoCandleAnteriorENUM_LOGIC0Utilizar período personalizado?
PeridoStopNoCandleAnteriorENUM_TIMEFRAMES0Período personalizado
Secao4string################## Trailing Stop ###
IsTrailingStopENUM_LOGIC0Ativar Trailing Stop?
TrailingStopInicioint0Valor de inicio em ticks
TrailingStopint0Valor de Ajuste do Trailing Stop em ticks
Secao5string################## Break-Even ###
IsBreakEvenENUM_LOGIC0Ativar Break-Even?
BreakEvenint0Valor do break-even, zero é o ponto inicial em ticks
BreakEvenInicioint0Valor de inicio em ticks
Secao6string################## Financeiro ###
IsGerenciamentoFinanceiroENUM_LOGIC0Ativar Gerenciamento Financeiro?
MaximoLucroDiariodouble0Lucro máximo no dia
MaximoPrejuizoDiariodouble0Prejuízo máximo no dia
Secao7string################## Realização de Parcial ###
IsParcialENUM_LOGIC0Ativar saída parcial?
PrimeiraParcialVolumedouble0Volume da 1ª saída parcial
PrimeiraParcialInicioint0Valor de inicio da 1ª saída parcial em ticks
SegundaParcialVolumedouble0Volume da 2ª saída parcial
SegundaParcialInicioint0Valor de inicio da 2ª saída parcial em ticks
TerceiraParcialVolumedouble0Volume da 3ª saída parcial
TerceiraParcialInicioint0Valor de inicio da 3ª saída parcial em ticks
Secao8string################## Expert Control ###
NumeroMagicoint0O número mágico é utilizado para diferenciar ordens de outros robôs

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone erlonfs/first-candle.bad-robot 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, and any .mqh files into the Include folder the code expects.
  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

Gold ORB

by yulz008
295 stars

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

MT5 Trading robot Breakout
Updated 3 years ago None stated GitHub repository of Gold ORB

Nyao Scalper

by elrizwiraswara
173 stars

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

MT5 Trading robot ScalpingTrend followingMartingale High risk
Updated 3 months ago BSD-3-Clause GitHub repository of Nyao Scalper

Golden Strategist EA

by raracraz
68 stars

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

MT5 Trading robot Trend followingBreakout
Updated 2 years ago None stated GitHub repository of Golden Strategist EA

Black XAU Automated Bot

by phatnomenal
48 stars

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

MT5 Trading robot BreakoutTrend following
Updated 11 months ago None stated GitHub repository of Black XAU Automated Bot

Box Breakout EA

by je-zhou
26 stars

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

MT4MT5 Trading robot BreakoutTrend following

Binario

by EarnForex
20 stars

Binario is a breakout expert advisor for MetaTrader 4 and 5 that utilizes a price channel constructed from two moving averages of the same period. By default, it uses a 144-period exponential moving average applied to both highs and lows. It enters trades when the price moves outside this band by a predefined pip dista

MT4MT5 Trading robot BreakoutTrend following
Updated 1 year ago Apache-2.0 GitHub repository of Binario

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