Trading robot · MT4

Hybrid Swing EA

by clevergoldfox

This MetaTrader 4 expert advisor executes a regime-gated breakout strategy specifically optimized for XRP and ETH markets.

GitHub stars15
Forks0
Last update8 months ago14 Jan 2026
LicenceNone stated

Overview

Hybrid Swing EA 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 approach per identified regime to avoid overtrading in choppy conditions. Risk controls include ATR-derived stop losses, automated partial profit-taking at specific reward ratios, and a trailing stop mechanism. A time-based exit rule is included to manage trades that do not reach targets within a defined period.

Details

Author

clevergoldfox on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4)

Strategy

Breakout, Trend following

Markets

Crypto

Timeframes

M15-H1, H4 and above

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

NameTypeDefaultDescription
TradeSymbolstring"" = chart symbol
MagicNumberint990001
TFENUM_TIMEFRAMESPERIOD_H4
AllowBuybooltrue
AllowSellbooltrue
BB_Periodint20
BB_Devdouble2.0
RSI_Periodint14
UseRSIConfirmbooltrue
RSI_BuyAbovedouble52.0
RSI_SellBelowdouble48.0
ADX_Periodint14
Show all 39 inputs
NameTypeDefaultDescription
ADX_Mindouble28.0trend strength
ADX_ResetBelowdouble20.0regime reset
ATR_Periodint14
ATR_Pctl_Windowint120rolling window in H4 bars
ATR_Pctl_Enterdouble65.0enter regime when ATR percentile >= this
ATR_Pctl_Resetdouble45.0reset when ATR percentile falls below this
Min_BB_Bandwidthdouble0.020(Upper-Lower)/Mid (H4); tune per feed
Require_BB_Expansionbooltruebandwidth rising vs previous bar
UseFixedLotsboolfalse
FixedLotsdouble0.10
RiskPercentdouble1.0start low; increase only after proof
SL_ATR_Multdouble1.5initial SL distance
UsePartialbooltrue
Partial_Rdouble1.5take partial at +1.5R
PartialClosePercentdouble50.0close % of position
BE_Buffer_Pointsint120BE buffer (points) to cover spread
UseATRTrailingbooltrue
Trail_ATR_Multdouble1.0trailing distance
Trail_Start_Rdouble0.7start trailing after +0.7R
Trail_MinStep_Pointsint120min SL improve (points) to modify
UseTimeStopbooltrue
MaxHoldBarsint10H4 bars to hold before time-exit
TimeStop_MinProfit_Rdouble0.3if profit < 0.3R after MaxHoldBars => close
SlippagePointsint30
MaxSpreadPointsint25000XRP spreads can be huge on some CFDs
MaxOpenTradesPerSymbolint1
DebugLogsboolfalse

How to install it

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

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
10 stars

This MetaTrader 4 expert advisor automates trading on the foreign exchange market, with specific testing historicals for GBPUSD on the five-minute timeframe. It focuses on intraday logic, allowing users to define specific trading windows and maximum daily trade limits. Risk controls include dynamic lot sizing based on

MT4 Trading robot BreakoutTrend followingMartingale High risk
Updated 9 years ago None stated GitHub repository of E and P For The Freedom

Conservative Scalper EA

by NadirAliOfficial
10 stars

Conservative Scalper EA is a MetaTrader 4 robot designed for intraday scalping on major currency pairs such as EURUSD, GBPUSD, and USDJPY. It determines market bias on the M15 timeframe using dual Exponential Moving Averages and enters trades on the M5 chart based on RSI levels and candle breakouts. The system prioriti

MT4 Trading robot ScalpingTrend followingBreakout

Desiree EA

by Lucas170
7 stars

Desiree is an automated trading robot for MetaTrader 4 that utilizes Donchian Channel breakouts for trade execution. The system enters positions based on a specific lookback period and exits using a separate exit period. A notable logic constraint prevents the EA from entering a new trade if the preceding trade resulte

MT4 Trading robot BreakoutTrend following
Updated 9 years ago None stated GitHub repository of Desiree EA

Robot Desiree

by Lucas170
5 stars

Robot Desiree is a trend-following expert advisor for MetaTrader 4 that utilizes Donchian Channels for trade entries and exits. The system identifies breakouts based on configurable lookback periods and manages positions using either fixed pip-based levels or volatility-adjusted stops and targets calculated from the Av

MT4 Trading robot BreakoutTrend following
Updated 7 years ago None stated GitHub repository of Robot Desiree

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