Stock Return and DCA Calculator
replay_past_investingStock return and dollar-cost averaging (DCA) calculator with an interactive chart. Shows what investing in a US stock or fund would have become, using real past prices, as regular deposits, a lump sum, or both. Use it for what-if-I-had-invested and DCA questions about a ticker such as AAPL or VOO, over the last 120 months or fewer. It covers the past only and gives no estimate of the future.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ticker": "<ticker>",
"amount": "<amount>",
"months_back": "<months_back>"
},
"name": "replay_past_investing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Dollars invested each time. Can be 0 if there is a starting amount. | |
| ticker | Yes | A US stock or fund ticker, such as AAPL or SPY. | |
| cadence | No | How often the amount goes in: day, week or month. Defaults to month. | month |
| months_back | Yes | How many months before the latest data to begin, from 1 to 120. | |
| starting_amount | No | Dollars invested once at the start. Defaults to 0. |