Trading robot · MT4

ATR Breakout EA

by MarkyMark1000

This MetaTrader 4 expert advisor executes trades based on Average True Range volatility patterns.

GitHub stars2
Forks0
Last update6 years ago4 Jun 2020
LicenceNone stated

Overview

ATR Breakout EA identifies breakout opportunities by comparing current ATR levels against the previous day's peak and trough, targeting periods of increasing volatility at the start of the trading session. The robot places pending limit or stop orders when price breaks beyond a specific range relative to the previous candles. It features risk management controls including a fixed monetary risk amount per trade, maximum lot size limits, and multiple stop loss calculation methods using either candle extremes or ATR multipliers.

Details

Author

MarkyMark1000 on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4)

Strategy

Breakout

Markets

Forex

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.

Input parameters

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

NameTypeDefaultDescription
I_MagicNumberint20200505Magic Number
I_ATRPeriodint5ATR Period
I_AtRiskdouble20AtRisk in Account Curr
I_StoplossMethodStoplossMethod0Stoploss Calculation Method.
I_ReversionPercentint20Reversion of Limit/Stop Open relative to last 2 candles.
I_StoplossATRMultiplierdouble1.0ATRMultiplier to calculate stoploss.
I_TypicalSpreaddouble0.00030Typical Spread used in SL Offsets
I_MaxLotSizedouble0.5Max Lot Size for Risk Management.
I_RiskRewardRatiodouble1.5Risk/Reward Ratio for T.P.
I_LimitStopOrderExpiryMinsint60Lim/Stop Order Duration in minutes.
I_HiddenStoplossOffsetdouble0Hidden Stoploss offset.
I_TradingStartHourint7Trading Start Hour.
Show all 14 inputs
NameTypeDefaultDescription
I_TradingEndHourint20Trading End Hour.
I_LogResultsInFileboolfalseLog Results in File.

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone MarkyMark1000/MQL_ATRBreakout from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
  3. 3Copy the filesCopy the .mq4 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

XAUUSD Forex Trader

by frkn2076
31 stars

This expert advisor for MetaTrader 4 focuses on gold trading using daily price extremes and moving averages. It calculates the 7-day Simple Moving Average and identifies the highest price points from the previous five trading days to determine market direction. The EA executes its logic on a five-second timer interval

MT4 Trading robot Mean reversionBreakout
Updated 5 years ago None stated GitHub repository of XAUUSD Forex Trader

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

Mad Pound Profits

by Syakyr
16 stars

Mad Pound Profits is a MetaTrader 4 expert advisor that automates trading based on structural breakouts and price action. The system utilizes time-specific analysis windows throughout the day to identify entry opportunities. It incorporates technical elements such as Fibonacci levels, momentum indicators, and mean reve

MT4 Trading robot BreakoutSMC / ICT / price actionMartingale High risk Archived
Updated 7 years ago None stated GitHub repository of Mad Pound Profits

Hybrid Swing EA

by clevergoldfox
15 stars

This MetaTrader 4 expert advisor executes a regime-gated breakout strategy specifically optimized for XRP and ETH markets. It operates on the H4 timeframe, utilizing Bollinger Bands for entry signals coupled with ADX and ATR filters to identify high-volatility trend environments. The EA employs a one-shot entry approac

MT4 Trading robot BreakoutTrend following
Updated 8 months ago None stated GitHub repository of Hybrid Swing EA

Session Sauce

by jblanked
13 stars

Session Sauce is an automated expert advisor for MetaTrader 4 designed to trade market session transitions and price extremes. It allows users to configure entries based on session opens, highs, and lows for the New York, London, and Asian sessions. The EA includes risk management features such as fixed stop losses, ta

MT4 Trading robot BreakoutMean reversionMartingale High risk
Updated 3 years ago None stated GitHub repository of Session Sauce

More trading robots

Need a broker for MT4?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers