smoke_test
Detect runtime failures in Expert Advisors by compiling, deploying, and running a 1-day backtest, then scanning the journal for errors.
Instructions
One-call health check for an EA: compile, deploy, run a 1-day headless backtest, scan the journal.
Catches problems that compile cleanly but fail at runtime (OnInit errors, array out of range,
divide by zero). ok is true only if every stage passes; stage tells where it stopped.
Overwrites the EA of the same name in Experts/. Takes 1-10 minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Length of the backtest window in days (ends 2 days ago). | |
| period | No | Timeframe code such as M15, H1, D1. | M15 |
| source | Yes | Absolute Windows path to the .mq4/.mq5/.mqh source file. | |
| symbol | No | Symbol name as shown in Market Watch, e.g. EURUSD. | EURUSD |
| expert_name | No | Name to use in Expert= of the generated ini; defaults to the binary's stem. | |
| timeout_sec | No | Give up after this many seconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||