Trading robot · MT5

AW Full Recovery EA

by wongthep

This MetaTrader 5 expert advisor functions as a grid-based recovery system that can operate independently or manage trades from external EAs via magic number filtering.

High risk

GitHub stars2
Forks3
Last update3 months ago7 Jun 2026
LicenceNone stated

Overview

AW Full Recovery EA initiates entries using Bollinger Bands and RSI indicators, then manages drawdown through a recovery grid matrix. The system employs dynamic ATR-based spacing and lot scaling to navigate losing streaks. Risk management features include a hedging trigger, partial closing logic to reduce exposure, and an emergency liquidation threshold based on margin levels. It includes a comprehensive on-screen dashboard for monitoring basket profit and grid telemetry.

Details

Author

wongthep on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Grid, Martingale, Hedging, Mean reversion

Markets

Any symbol

Timeframes

Any timeframe

Risk profile

  • Uses martingale lot scaling: losses can grow fast
  • Opens a grid of orders: exposure builds up in a trend
  • Holds opposite positions at once
  • Trades without a fixed stop loss

Input parameters

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

NameTypeDefaultDescription
SECTION_1string====== 1. ENTRY & UTILITY MODE ======
InpEntryModeENUM_ENTRY_MODEMODE_STANDALONEโหมดการทำงานของ EA
InpTargetMagicNumberlong123456Magic Number ของ EA เป้าหมาย สำหรับ UTILITY_AUTO
InpBB_Periodint20Bollinger Bands Period
InpBB_Deviationdouble2.0Bollinger Bands Deviation
InpInitialRSI_Periodint14RSI Period (ไม้แรก)
InpInitialRSI_OSdouble30.0RSI Oversold (ไม้แรก)
InpInitialRSI_OBdouble70.0RSI Overbought (ไม้แรก)
InpFirstLotSizedouble0.01ขนาดลอตเริ่มต้นของไม้ที่ 1
InpInitialTPPointsint200Take Profit ไม้แรก (Points)
SECTION_2string====== 2. RECOVERY GRID MATRIX ======
InpPartToCloseRatiodouble4.0ตัวหารแบ่งปิดไม้ลบ (Lot ไม้ลบ / ค่านี้)
Show all 40 inputs
NameTypeDefaultDescription
InpVolumeMultiplierdouble1.5ตัวคูณลอตไม้แก้แรก (PartToClose * ค่านี้)
InpLotMultiplierdouble1.2ตัวคูณลอตสำหรับไม้กริดถัดไป
InpTPPointsPartialint300เป้าหมายระยะกำไรสำหรับการปิดรายครั้ง (Points)
SECTION_3string====== 3. DYNAMIC STEP ======
InpATRTimeframeENUM_TIMEFRAMESPERIOD_D1ไทม์เฟรมคำนวณความผันผวน
InpATRLengthint14ATR Period
InpATRDividerdouble3.0ตัวหาร ATR หาค่าก้าวเริ่มต้น (Base Step)
InpStepMultiplierdouble1.2ตัวคูณขยายระยะห่างตารางในไม้ลึก
SECTION_4string====== 4. TREND FILTER MODULE ======
InpFilterModeENUM_FILTER_MODEFILTER_RSIโหมดกรองเทรนด์สำหรับไม้แก้เกม
InpFilterTimeframeENUM_TIMEFRAMESPERIOD_H1ไทม์เฟรมตรวจสอบแนวโน้มหลัก
InpRecoveryRSI_Periint14RSI Period (ไม้แก้)
InpRecoveryRSI_OSdouble25.0RSI Oversold สำหรับฝั่ง Buy แก้เกม
InpRecoveryRSI_OBdouble75.0RSI Overbought สำหรับฝั่ง Sell แก้เกม
SECTION_5string====== 5. SAFETY & MAX LEVELS ======
InpMaxRecoveryLevelsint6จำนวนไม้แก้เกมสูงสุด (Max Levels)
InpHedgeTriggerPointsint0จุดที่ primary ต้องติดลบก่อน hedge (0 = ใช้ค่า ATR Step แรก)
InpMaxLevelActENUM_MAX_LEVEL_ACTIONACTION_FREEZE_GRIDสิ่งที่ต้องทำเมื่อไม้ครบโควตา
InpEmergencyMarginLeveldouble30.0ตัดขาดทุนทั้งหมดเมื่อ Margin Level ต่ำกว่า (%)
InpBasketTPMoneydouble10.0กำไรรวมของพอร์ตรวมค่า Swap/Comm แล้วล้างพอร์ต ($)
InpMaxSpreadPointsint50Spread สูงสุดที่ยอมให้เปิดออเดอร์ (Points)
SECTION_6string====== 6. DASHBOARD ======
InpShowDashboardbooltrueแสดง Dashboard บนกราฟ
InpDashboardRefreshSecondsint1ความถี่อัปเดต Dashboard (วินาที)
InpDashboardFontSizeint11ขนาดตัวอักษร Dashboard
InpDashboardTitleFontSizeint14ขนาดหัวข้อ Dashboard
InpDashboardXint10ระยะ Dashboard จากซ้าย
InpDashboardYint18ระยะ Dashboard จากบน

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone wongthep/AW-Full-Recovery-EA-v1.10- 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.
  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

Advanced Grid Trading

by jepli-1225
2 stars

Advanced Grid Trading is a MetaTrader 5 expert advisor that manages a complex grid strategy across four configurable layers. It places stop and limit orders at fixed intervals, employing either fixed or geometric lot scaling for increased grid depth. Trade management includes a shared profit pool used to close losing p

MT5 Trading robot GridMartingaleMean reversion High risk
Updated 6 months ago None stated GitHub repository of Advanced Grid Trading
2 stars

This MetaTrader 5 expert advisor implements a multi-layered grid strategy that manages up to three independent grids simultaneously on a single instrument. It uses the Relative Strength Index (RSI) across different timeframes to determine the initial trade direction for each grid. The EA employs martingale lot scaling,

MT5 Trading robot GridMartingaleMean reversion High risk
Updated 2 years ago None stated GitHub repository of Springfield 3 Grids
1 stars

This Expert Advisor for MetaTrader 5 focuses on gold trading through a combination of mean-reversion signals and a grid management system. It uses multi-timeframe filters, including exponential moving averages and ADX on the H1 timeframe, to identify trend direction while executing entries on M15 based on RSI and Bolli

MT5 Trading robot Mean reversionGridMartingale High risk

Icarus

by fraggli
7 stars

Icarus is an automated trading system for MetaTrader 4 that employs a grid strategy with Martingale lot scaling. It utilizes Bollinger Bands and the Stochastic Oscillator to identify entry points, offering a conjunctive mode for filtered execution. The EA manages risk through maximum position limits, equity warning thr

MT4 Trading robot GridMartingaleMean reversion High risk
Updated 4 years ago GPL-3.0 GitHub repository of Icarus

North East Way

by Yogurt-Peng
3 stars

This MetaTrader 4 robot implements a multi-currency mean-reversion strategy, targeting price returns to the average on correlated forex pairs. It manages trades using a grid system with a significant martingale multiplier to scale lot sizes. The expert advisor allows for simultaneous trading on multiple symbols to dive

MT4 Trading robot Mean reversionGridMartingale High risk
Updated 1 year ago None stated GitHub repository of North East Way

Blessing Three

by duanwujie
1 stars

This MetaTrader 4 expert advisor is an automated grid trading system that utilizes a variety of indicators including Moving Averages, CCI, Bollinger Bands, and MACD for trade entries. It employs a martingale-style lot multiplier to manage position sizing across sequential grid levels. The software includes risk control

MT4 Trading robot GridMartingaleIndicator crossover High risk
Updated 9 years ago None stated GitHub repository of Blessing Three

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