2026-06-09 04:01:40 +07:00
|
|
|
# MT5 bridge URL (required)
|
|
|
|
|
MT5_BASE_URL=http://localhost:8080
|
|
|
|
|
|
|
|
|
|
# ── Symbol & Timeframe ──────────────────────────────────────────────────────
|
2026-06-09 20:03:09 +07:00
|
|
|
# XAUUSDm is the best-tested pair (PF=1.33, +314% over 7m)
|
|
|
|
|
# EURUSDm and GBPUSDm show negative edge — not recommended
|
|
|
|
|
SYMBOL=XAUUSDm
|
2026-06-09 04:01:40 +07:00
|
|
|
TIMEFRAME=M5
|
|
|
|
|
|
|
|
|
|
# ── Backtest ─────────────────────────────────────────────────────────────────
|
|
|
|
|
BACKTEST_BALANCE=600
|
|
|
|
|
BACKTEST_CANDLES=50000
|
|
|
|
|
# DATE_FROM=2025-01-01
|
|
|
|
|
# DATE_TO=2025-12-31
|
|
|
|
|
|
|
|
|
|
# ── Risk ─────────────────────────────────────────────────────────────────────
|
|
|
|
|
RISK_PCT=0.01 # risk per trade (0.01 = 1%)
|
|
|
|
|
|
|
|
|
|
# ── Momentum Candle Thresholds ───────────────────────────────────────────────
|
|
|
|
|
BODY_PCT_MIN=0.6 # minimum body/range ratio (0.6 = 60% body)
|
|
|
|
|
CLOSE_PCT_MIN=0.8 # close must be in top/bottom 20% of range
|
|
|
|
|
|
|
|
|
|
# ── FVG Setup ────────────────────────────────────────────────────────────────
|
|
|
|
|
FVG_EXPIRY_CANDLES=10 # invalidate setup after N candles without fill
|
2026-06-09 20:03:09 +07:00
|
|
|
MIN_FVG_PIPS=1 # minimum FVG zone width in pips (rejects non-gap patterns)
|
|
|
|
|
MIN_SL_PIPS=5 # minimum SL distance in pips (rejects degenerate setups)
|
|
|
|
|
SL_BUFFER=0 # extra buffer beyond impulse candle extreme for SL
|
2026-06-09 04:01:40 +07:00
|
|
|
MIN_RR=1.5 # minimum reward:risk ratio
|
2026-06-09 20:03:09 +07:00
|
|
|
TIMEOUT_CANDLES=0 # force close after N candles (0 = disabled)
|
2026-06-09 04:01:40 +07:00
|
|
|
|
|
|
|
|
# ── Friction ─────────────────────────────────────────────────────────────────
|
|
|
|
|
COMMISSION_PER_LOT=7 # round-trip commission in USD
|
|
|
|
|
SLIPPAGE_POINTS=5 # extra SL slippage in MT5 points
|
|
|
|
|
SPREAD_OVERRIDE=0 # override spread (0 = Zero/Raw account)
|
|
|
|
|
|
|
|
|
|
# ── EMA Trend Filter ─────────────────────────────────────────────────────────
|
2026-06-09 20:03:09 +07:00
|
|
|
# Critical: without EMA filter strategy loses money on XAU
|
|
|
|
|
# EMA20 is recommended (EMA10 overfits, EMA50 reduces returns significantly)
|
|
|
|
|
EMA_PERIOD=20
|