Xauusd Event Driven monitors rapid price movements or stretches to identify entry points, utilizing an exponential moving average for signal smoothing. The strategy focuses on momentum by entering trades after identifying specific price peaks and ignition moves. It incorporates comprehensive risk management, including fixed stop losses, take profits, a news filter for USD events, and a streak-based safety switch to halt trading after consecutive losses. The system includes a timeout feature to automatically exit positions held longer than two minutes.
Event-driven entry based on price stretch and peaks
Integrated news filter for USD economic events
Time-based filters and maximum position hold duration
EMA-smoothed price analysis for noise reduction
Streak-based stop logic to limit consecutive losses
Read from XAUUSD_EventDriven_v75_test.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpLot
double
0.10
ロット数(0.10=最小単位)
InpDeviation
ulong
30
許容スリッページ(points)
InpSilenceWindowSec
int
3
起点判定の参?
InpIgnitionMinMove
double
0.10
起点とみなす最小動き?
InpCooldownSec
int
1
1サイクル終了後の休止秒数(v75: 3→1 sim最適)
InpUseTimeFilter
bool
true
時間帯フィルターON/OFF
InpAvoidStartHour
int
22
取引禁止 開始時刻(サーバー時間)
InpAvoidStartMin
int
30
取引禁止 開始分
InpAvoidEndHour
int
0
取引禁止 終了時刻
InpAvoidEndMin
int
30
取引禁止 終了分
InpReversalMin
double
0.10
反発と認定する戻り?
InpUseEMASmooth
bool
true
EMA平滑化 ON/OFF
Show all 39 inputs
Name
Type
Default
Description
InpEMAPeriodSec
int
15
EMA期間(秒、振動吸収用)(v75: 5→15 ノイズ強吸収)
InpMinAgeSec
int
2
peak1完成後の最小秒数(v75: 5→2 sim最適)
InpMaxAgeSec
int
60
peak1完成後の最大秒数
InpMinStretch
double
0.20
起点→peak1の最小?
InpMaxStretch
double
5.00
起点→peak1の最大?
InpTPDistance
double
0.80
利確距離(v75test: 0.50→0.80 利大損小)
InpSLBuffer
double
0.50
損切バッファ(v75test: 0.80→0.50 利大損小)
InpTPFromPeak1
bool
true
TP基準をpeak1にする ON/OFF
InpUseEarlyTP
bool
false
早期利確 ON/OFF(v75test: ON→OFF TP=0.80 を活かすため)
InpEarlyTPMFE
double
0.50
MFEがこの値に達したら即決済(v75test: ON時の閾値、現在OFF)
InpTimeoutSec
int
120
保有最大秒数
InpUseMAEEarlyExit
bool
false
MAE早期撤退 ON/OFF(v75: ON→OFF sim最適)
InpMAEExitSec
int
30
経過秒数(この秒数経過後に判定)
InpMAEExitThreshold
double
-0.50
MAE閾値(これより悪化したら撤退)
InpMaxSpreadPoints
int
100
許容最大スプレッド(points)
InpUseTrailing
bool
false
トレーリングSL ON/OFF(v75test: ON→OFF 早期確定回避)
InpTrailTrigger
double
0.20
含み益$0.20で建値SLに移動(現在OFF)
InpTrailLock
double
0.10
含み益$0.40で建値+$0.10にSL(現在OFF)
InpUseStreakStop
bool
false
連敗ストップ ON/OFF
InpStreakLossLimit
int
3
連続N回負けで停止
InpStreakStopMin
int
30
停止時間(分)
InpUseNewsFilter
bool
true
経済指標フィルター ON/OFF
InpNewsAvoidBeforeMin
int
5
指標発表の何分前から停止
InpNewsAvoidAfterMin
int
15
指標発表の何分後まで停止
InpNewsHighOnly
bool
true
HIGH指標のみ対象
InpNewsCurrencies
string
USD
対象通貨
InpWriteCSV
bool
true
CSV出力 ON/OFF
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone lightup777777/xauusd-ea-analysis 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.
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
Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT
This Expert Advisor for MetaTrader 5 is specifically designed for XAUUSD trading on the M1 timeframe. It utilizes a hybrid strategy combining classic technical indicators like RSI, Moving Averages, and ATR with an OpenAI API integration for signal validation. The robot features an on-chart dashboard for telemetry and i
Scalpflip EA is an automated scalping robot for MetaTrader 5 that utilizes a multi-layered technical analysis approach. It offers three entry modes: trend-following, mean-reversion, and a smart mode that selects the strategy based on current market conditions. The system filters trades using the Relative Strength Index
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
FG Scalping Pro is an automated trading system for MetaTrader 5 that utilizes a multi-indicator approach to identify entry points. It combines exponential moving average crossovers with RSI momentum and Bollinger Band volatility filters to execute trades. The EA manages risk through dynamic ATR-based stop loss and take