# mt5-quant configuration — generated by scripts/setup.sh
# Re-run scripts/setup.sh to regenerate, or edit manually.

mt5:
  # Path to Wine / CrossOver wine64 binary
  wine_executable: "/Applications/MetaTrader 5.app/Contents/SharedSupport/wine/bin/wine64"

  # MT5 installation directory (inside the Wine prefix)
  terminal_dir: "/Users/masdevid/Library/Application Support/net.metaquotes.wine.metatrader5/drive_c/Program Files/MetaTrader 5"

  # Where MT5 looks for Expert Advisor binaries (.ex5)
  experts_dir: "/Users/masdevid/Library/Application Support/net.metaquotes.wine.metatrader5/drive_c/Program Files/MetaTrader 5/MQL5/Experts"

  # Where MT5 reads/writes .set files during backtests
  tester_profiles_dir: "/Users/masdevid/Library/Application Support/net.metaquotes.wine.metatrader5/drive_c/Program Files/MetaTrader 5/MQL5/Profiles/Tester"

  # MT5 tester cache directory (cleared before each run)
  tester_cache_dir: "/Users/masdevid/Library/Application Support/net.metaquotes.wine.metatrader5/drive_c/Program Files/MetaTrader 5/Tester"

display:
  # headless: true  → Xvfb (Linux only)
  # headless: false → GUI visible
  # headless: auto  → macOS=GUI, Linux with $DISPLAY=GUI, Linux without=Xvfb
  mode: auto

  # Virtual display for Xvfb (Linux headless only)
  xvfb_display: ":99"
  xvfb_screen: "1024x768x16"

backtest:
  symbol: "XAUUSD"
  deposit: 10000
  currency: "USD"
  leverage: 500
  model: 0       # 0=every tick (required for martingale/grid EAs)
  timeframe: "M5"
  timeout: 900   # seconds per backtest run

optimization:
  log_dir: "/tmp"
  min_agents: 1

reports:
  output_dir: "./reports"
  keep_last: 20
