dca_backtest
Dollar-cost-averaging backtest using installed monthly closes, not live quotes. Asset ticker, start/end months YYYY-MM, initial deposit in USD, monthly in USD per purchase, frequency in months (1, 3 or 12), buying fee in percent, optional benchmark and total/price return basis. Initial deposit and first recurring purchase occur at the selected start month-end. Omitted dates use calculator defaults clamped to coverage. Returns data metadata and the free calc-dca PNG. Returns results, conditions, assumptions, an editable link, share page and PNG. No account access or order execution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End month, YYYY-MM. Must be within the installed data snapshot. | 2026-09 |
| asset | No | Asset ticker. Available historical start dates vary by asset. | QQQ |
| start | No | Start month, YYYY-MM. | 2016-10 |
| buyFee | No | Buying fee as a percentage, e.g. 0.1 means 0.1%. | |
| initial | No | Initial deposit in dollars. | |
| monthly | No | Contribution in dollars per chosen frequency (DCA), or per month (compound interest). | |
| benchmark | No | Optional benchmark asset. | none |
| frequency | No | Contribution interval in months: 1, 3 or 12. | |
| returnBasis | No | total reinvests distributions; price excludes distributions. | total |
| include_image | No | Also inline a PNG no wider than 1000 pixels. Image URL is always returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| metrics | Yes | ||
| results | Yes | ||
| edit_url | Yes | ||
| image_url | Yes | ||
| share_url | Yes | ||
| calculator | Yes | ||
| conditions | Yes | ||
| disclaimer | Yes | ||
| assumptions | Yes |