Trading robot · MT4

GM Remake

by lawjar

GM Remake is an automated trading robot for MetaTrader 4 that executes a multi-stage martingale strategy.

High risk

GitHub stars1
Forks0
Last update9 months ago20 Jan 2026
LicenceCustom licence

Overview

GM Remake initiates trades based on price breakout logic and manages drawdowns by layering additional positions at user-defined distances. To refine entries, the EA utilizes dual exponential moving averages and MACD trend protection to avoid trading against strong momentum. Risk management features include a trailing stop for the total order basket and a protective liquidation mechanism that closes all positions if the price moves beyond the final allowed layer distance.

Details

Author

lawjar on GitHub

Type

Trading robot

Markets

Crypto, Forex

Timeframes

M15-H1

Risk Profile

  • Uses martingale lot scaling: losses can grow fast
  • Opens a grid of orders: exposure builds up in a trend

Input Parameters

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

NameTypeDefaultDescription
TimeframeENUM_TIMEFRAMESPERIOD_H1交易時區 (Trading Timeframe)
EntryModeLevel1ENUM_ENTRY_MODEENTRY_MODE_CONFIRMED第 1 層?
BarsCountedBackint3回溯 K 線數量 (用於計算高低點)
MaxBuyOrderint5最大買單層數 (0 為不開買單)
MaxSellOrderint5最大賣單層數 (0 為不開賣單)
EntryDistance1int100第 1 層?
EntryDistance2int20000第 2 層?
EntryDistance3int20000第 3 層?
EntryDistance4int20000第 4 層?
EntryDistance5int20000第 5 層?
EntryDistance6int20000第 6 層?
EntryDistance7int25000第 7 層?
Show all 40 inputs
NameTypeDefaultDescription
EntryDistance8int30000第 8 層?
LotSize1double0.01第 1 層手數
LotSize2double0.02第 2 層手數
LotSize3double0.04第 3 層手數
LotSize4double0.08第 4 層手數
LotSize5double0.16第 5 層手數
LotSize6double0.32第 6 層手數
LotSize7double0.64第 7 層手數
LotSize8double1.28第 8 層手數
TrendProtectionbooltrue啟用價格行為趨勢保護 (K 線顏色確認)
MACDTrendProtectionbooltrue啟用 MACD 趨勢保護 (避?
MACDFastEMAint5MACD 快速 EMA 週期
MACDSlowEMAint13MACD ?
MACDSignalSMAint8MACD 信號 SMA 週期
MACDDivergenceBarsint3MACD 背離判斷 K 線數量
EMATrendPeriodLint200長週期 EMA (Long Period)
EMATrendFilterLModeBuyENUM_EMA_FILTER_MODEEMA_FILTER_DISABLED買單的長週期 EMA 過濾模式
EMATrendFilterLForBuydouble0買單 EMA(L) 距離緩衝 (+/- points)
EMATrendFilterLModeSellENUM_EMA_FILTER_MODEEMA_FILTER_DISABLED賣單的長週期 EMA 過濾模式
EMATrendFilterLForSelldouble0賣單 EMA(L) 距離緩衝 (+/- points)
EMATrendPeriodSint50短週期 EMA (Short Period)
EMATrendFilterSModeBuyENUM_EMA_FILTER_MODEEMA_FILTER_DISABLED買單的短週期 EMA 過濾模式
EMATrendFilterSForBuydouble0買單 EMA(S) 距離緩衝 (+/- points)
EMATrendFilterSModeSellENUM_EMA_FILTER_MODEEMA_FILTER_DISABLED賣單的短週期 EMA 過濾模式
EMATrendFilterSForSelldouble0賣單 EMA(S) 距離緩衝 (+/- points)
TrailingPointsint8000移動止損啟動點數 (獲利達此點數開始追蹤)
StopTrailingPointsint1000移動止損回撤距離 (利潤回吐多少點出場)
SlippageInPointsint30?

How to Install It

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

The Gold Reaper

by naming1086
1 stars

The Gold Reaper is a multi-strategy expert advisor for MetaTrader 4 and 5. It trades gold pairs using breakout and reversal entries based on fractals and ATR. Trades enter when spread and frequency conditions are met and exit via trailing stops or time-based rules. The EA includes NFP filters to pause during economic e

MT4MT5 Trading robot BreakoutTrend followingScalping High risk
Updated 6 weeks ago None stated GitHub repository of The Gold Reaper

Prem Gold Advisor

by Premkumar238
13 stars

Prem Gold Advisor is an automated MetaTrader 5 expert advisor specialized for XAUUSD (Gold) trading on the five-minute timeframe. It initiates trades using breakout levels placed at specific distances from the candle open. The strategy features a progressive scale-in mechanism, adding new orders as the price hits succe

MT5 Trading robot BreakoutTrend followingMartingale High risk
Updated 2 months ago None stated GitHub repository of Prem Gold Advisor

Bakome Bitcoin EA

by BAKOME-Hub
1 stars

Bakome Bitcoin EA is a trend-following robot optimized for trading BTCUSD on the MetaTrader 5 platform. It generates trade signals using an exponential moving average crossover combined with price breakouts on the H1 timeframe. The system features a grid recovery module that adds positions with a lot multiplier when tr

MT5 Trading robot Trend followingBreakoutGrid High risk
Updated 5 months ago MIT GitHub repository of Bakome Bitcoin EA
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

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

Grafik Tabranij

by surgabot
2 stars

Grafik Tabranij is a multi-strategy Expert Advisor for MetaTrader 5 and MetaTrader 4 designed for automated trading. It features five distinct operational modes: breakout, grid averaging, zigzag bounce, signal-based entry, and an A* pathfinding algorithm for optimal price levels. The EA utilizes martingale lot-size sca

MT4MT5 Trading robot BreakoutGridMartingale High risk
Updated 5 weeks ago MIT GitHub repository of Grafik Tabranij

More crypto EAs

Related on ForexR

Need a Broker for MT4?

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

Compare MT4 brokers