# Technical Indicators Calculator (SMA, EMA, RSI, MACD, Bollinger, ATR, OBV, Stochastic)

> Technical Indicators Calculator (SMA, EMA, RSI, MACD, Bollinger, ATR, OBV, Stochastic) is a paid API for AI agents from heb-utils-x402.hebutils-api.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Computes common technical analysis indicators (SMA, EMA, RSI, MACD, Bollinger Bands, ATR, OBV, Stochastic) from a user-supplied price series

## Facts

- Endpoint: GET https://heb-utils-x402.hebutils-api.workers.dev/indicators?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/technical-indicators-calculator-sma-ema-rsi-macd-bollinger-atr-obv-d7d9685c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3fODUG7wUNu8yoR7Az4re

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability technical-indicators-calculator-sma-ema-rsi-macd-bollinger-atr-obv-d7d9685c
```

Example prompt: Calculate the RSI, SMA, EMA, MACD, and Bollinger Bands for this closing price series (oldest first): 100,102,101,105,107,106,110,112,108,115,118,117,120,122,119,121,125,127,124,130 — and also include ATR using these highs: 103,104,103,107,109,108,112,115,111,117,120,119,122,124,122,123,127,129,126,132 and lows: 99,100,100,103,105,104,108,110,106,113,116,115,118,120,117,119,123,125,122,128

## When to prefer this

Choose this endpoint when you need to compute standard technical analysis indicators from raw price data you already have, without connecting to a live market data feed. It is ideal for batch post-processing of historical OHLC/volume series, back-testing pipelines, or any situation where you want pure numeric indicator output with no trading signals or opinions attached. It covers the most common indicators (SMA, EMA, RSI, MACD, Bollinger, ATR, OBV, Stochastic) in a single call, making it preferable to calling multiple specialized endpoints.

## Known failure modes

- Missing 'closes' query parameter — returns error requiring it
- Fewer than 2 close values supplied — returns validation error
- Mismatched lengths between closes, highs, lows, or volumes — returns error
- Non-numeric values in price series — returns parse error
- More than 250 values supplied — returns limit exceeded error
- Payment not completed — returns 402 requiring USDC payment on Base

## How this service works

Technical indicator numbers (SMA, EMA, RSI, MACD, Bollinger, ATR, OBV, Stochastic) from price series you supply (comma-separated, oldest first, up to 250 values). Numbers only, with documented conventions. Not advice, no signals.

## Output

A JSON object containing the computed values for each requested indicator based on the supplied price series. Numeric outputs follow documented conventions — e.g. RSI as 0-100, MACD as line/signal/histogram, Bollinger as upper/middle/lower bands, ATR as absolute range, OBV as cumulative volume, Stochastic as %K/%D. No trading signals or advice are included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "closes"
     ],
     "properties": {
      "lows": {
       "type": "string",
       "description": "optional, same length"
      },
      "highs": {
       "type": "string",
       "description": "optional, same length (for ATR, Stochastic)"
      },
      "closes": {
       "type": "string",
       "description": "comma-separated closes, oldest first, 2-250 values"
      },
      "volumes": {
       "type": "string",
       "description": "optional, same length (for OBV)"
      },
      "rsi_period": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/technical-indicators-calculator-sma-ema-rsi-macd-bollinger-atr-obv-d7d9685c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from heb-utils-x402.hebutils-api.workers.dev](https://www.zero.xyz/host/heb-utils-x402.hebutils-api.workers.dev/llms.txt)
