mirror of
https://github.com/RomySaputraSihananda/ares.git
synced 2026-07-27 18:47:53 +00:00
a78dd26cf0
Vendor domain and mt5-client from hermes into crates/ so the repo can be pushed to GitHub without external path dependencies. Also includes all bug fixes from autonomous session: - impulse SL fix (SL at impulse candle low/high, not zone edge) - pip_size fix for 5-decimal pairs - fill_ok premature cancellation fix - TIMEOUT_CANDLES, MIN_FVG_PIPS, MIN_SL_PIPS env vars Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
40 lines
2.6 KiB
Bash
40 lines
2.6 KiB
Bash
# MT5 bridge URL (required)
|
|
MT5_BASE_URL=http://localhost:8080
|
|
|
|
# ── Symbol & Timeframe ──────────────────────────────────────────────────────
|
|
# XAUUSDm is the best-tested pair (PF=1.33, +314% over 7m)
|
|
# EURUSDm and GBPUSDm show negative edge — not recommended
|
|
SYMBOL=XAUUSDm
|
|
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
|
|
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
|
|
MIN_RR=1.5 # minimum reward:risk ratio
|
|
TIMEOUT_CANDLES=0 # force close after N candles (0 = disabled)
|
|
|
|
# ── 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 ─────────────────────────────────────────────────────────
|
|
# Critical: without EMA filter strategy loses money on XAU
|
|
# EMA20 is recommended (EMA10 overfits, EMA50 reduces returns significantly)
|
|
EMA_PERIOD=20
|