Run a real DCA backtest on historical data
run_dca_backtestSimulates dollar-cost averaging into one asset using dcamethod.com's own engine and historical price data. Returns total invested, final value, profit, CAGR, average buy price, best/worst month and purchase count. Dates outside the available range are clamped to it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | USD invested per purchase, e.g. 100 | |
| symbol | Yes | Asset symbol or name, e.g. 'BTC', 'AAPL', 'gold' | |
| end_date | No | Optional ISO date (YYYY-MM-DD); defaults to latest available | |
| frequency | Yes | Purchase schedule | |
| start_date | No | Optional ISO date (YYYY-MM-DD); defaults to earliest available |