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.
Three-stage partial profit taking with fixed RR ratios
Structural and ATR-based dynamic stop loss modes
Comprehensive session filtering and overnight exit logic
Read from PrecisionSniperEA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
__EA_SET__
string
====== [ EA 交易帳戶管理 ] ======
InpLots
double
0.1
預設開倉手數 (Fixed Lots)
InpUseRiskSize
bool
false
啟用動?
InpRiskPercent
double
1.0
每筆交易風險比例 (帳戶餘額 %)
InpMagicNumber
int
909090
EA 專屬特徵碼 (Magic Number)
InpComment
string
PrecSniperEA
訂單注釋
InpMaxSpread
int
30
最大容許價差 (Points)
InpPartialExit
bool
true
啟用分批止盈出場 (1/3 模式)
InpTradeOnFirstBar
bool
false
掛載後第一根新K是否?
__IND_SET__
string
====== [ PrecisionSniper 核心參數 ] ======
InpIndName
string
PrecisionSniper
指標名稱 (對應的 EX5 檔名)
Preset
ENUM_PRESET
PRESET_DEFAULT
策略預設模板 (Preset)
Show all 40 inputs
Name
Type
Default
Description
HTF
ENUM_TIMEFRAMES
PERIOD_CURRENT
HTF 大週期過濾 (PERIOD_CURRENT = 關閉)
C_EmaFast
int
9
[Custom] EMA 快線週期
C_EmaSlow
int
21
[Custom] EMA ?
C_EmaTrend
int
55
[Custom] EMA 趨勢過濾週期
C_RSI
int
13
[Custom] RSI 週期
C_ATR
int
14
[Custom] ATR 週期
C_MinScore
int
5
[Custom] 最低?
C_SLMult
double
1.5
[Custom] ATR 止損倍數
__RISK_SET__
string
====== [ 策略風險與出場管理 ] ======
TP1_RR
double
1.0
TP1 風險回報比 (Risk:Reward)
TP2_RR
double
2.0
TP2 風險回報比 (Risk:Reward)
TP3_RR
double
3.0
TP3 風險回報比 (Risk:Reward)
SLMult
double
1.5
?
CooldownBars
int
5
信號最小冷卻棒數 (Bars)
UseTrail
bool
true
啟用移動止損保本
SLType
ENUM_SL_TYPE
SL_STRUCTURE
止損計算方式
SwingLB
int
10
結構止損回溯棒數
InpUseMaxHoldingBars
bool
false
啟用最大持倉K棒限制
InpMaxHoldingBars
int
48
最大持倉K棒數 (依當前週期)
InpUseSessionFilter
bool
false
啟用新倉交易時段過濾
InpSessionStartHour
int
7
?
InpSessionEndHour
int
22
?
InpUseNoOvernightExit
bool
false
啟用隔夜風險控制
InpNoNewTradeAfterHour
int
22
每日此小時後不開新倉 (伺服器時間)
InpForceExitHour
int
23
每日此小時後強制平倉 (伺服器時間)
InpUseFridayExit
bool
false
啟用週五提前收倉
InpFridayNoNewTradeAfterHour
int
20
週五此小時後不開新倉
InpFridayForceExitHour
int
21
週五此小時後強制平倉
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone pengfuchao/mql5-algo-trading from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
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.
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
MT5CollectionBreakoutIndicator crossoverTrend following
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
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
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
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
MT5CollectionIndicator crossoverMean reversionTrend following
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