Collection · MT5

Precision Sniper EA Library

by pengfuchao

This collection for MetaTrader 5 provides a diverse range of algorithmic trading strategies and utility scripts.

GitHub stars1
Forks2
Last update2 months ago21 Jul 2026
LicenceNone stated

Overview

The featured Precision Sniper EA utilizes indicator resonance, combining EMA, RSI, and ATR for entry signals. It incorporates sophisticated risk controls including three-stage partial profit taking, structural or ATR-based stop losses, and trailing stops. The library also contains strategies for weekend gaps, turtle trading, and session breakouts. Users can manage risk through spread filters, specific trading windows, and maximum holding period limits to prevent overnight exposure.

Details

Author

pengfuchao on GitHub

Type

Collection

Platform

MetaTrader 5 (MQL5)

Strategy

Trend following, Breakout, Multi-strategy, Indicator crossover

Markets

Forex, Gold, Crypto

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.

Topics

auto-tradingexpert-advisormetatrader5mql5mt5trading-strategies

Input parameters

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

NameTypeDefaultDescription
__EA_SET__string====== [ EA 交易帳戶管理 ] ======
InpLotsdouble0.1預設開倉手數 (Fixed Lots)
InpUseRiskSizeboolfalse啟用動?
InpRiskPercentdouble1.0每筆交易風險比例 (帳戶餘額 %)
InpMagicNumberint909090EA 專屬特徵碼 (Magic Number)
InpCommentstringPrecSniperEA訂單注釋
InpMaxSpreadint30最大容許價差 (Points)
InpPartialExitbooltrue啟用分批止盈出場 (1/3 模式)
InpTradeOnFirstBarboolfalse掛載後第一根新K是否?
__IND_SET__string====== [ PrecisionSniper 核心參數 ] ======
InpIndNamestringPrecisionSniper指標名稱 (對應的 EX5 檔名)
PresetENUM_PRESETPRESET_DEFAULT策略預設模板 (Preset)
Show all 40 inputs
NameTypeDefaultDescription
HTFENUM_TIMEFRAMESPERIOD_CURRENTHTF 大週期過濾 (PERIOD_CURRENT = 關閉)
C_EmaFastint9[Custom] EMA 快線週期
C_EmaSlowint21[Custom] EMA ?
C_EmaTrendint55[Custom] EMA 趨勢過濾週期
C_RSIint13[Custom] RSI 週期
C_ATRint14[Custom] ATR 週期
C_MinScoreint5[Custom] 最低?
C_SLMultdouble1.5[Custom] ATR 止損倍數
__RISK_SET__string====== [ 策略風險與出場管理 ] ======
TP1_RRdouble1.0TP1 風險回報比 (Risk:Reward)
TP2_RRdouble2.0TP2 風險回報比 (Risk:Reward)
TP3_RRdouble3.0TP3 風險回報比 (Risk:Reward)
SLMultdouble1.5?
CooldownBarsint5信號最小冷卻棒數 (Bars)
UseTrailbooltrue啟用移動止損保本
SLTypeENUM_SL_TYPESL_STRUCTURE止損計算方式
SwingLBint10結構止損回溯棒數
InpUseMaxHoldingBarsboolfalse啟用最大持倉K棒限制
InpMaxHoldingBarsint48最大持倉K棒數 (依當前週期)
InpUseSessionFilterboolfalse啟用新倉交易時段過濾
InpSessionStartHourint7?
InpSessionEndHourint22?
InpUseNoOvernightExitboolfalse啟用隔夜風險控制
InpNoNewTradeAfterHourint22每日此小時後不開新倉 (伺服器時間)
InpForceExitHourint23每日此小時後強制平倉 (伺服器時間)
InpUseFridayExitboolfalse啟用週五提前收倉
InpFridayNoNewTradeAfterHourint20週五此小時後不開新倉
InpFridayForceExitHourint21週五此小時後強制平倉

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone pengfuchao/mql5-algo-trading 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

3 stars

This repository provides a diverse collection of MetaTrader 5 expert advisors and utility scripts for automated trading. The primary logic focuses on managing pending orders through dynamic distance adjustments, time-scheduled trade execution, and sophisticated trailing stops that operate via price ticks or millisecond

MT5 Collection BreakoutIndicator crossoverTrend following
Updated 2 years ago None stated GitHub repository of Cesreve MQL5 Collection
1 stars

This repository contains a collection of MetaTrader 5 expert advisors designed for a quantitative trading seminar by QRT Solutions. It includes multiple models such as US opening gap momentum, opening range breakouts, and SMA-based gold strategies. Each robot features professional risk management components including t

MT5 Collection Trend followingBreakoutIndicator crossover
1 stars

This MetaTrader 5 repository provides a collection of seventeen quantitative trading strategies designed for educational and research purposes. The primary expert advisor implements a US opening gap momentum strategy, utilizing ATR-based gap thresholds and Z-Score volatility regime detection to identify entry points. R

MT5 Collection BreakoutTrend followingIndicator crossover

This MetaTrader 5 repository provides a collection of expert advisors and visual dashboard tools centered on multi-timeframe technical analysis. It features strategies utilizing the Traders Dynamic Index, Exponential Moving Averages, and Commodity Channel Index indicators. The included tools range from trend-following

MT5 Collection Trend followingBreakoutIndicator crossover
140 stars

This repository provides a collection of Expert Advisors for MetaTrader 5 and Python trading scripts developed for an educational YouTube series. It features various technical indicator-based strategies, including MACD, Relative Strength Index, Stochastic, and Bollinger Bands. The included MQL5 files implement multi-ti

MT5 Collection Indicator crossoverMean reversionTrend following
Updated 3 years ago None stated GitHub repository of Kecoma Trading Collection
135 stars

This repository features a diverse collection of expert advisors and trading utilities for MetaTrader 4 and MetaTrader 5. It includes automated robots based on trendline analysis, session breakouts, and technical indicator crossovers using MACD, RSI, and Williams Percent Range. The library provides various tools for ri

MT4MT5 Collection Trend followingBreakoutGrid High risk
Updated 1 year ago None stated GitHub repository of Nkanven EA Collection

More collections

Need a broker for MT5?

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

Compare brokers