Trading robot · MT4

EURUSD Surge EA

by Masa1984a

This MetaTrader 4 expert advisor is designed specifically for the EURUSD pair, focusing on price surge detection and subsequent pullback entries.

GitHub stars2
Forks0
Last update1 year ago6 May 2025
LicenceMIT

Overview

EURUSD Surge EA identifies significant volatility using ATR and candlestick body ratios, entering trades during correction phases. The robot incorporates multi-timeframe analysis across M5 and M15 charts alongside a filtering system including ADX, Bollinger Bands, RSI, and MACD. Risk management features include automated lot sizing based on account equity, ATR-based dynamic stop losses, and partial profit taking.

Details

Author

Masa1984a on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4)

Strategy

Trend following, Breakout, Mean reversion

Markets

Forex

Timeframes

M1-M5, 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 EURUSD_Surge_EA.mq4. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
Basic_Settingsstring===== 基本設定 =====
EnableLongTradesbooltrueロングトレードを有効にする
EnableShortTradesbooltrueショートトレードを有効にする
LotSizedouble0取引ロットサイズ (0=自動計算)
MaxDailyTradesint41日の最大エントリー回数 (旧:2)
TimeFrame_Settingsstring===== 時間足設定 =====
MainTimeFrameintPERIOD_M5メイン時間足
TrendTimeFrameintPERIOD_M15トレンド確認用時間足
Volatility_Settingsstring===== ボラティリティ設定 =====
UseATRbooltrueATRを使用する
ATRPeriodint14ATR計算期間
ATRMultiplierdouble1.2ATR乗数
Show all 40 inputs
NameTypeDefaultDescription
VolatilityPeriodint50ボラティリティ計算期間(ATR未使用時)
VolatilityMultiplierdouble2.0平均ボラティリティの何倍を急騰/急落とするか
BodyToTotalRatiodouble40.0ローソク足の実体/?
Entry_Settingsstring===== エントリー設定 =====
AdjustmentCandlesMinint1調整足の最小数
AdjustmentCandlesMaxint7調整足の最大数
EntryPullbackPercentdouble40.0エントリー引き付け率(%)
Risk_Settingsstring===== リスク管理設定 =====
RiskRewardRatiodouble2.0リスクリワード比
MaxRiskPercentdouble2.0総資産に対する最大リスク率(?
UsePartialClosebooltrue部分決済を使用する
PartialClosePercentdouble60.0部分決済の割合(%)
PartialCloseTriggerdouble1.0部分決済トリガー(リスクの何倍で部分決済するか)
Filter_Settingsstring===== フィルタリング設定 =====
UseADXFilterbooltrueADXフィルタを使用する
ADXPeriodint14ADX計算期間
ADXThresholddouble20.0ADXしきい値(これ以上でトレンド相場と判断) (旧:25.0)
UseBollingerFilterbooltrueボリンジャーバンドフィルタを使用する
BBPeriodint20ボリンジャーバンド計算期間
BBDeviationdouble2.0ボリンジャーバンド標準偏差
BBWidthThresholddouble0.015ボリンジャーバンド?
UseRSIConfirmationbooltrueRSI確認を使用する
RSIPeriodint14RSI計算期間
UseMACDConfirmationbooltrueMACD確認を使用する
MACDFastEMAint12MACD速いEMA
MACDSlowEMAint26MACD?
MACDSignalPeriodint9MACDシグナル期間
Time_Settingsstring===== 取引時間設定 =====

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone Masa1984a/EURUSD_Surge_EA 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

Baby MT4 EA

by dolie
2 stars

This MetaTrader 4 expert advisor utilizes the SuperTrend and Bollinger Bands indicators to identify market entries. It monitors for trend changes, breakouts, corrections, and pullbacks. The EA incorporates several risk management tools, including a configurable stop loss, dynamic stop loss logic, and a trailing stop. I

MT4 Trading robot Trend followingBreakoutScalping High risk
Updated 9 years ago None stated GitHub repository of Baby MT4 EA

Ubot

by techteam92
1 stars

Ubot is an automated trading robot for MetaTrader 4 that utilizes technical analysis to execute market orders. It incorporates specific strategy patterns such as Sharkfin and Squeeze logic, likely based on the included Traders Dynamic Index library. The EA features comprehensive trade management including trailing prof

MT4 Trading robot Trend followingBreakoutMean reversion
Updated 1 year ago Custom licence GitHub repository of Ubot

Axuusd Gold Advisor

by damozycodes
1 stars

This expert advisor is designed specifically for trading gold on the MetaTrader 4 platform. It employs a hybrid strategy approach, allowing users to toggle between trend following using moving average crossovers, mean reversion via RSI and Stochastic divergence, and breakout patterns. Trade management includes automate

MT4 Trading robot Trend followingMean reversionBreakout High risk
Updated 8 months ago None stated GitHub repository of Axuusd Gold Advisor

Nolo Trading Bot

by festomanolo
4 stars

This expert advisor for MetaTrader 5 is a multi-strategy system that utilizes market regime detection to switch between trend following, range trading, and breakout modes. It incorporates a wide array of technical indicators, including Moving Averages, RSI, MACD, Ichimoku, and SuperTrend. The bot manages risk through v

MT5 Trading robot Trend followingMean reversionBreakout High risk
Updated 6 months ago MIT GitHub repository of Nolo Trading Bot

EA SMC Engine

by Pauloeduspbr
3 stars

This automated trading robot for MetaTrader 5 implements Smart Money Concepts (SMC) and ICT principles using a hybrid architecture. Trading logic and signal detection are processed within a native C++ DLL, while the MQL5 bridge handles trade execution and data feeding. The system identifies market structure shifts, inc

MT5 Trading robot SMC / ICT / price actionBreakoutTrend following
Updated 5 months ago MIT GitHub repository of EA SMC Engine
2 stars

This MetaTrader 5 expert advisor combines Bollinger Band mean-reversion, squeeze breakouts, and EMA crossover trend following. It filters for ranging markets using a long-period EMA slope to execute reversal trades with candlestick confirmation, specifically identifying Doji patterns at the bands. Risk management inclu

MT5 Trading robot Mean reversionBreakoutIndicator crossover

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