Trading robot · MT5

MT5 Sniper EA

by rithsila

This expert advisor for MetaTrader 5 implements a Smart Money Concepts strategy.

GitHub stars27
Forks10
Last update11 months ago29 Sep 2025
LicenceNone stated

Overview

MT5 Sniper EA identifies institutional trade setups using Order Blocks, Fair Value Gaps, Break of Structure, and liquidity sweeps. The robot performs multi-timeframe analysis across five periods to determine market bias and ensure trend alignment. Risk management features include percentage-based lot sizing, a minimum risk-reward ratio, and automated trade protection via trailing stops and partial profit taking. It also visualizes detected patterns on the chart and includes session filters for major trading hubs.

Details

Author

rithsila on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

SMC / ICT / price action, Trend following

Markets

Forex, Gold

Timeframes

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

NameTypeDefaultDescription
RiskPercentdouble1.0Risk percentage per trade
MinRRdouble2.0Minimum risk-reward ratio
UseTimeFilterboolfalseEnable session filtering
AsiaEndstring16:00Asia session end (Cambodia Time GMT+7)
LondonStartstring15:00London session start (Cambodia Time GMT+7)
LondonEndstring23:59London session end (Cambodia Time GMT+7)
NYStartstring20:00New York session start (Cambodia Time GMT+7)
NYEndstring23:59New York session end (Cambodia Time GMT+7)
MinSLint10Minimum stop loss in pips
MaxSlippagedouble2.0Maximum slippage in pips
MaxPositionsint10Maximum total positions
MaxPositionsPerSymbolint3Maximum positions per symbol
Show all 40 inputs
NameTypeDefaultDescription
MinFVGSizedouble3.0Minimum FVG size in pips
MinSweepDistancedouble3.0Minimum sweep distance in pips (reduced from 5.0)
BOSConfirmationCandlesint3BOS confirmation within candles
SwingLookbackint5Swing high/low lookback period (reduced from 10)
OBStrengthFilterdouble0.5Order Block strength filter (0-1)
RequireMultiTFConfirmationbooltrueRequire multi-timeframe confirmation
MinConfluenceCountint3Minimum confluence criteria required (3/4 instead of 4/4)
FibonacciModeENUM_FIBONACCI_MODEFIBONACCI_AS_FILTERFibonacci integration mode
FibSwingLookbackint20Fibonacci swing detection lookback
FibMinSwingSizedouble10.0Minimum swing size in pips for Fibonacci
UseFib236booltrueUse 23.6% Fibonacci level
UseFib382booltrueUse 38.2% Fibonacci level
UseFib500booltrueUse 50.0% Fibonacci level
UseFib618booltrueUse 61.8% Fibonacci level
UseFib786boolfalseUse 78.6% Fibonacci level
FibConfluenceThresholddouble5.0Fibonacci confluence threshold in pips
FibValidityPeriodint50Fibonacci level validity period in candles
BiasHistoryPeriodsint10Number of periods to track bias history
BiasChangeThresholddouble20.0Threshold for detecting bias change
EnableBiasChangeDetectionboolfalseEnable bias change detection
EnableMajorLevelsFilterbooltrueEnable major levels filtering
MajorLevelStrengthdouble0.7Major level strength filter (0-1)
MajorLevelsLookbackint50Lookback periods for major levels detection
ShowFVGbooltrueShow Fair Value Gaps
ShowBOSbooltrueShow Break of Structure
ShowSweepsbooltrueShow Liquidity Sweeps
ShowTradeLevelsbooltrueShow Entry/SL/TP levels
Symbol2stringGBPUSDSymbol 2

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone rithsila/MT5-EA-Sniper-Strategy 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

EA Scalper XAUUSD

by francomascareloai
236 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 3 months ago Custom licence GitHub repository of EA Scalper XAUUSD

Gold Trader EA

by mehdi-jahani
141 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
84 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 2 months ago Apache-2.0 GitHub repository of SMC Unified Expert Advisor

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 11 months ago None stated GitHub repository of ICT Gold EA

Prop Firm EA Fleet

by cgemise971
20 stars

Prop Firm EA Fleet is a collection of MetaTrader 5 robots designed for passing prop firm evaluations and managing funded accounts. The suite utilizes various strategies including market structure analysis, session range breakouts for London and New York sessions, and high-frequency scalping. It features strict risk man

MT5 Trading robot SMC / ICT / price actionBreakoutScalping High risk
Updated 9 months ago None stated GitHub repository of Prop Firm EA Fleet

Fimathe EA

by yolisses
12 stars

Fimathe EA is a MetaTrader 5 robot designed to automate the Fimathe trading technique. It replaces manual channel drawing by analyzing a user-defined range of historical candles to determine reference channels and neutral zones. The system identifies price partitions and uses the median distance to set entry levels. Fo

MT5 Trading robot BreakoutTrend followingSMC / ICT / price action
Updated 5 years ago None stated GitHub repository of Fimathe EA

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