cc3f0cbd46
MS_SimpleExport is a market-data exporter (M1/Tick -> zipped binary), driven headless via the official cTrader-console Docker image. This adds the bot and a hardened bash driver that runs the scrape on a Linux host, spawning one ephemeral console container per backtest window. - src/MS_SimpleExport: the cBot; csproj aligned to the repo's Linux template (AlgoPublish=false, cTrader.Automate 1.*-*). - scripts/export-runner.sh: hardened port of the Unraid driver -- retry-then-abort on transient failure, gap-aware resume, current-month end-date clamp, 3-way run classification with a per-run timeout, and ZIP validation before rename. - scripts/export.env.example: deployment config template (real values live in the gitignored runtime/export.env). - docs/export-runner-quirks.md: the multi-lens audit findings and hardening decisions. - .gitignore: ignore runtime/ (secrets, the placed .algo, the symbol list).
18 lines
792 B
Bash
18 lines
792 B
Bash
# Deployment config for scripts/export-runner.sh.
|
|
# Copy this to runtime/export.env (gitignored) and fill in. Never commit the real file.
|
|
|
|
# Output data directory on THIS host — the cBot writes here via the container mount.
|
|
# On this machine the Unraid "TickData" share is NFS-mounted at /mnt/tickdata, so the
|
|
# Pepperstone subfolder is:
|
|
HOST_DATA_PATH="/mnt/tickdata/Pepperstone"
|
|
|
|
# cTrader ID login (email) and trading account number the console uses to pull data.
|
|
CTID="you@example.com"
|
|
ACCOUNT="0000000"
|
|
|
|
# --- Optional overrides (the script derives sensible defaults from the repo) ---
|
|
# Must contain MS_SimpleExport.algo + password.txt:
|
|
#HOST_ROBOTS_PATH="$REPO_ROOT/runtime/Robots"
|
|
#SYMBOL_FILE="$REPO_ROOT/runtime/ScrapeSymbols.txt"
|
|
#IMAGE="ghcr.io/spotware/ctrader-console:latest"
|