Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

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-calculator

Parameters

NameTypeRequiredDescription
dataInputtextareaYes—
dataFormatselectYes—
movingAverageTypestextNoComma-separated types. Available: SMA (Simple), EMA (Exponential), WMA (Weighted), TMA (Triangular)
periodnumberNoNumber of periods for moving average calculation (2-100)
smoothingFactornumberNo

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).
Browse toolsOpen tool

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools
Smoothing factor for EMA calculation (0.01-0.99). Calculated as 2/(period+1) if not specified
includeTrendAnalysischeckboxNoAnalyze trends and identify crossovers
includeSignalscheckboxNoGenerate buy/sell signals based on moving average crossovers
includeComparisoncheckboxNoShow original data alongside moving averages
decimalPlacesnumberNoNumber of decimal places in results (0-8)
dateFormatselectYes—

Response format

Text result

JSON
{
  "result": "Processed text content",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}

Questions or issues? Contact [email protected]