Stock Average Calculator
calculate_average_costStock Average Calculator with a chart, the same math as the web page. What did your shares cost on average? Bought the same stock more than once? Type each buy. You get your average cost for one share. It adds up what you paid for every buy and divides by your total shares. It also shows what one more buy would do. It does not say whether to buy more. People ask for it as "stock average calculator", "average down calculator" or "how to calculate average stock price".
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "calculate_average_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| p1 | No | Price per share, buy 1. US dollars. Default: 40. | |
| p2 | No | Price per share, buy 2. US dollars. Default: 52. | |
| p3 | No | Price per share, buy 3. US dollars. Default: 34. | |
| s1 | No | Shares bought, buy 1. Default: 20. | |
| s2 | No | Shares bought, buy 2. Default: 10. | |
| s3 | No | Shares bought, buy 3. Default: 30. | |
| now | No | Price per share now. US dollars. Shows your profit or loss. Default: 30. | |
| target | No | Average you want to reach. US dollars. Shares to buy at the price now. Default: 36. |