{
  "slug": "macd-calculator",
  "name": "gizza-ai/macd-calculator",
  "version": "0.1.0",
  "title": "MACD Calculator (MACD Line, Signal & Histogram) — gizza.ai",
  "description": "Compute the MACD indicator from any price series — MACD line, signal line and histogram, with configurable 12/26/9 EMA periods. Free, private, in-browser.",
  "tags": [
    "macd",
    "macd calculator",
    "moving average convergence divergence",
    "signal line",
    "macd histogram",
    "ema",
    "technical analysis",
    "momentum indicator",
    "trading indicator",
    "stock prices"
  ],
  "category": "math",
  "urls": {
    "page": "https://gizza.ai/tools/macd-calculator/",
    "markdown": "https://gizza.ai/tools/macd-calculator/index.md",
    "descriptor": "https://gizza.ai/tools/macd-calculator/tool.json",
    "deep_link_example": "https://gizza.ai/tools/macd-calculator/?prices=22.27%2C%2022.19%2C%2022.08%2C%2022.17%2C%2022.18%2C%2022.13%2C%2022.23%2C%2022.43%2C%2022.24%2C%2022.29&fast=12&slow=26&signal=9"
  },
  "cli": "gizza tool macd-calculator \"22.27, 22.19, 22.08, 22.17, 22.18, 22.13, 22.23, 22.43, 22.24, 22.29\"",
  "tool": {
    "description": "Compute the MACD (Moving Average Convergence Divergence) momentum indicator over a numeric price series (separated by spaces, commas, semicolons, or newlines, oldest first). Uses a fast EMA (default period 12) and a slow EMA (default 26): the MACD line = fastEMA - slowEMA, the signal line = EMA (default 9) of the MACD line, and the histogram = MACD line - signal line. The fast/slow/signal periods are configurable (each 1-10000; fast must be smaller than slow, and slow must not exceed the number of data points). Each EMA is seeded with the simple mean of its first window. Returns the count, the periods used, the fast and slow EMA, the MACD/signal/histogram value at each point (null during the warm-up before enough points are available), and the latest MACD, signal and histogram values. Runs locally — the data never leaves the device.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "fast": {
          "default": 12,
          "description": "Fast EMA period (default 12). Must be smaller than the slow period.",
          "maximum": 10000,
          "minimum": 1,
          "type": "integer"
        },
        "prices": {
          "description": "The numeric price series, separated by spaces, commas, semicolons, or newlines (oldest first).",
          "type": "string"
        },
        "signal": {
          "default": 9,
          "description": "Signal EMA period — the EMA of the MACD line (default 9).",
          "maximum": 10000,
          "minimum": 1,
          "type": "integer"
        },
        "slow": {
          "default": 26,
          "description": "Slow EMA period (default 26). Must not exceed the number of data points.",
          "maximum": 10000,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "prices"
      ],
      "type": "object"
    }
  }
}