Trading robot · MT5

Breakout Set and Forget

by OrchardForexTutorials

This Expert Advisor for MetaTrader 5 implements a breakout strategy centered on a user-defined time range.

GitHub stars7
Forks3
Last update3 years ago2 Jul 2023
LicenceGPL-3.0

Overview

Breakout Set and Forget calculates the high and low prices within a specific session to place multiple pending orders at a set distance from the range boundaries. The system utilizes three separate take-profit targets for each direction and a fixed stop loss for risk control. It includes percentage-based lot sizing and automatically manages order cancellation when opposite targets are triggered. The code is structured as an educational tool for session-based trading.

Details

Input parameters

Read from Breakout Set and Forget 5.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpRangeStartHourint1Range start hour
InpRangeStartMinuteint0Range start minute
InpRangeEndHourint1Range end hour
InpRangeEndMinuteint0Range end minute
InpRangeGapPipsdouble7.0Entry gap from outer range pips
InpStopLossPipsdouble25.0Stop loss pips
InpTakeProfit1Pipsdouble15.0Take profit 1 pips
InpTakeProfit2Pipsdouble35.0Take profit 2 pips
InpTakeProfit3Pipsdouble50.0Take profit 3 pips
InpMagiclong232323Magic number
InpTradeCommentstringSnF BreakoutTrade comment
InpRiskPercentdouble1.0Risk Percent

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone OrchardForexTutorials/breakout_set_forget 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
27 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
20 stars

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

MT5 Trading robot Breakout

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