Trading robot · MT5

EA SMC

by syncoolz

This Expert Advisor for MetaTrader 5 automates trading based on Smart Money Concepts.

GitHub stars4
Forks1
Last update1 year ago3 Jul 2025
LicenceNone stated

Overview

EA SMC identifies market structure shifts such as Break of Structure and Change of Character to find entry points. The robot supports various setups including Fair Value Gap retests, Swing Failure Patterns, and breakout entries. Risk controls feature multiple money management modes, including fixed lot sizes, percentage-based risk, and lot scaling relative to account balance. Trade exits are managed through fixed take profit targets, risk-to-reward ratios, or trailing stops.

Details

Author

syncoolz on GitHub

Type

Trading robot

Markets

Any symbol

Timeframes

Any timeframe

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

NameTypeDefaultDescription
InpExitModeENUM_EXIT_MODEEXIT_MODE_TRAILING_STOP
InpRiskToRewardRatiodouble0.8
InpFixedTPPointsint1400
InpMagicNumberlong0
InpEaCommentstringEA_SMC_v23.1
InpMaxOpenTradesint2
InpStopLossBufferPointsint50
InpSlippagePointsulong10
InpMinStopLossPointsint1450
InpMaxStopLossPointsint1450เพดาน SL สูงสุดที่รับได้ (0 = ปิดใช้งาน)
InpMoneyManagementModeENUM_MONEY_MANAGEMENT_MODEMM_MODE_LOT_PER_BALANCE
InpFixedLotSizedouble1Lot ที่จะใช้ถ้าเลือก MM_MODE_FIXED_LOT
Show all 40 inputs
NameTypeDefaultDescription
InpRiskPercentPerTradedouble4% ความเสี่ยงต่อเทรด (ใช้กับ MM_MODE_RISK_PERCENT)
InpBaseLotForScalingdouble1ขนาด Lot พื้นฐาน
InpBalanceStepForScalingdouble10000.0ทุกๆ Balance ที่เพิ่มขึ้นเท่านี้ จะเพิ่ม Lot เท่ากับ InpBaseLotForScaling
InpMaxTradesPerZoneint1
InpUseContinuationRetestboolfalse+++ ADD: ท่า Retest ตามเทรนด์ (BOS)
InpUseReversalRetestboolfalse+++ ADD: ท่า Retest หลังเกิด CHoCH
InpUseBreakoutEntrybooltrueเปิด/ปิด ท่า Breakout
InpUseScaleInOnBreakoutbooltrue
InpBreakout_RetestNumberint11 = เทรดรีเทสครั้งแรก, 2 = ครั้งที่สอง, 0 = ปิดใช้งาน
InpUseFakeoutEntryboolfalseเปิด/ปิด ท่า Fakeout (ที่ Major Swing)
InpUseMajorSwingMomentumEntryboolfalseเปิด/ปิด ท่าเข้าตาม Major Swing
InpUseSfpEntryboolfalseเปิด/ปิด ท่า SFP (ที่ Minor Swing)
InpUseSweepToPoiEntryboolfalseเปิด/ปิด ท่า Sweep into POIut)
InpUseFreshFvgRetestEntrybooltrue
InpUseStoForEntryConfirmationbooltrue
InpUseSimpleReclaimPatternbooltrue
InpUse2BarConfirmationbooltrueเปิด/ปิด รูปแบบยืนยัน 2 แท่งเทียน
InpUse3BarConfirmationbooltrueเปิด/ปิด รูปแบบยืนยัน 3 แท่งเทียน
InpRetest_ConfirmationModeENUM_RETEST_CONFIRMATION_MODECONF_MODE_DISP_AND_STRUCT
InpRetest_MinAtrMoveAwaydouble1.0
InpSwingLengthint14Length for fractal swing detection
InpAtrNoiseFilterdouble0.25Swing must be larger than 0.25 * ATR to be considered
InpMaxBarsForBOSint15Max bars to look ahead for a BOS after a takeout
InpBosConfirmationTypeENUM_BOS_TYPEBOS_BY_CLOSE
InpPdArrayLookbackSwingsint15
InpMinFvgAtrMultdouble0.3
InpMinZoneQualityENUM_ZONE_QUALITY_LEVELZQ_STANDARDตั้งค่าเริ่มต้นให้ "ผ่อนคลาย" ที่สุด
InpUsePartialTPboolfalse

How to Install It

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

EA Scalper XAUUSD

by francomascareloai
266 stars

EA Scalper XAUUSD is an automated trading research project for MetaTrader 5 focused on gold. It employs a multifaceted entry strategy using Smart Money Concepts like order blocks and liquidity sweeps, alongside moving average crossovers and Fibonacci zones. The EA includes a self-learning module designed to adapt to di

MT5 Trading robot SMC / ICT / price actionIndicator crossoverScalping High risk
Updated 4 months ago Custom licence GitHub repository of EA Scalper XAUUSD

Gold Trader EA

by mehdi-jahani
146 stars

Gold Trader EA is a multi-strategy expert advisor designed for trading XAUUSD on the MetaTrader 5 platform. It employs a fusion engine that combines up to 14 different technical analysis methods, including candlestick patterns, chart patterns, price action, and institutional levels. The system requires a user-defined n

MT5 Trading robot Multi-strategyTrend followingIndicator crossover
Updated 1 year ago None stated GitHub repository of Gold Trader EA
87 stars

This MetaTrader 5 expert advisor implements Smart Money Concepts including Order Blocks, Fair Value Gaps, and Break of Structure entries. It features an automated mode that combines multiple strategies alongside market regime detection using ADX or Efficiency Ratio to ensure trading in trending conditions. Risk managem

MT5 Trading robot SMC / ICT / price actionTrend followingMulti-strategy
Updated 3 months ago Apache-2.0 GitHub repository of SMC Unified Expert Advisor

My Trading Bot

by carlosrod723
79 stars

This MetaTrader 5 expert advisor implements a multi-strategy framework based on Smart Money Concepts. It identifies fractal-based liquidity sweeps, order blocks, and Fibonacci zones across multiple timeframes, typically using H4 for trend direction and M15 for execution. The EA includes an optional machine learning fil

MT5 Trading robot SMC / ICT / price actionAI / machine learningMulti-strategy
Updated 11 months ago MIT GitHub repository of My Trading Bot

Fvg Gold EA

by foeed
44 stars

Fvg Gold EA is an automated trading robot for MetaTrader 5 designed specifically for the gold market. It utilizes institutional trading concepts by identifying high-probability Fair Value Gaps with Order Block confluence. The system employs a scoring algorithm to evaluate trade quality based on displacement, gap size,

MT5 Trading robot SMC / ICT / price actionIndicator crossover
Updated 7 weeks ago MIT GitHub repository of Fvg Gold EA

ICT Gold EA

by darula-hpp
36 stars

This automated trading system for MetaTrader 5 focuses on spot Gold using Inner Circle Trader methodology. It identifies entries through order block detection, market structure analysis, and weekly opening price levels. The strategy is further filtered by dual moving averages and specific trading sessions, primarily Lo

MT5 Trading robot SMC / ICT / price actionIndicator crossoverTrend following
Updated 1 year ago None stated GitHub repository of ICT Gold EA

More SMC / ICT EAs

Related on ForexR

Need a Broker for MT5?

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

Compare MT5 brokers