Finance
Moving Average Calculator
Calculate various types of moving averages (SMA, EMA, WMA, TMA) with trend analysis and trading signals
text· Text resultOpen tool
Quick start
Call this tool from your code in three languages.
cURL
curl -X POST 'https://api.elysiatools.com/en/api/tools/moving-average-calculator' \
-H 'Content-Type: application/json' \
-d '{"dataInput":"Enter your data...\n\nCSV format (with dates):\n2024-01-01,100\n2024-01-02,105\n2024-01-03,102\n\nOr numeric values only:\n100,105,102,98,110,115,108,112","dataFormat":"numeric","movingAverageTypes":"SMA","period":"10","smoothingFactor":"0.2","includeTrendAnalysis":true,"includeSignals":false,"includeComparison":true,"decimalPlaces":"4","dateFormat":"MM/DD/YYYY"}'API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
HTTP
POST https://api.elysiatools.com/en/api/tools/moving-average-calculatorParameters
| Name | Type | Required | Description |
|---|---|---|---|
| dataInput | textarea | Yes | — |
| dataFormat | select | Yes | — |
| movingAverageTypes | text | No | Comma-separated types. Available: SMA (Simple), EMA (Exponential), WMA (Weighted), TMA (Triangular) |
| period | number | No | Number of periods for moving average calculation (2-100) |
| smoothingFactor | number | No |
MCP integration
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Server configuration
Add this block to your MCP client configuration:
mcp.json
{
"mcpServers": {
"elysiatools-moving-average-calculator": {
"name": "moving-average-calculator",
"description": "Calculate various types of moving averages (SMA, EMA, WMA, TMA) with trend analysis and trading signals",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=moving-average-calculator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}List available tools
After connecting to the SSE endpoint, list the exposed tools:
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Call this tool
Invoke the tool by its id, passing arguments built from its parameters:
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "moving-average-calculator",
"arguments": {
"dataInput": "Enter your data...\n\nCSV format (with dates):\n2024-01-01,100\n2024-01-02,105\n2024-01-03,102\n\nOr numeric values only:\n100,105,102,98,110,115,108,112",
"dataFormat": "numeric",
"movingAverageTypes": "SMA",
"period": "10",
"smoothingFactor": "0.2",
"includeTrendAnalysis": true,
"includeSignals": false,
"includeComparison": true,
"decimalPlaces": "4",
"dateFormat": "MM/DD/YYYY"
}
}
}Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).