2026-06-09 04:01:40 +07:00
|
|
|
|
# MT5 bridge URL (required)
|
|
|
|
|
|
MT5_BASE_URL=http://localhost:8080
|
|
|
|
|
|
|
|
|
|
|
|
# ── Symbol & Timeframe ──────────────────────────────────────────────────────
|
2026-06-10 13:31:53 +07:00
|
|
|
|
# Single pair:
|
2026-06-09 20:03:09 +07:00
|
|
|
|
SYMBOL=XAUUSDm
|
2026-06-10 13:31:53 +07:00
|
|
|
|
# Multi pair (comma-sep, overrides SYMBOL):
|
|
|
|
|
|
# SYMBOLS=XAUUSDm,XAGUSDm
|
2026-06-09 04:01:40 +07:00
|
|
|
|
TIMEFRAME=M5
|
|
|
|
|
|
|
|
|
|
|
|
# ── Risk ─────────────────────────────────────────────────────────────────────
|
2026-06-10 13:31:53 +07:00
|
|
|
|
RISK_PCT=0.01
|
2026-06-09 04:01:40 +07:00
|
|
|
|
|
|
|
|
|
|
# ── Momentum Candle Thresholds ───────────────────────────────────────────────
|
2026-06-10 13:31:53 +07:00
|
|
|
|
BODY_PCT_MIN=0.5
|
|
|
|
|
|
CLOSE_PCT_MIN=0.8
|
2026-06-09 04:01:40 +07:00
|
|
|
|
|
|
|
|
|
|
# ── FVG Setup ────────────────────────────────────────────────────────────────
|
2026-06-10 13:31:53 +07:00
|
|
|
|
FVG_EXPIRY_CANDLES=10
|
|
|
|
|
|
MIN_FVG_PIPS=1
|
|
|
|
|
|
MIN_SL_PIPS=5
|
|
|
|
|
|
SL_BUFFER=0
|
|
|
|
|
|
MIN_RR=1.5
|
|
|
|
|
|
# TIMEOUT_CANDLES=0
|
2026-06-09 04:01:40 +07:00
|
|
|
|
|
|
|
|
|
|
# ── Friction ─────────────────────────────────────────────────────────────────
|
2026-06-10 13:31:53 +07:00
|
|
|
|
COMMISSION_PER_LOT=7
|
|
|
|
|
|
SLIPPAGE_POINTS=2
|
|
|
|
|
|
SPREAD_OVERRIDE=0
|
2026-06-09 04:01:40 +07:00
|
|
|
|
|
|
|
|
|
|
# ── EMA Trend Filter ─────────────────────────────────────────────────────────
|
2026-06-12 02:18:22 +07:00
|
|
|
|
EMA_PERIOD=20
|
2026-06-10 13:31:53 +07:00
|
|
|
|
|
|
|
|
|
|
# ── Backtest ─────────────────────────────────────────────────────────────────
|
|
|
|
|
|
BACKTEST_BALANCE=600
|
|
|
|
|
|
BACKTEST_CANDLES=50000
|
|
|
|
|
|
# DATE_FROM=2025-01-01
|
|
|
|
|
|
# DATE_TO=2025-12-31
|
|
|
|
|
|
|
|
|
|
|
|
# ── Live Trading ─────────────────────────────────────────────────────────────
|
|
|
|
|
|
# LIVE=true
|
|
|
|
|
|
# LIVE_POLL_SECS=30
|
2026-06-11 01:28:45 +07:00
|
|
|
|
|
2026-06-12 00:48:45 +07:00
|
|
|
|
# ── Optimisations ─────────────────────────────────────────────────────────────
|
|
|
|
|
|
# Session filter: only take new entries when UTC hour in [FROM, TO).
|
|
|
|
|
|
# Leave empty to disable. Recommended: 8-13 (London) based on live data.
|
2026-06-12 01:59:54 +07:00
|
|
|
|
SESSION_FROM_UTC=8
|
|
|
|
|
|
SESSION_TO_UTC=13
|
2026-06-12 00:48:45 +07:00
|
|
|
|
|
|
|
|
|
|
# Breakeven: move SL to entry once price moves this multiple of SL-distance.
|
|
|
|
|
|
# 0 = disabled, 1.0 = move at 1:1 RR
|
|
|
|
|
|
# BREAKEVEN_AT_RR=1.0
|
|
|
|
|
|
|
|
|
|
|
|
# Daily loss limit: halt new entries if today's closed PnL < -(balance × pct).
|
|
|
|
|
|
# 0 = disabled, 0.03 = stop after -3% day
|
|
|
|
|
|
# DAILY_LOSS_LIMIT_PCT=0.03
|
|
|
|
|
|
|
2026-06-12 01:44:58 +07:00
|
|
|
|
# ATR quality filters (backtest + live): reject weak FVGs/impulses.
|
2026-06-12 01:59:54 +07:00
|
|
|
|
# Research (20k candles, XAUUSDm): with ATR filters alone PF improves vs no-filter baseline.
|
|
|
|
|
|
# Combined with EMA=10 + ENTRY_ZONE_PCT=0.75: PF 2.58, DD -1134 (vs PF 1.39, DD -3064 unfiltered).
|
|
|
|
|
|
MIN_FVG_ATR_RATIO=0.3 # FVG zone must be >= 0.3× ATR(14)
|
|
|
|
|
|
MIN_IMPULSE_ATR_RATIO=1.0 # Impulse candle body must be >= 1.0× ATR(14)
|
2026-06-12 01:44:58 +07:00
|
|
|
|
|
|
|
|
|
|
# Pre-fill invalidation: cancel pending FVG if price closes past impulse SL before fill.
|
2026-06-12 01:59:54 +07:00
|
|
|
|
PRE_FILL_INVALIDATE=true
|
2026-06-12 01:44:58 +07:00
|
|
|
|
|
2026-06-12 01:59:54 +07:00
|
|
|
|
# Entry zone within FVG: 0.0 = zone edge (aggressive), 0.5 = midpoint, 1.0 = far edge (conservative).
|
|
|
|
|
|
# Research: 0.75 gives best PF/DD balance (waits deeper into zone for better confirmation).
|
|
|
|
|
|
ENTRY_ZONE_PCT=0.75
|
2026-06-12 01:44:58 +07:00
|
|
|
|
|
2026-06-11 01:28:45 +07:00
|
|
|
|
# ── Telegram Notifications ───────────────────────────────────────────────────
|
2026-06-11 01:52:53 +07:00
|
|
|
|
# Get token from @BotFather, chat_id from @userinfobot or Telegram API.
|
|
|
|
|
|
# All three are optional — omit to disable notifications.
|
2026-06-11 01:28:45 +07:00
|
|
|
|
# TELEGRAM_BOT_TOKEN=123456:ABC-xxxx
|
|
|
|
|
|
# TELEGRAM_CHAT_ID=-100xxxxxxxxxx
|
2026-06-11 01:52:53 +07:00
|
|
|
|
# TELEGRAM_THREAD_ID=123 # forum topic/thread ID (optional)
|