# signals.ellva.ai SMA Indicator

> signals.ellva.ai SMA Indicator is a paid API for AI agents from signals.ellva.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns the Simple Moving Average (SMA) value, last close price, percent distance from average, and an above/below/at trend signal for a US-listed equity or ETF ticker.

## Facts

- Endpoint: GET https://signals.ellva.ai/v1/sma
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signals-ellva-ai-e3b424ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UqwQ2qtoxwXdVy2UnzOew

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 signals-ellva-ai-e3b424ca
```

Example prompt: What's the 50-day simple moving average for NVDA right now, and is the current price above or below it?

## When to prefer this

Use this endpoint when you need a fast, inexpensive per-call SMA computation with a built-in trend signal for US equities or ETFs. Ideal for AI trading agents, swing trading logic, and trend-following strategies where you need both the raw SMA value and a directional signal. Best when paired with the sibling RSI endpoint for combined momentum and trend analysis. Prefer this over building your own SMA computation when you want Alpaca Markets daily close data with configurable lookback periods (20/50/100/200 days) without managing raw OHLCV data pipelines.

## Known failure modes

- Invalid or unrecognized ticker symbol returns an error
- Period outside 2-200 range returns a validation error
- Market data unavailable for the ticker (e.g. delisted or OTC securities) may return an error
- API returns stale data if Alpaca Markets data feed is delayed
- Non-US-listed securities will not be found

## How this service works

Daily Simple Moving Average (SMA) trend indicator for US-listed equities and ETFs. Returns the current SMA value, the last daily close, percent distance of price from the average, and an above/below/at trend signal. Useful for trend analysis, support/resistance, MA crossovers, swing trading, and AI-driven trading agents. Configurable lookback (2-200 trading days, default 20; common 20/50/100/200). Data from Alpaca Markets.

## Output

Returns a JSON object containing: the computed SMA value (float), the lookback period used, the last daily close price, the number of closes used in the calculation, the percent distance of the close from the SMA, a trend signal string ('above', 'below', or 'at'), and a UTC timestamp of the calculation.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "period": 20,
   "ticker": "SPY"
  }
 }
}
```

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "ticker"
     ],
     "properties": {
      "period": {
       "type": "integer",
       "default": 20,
       "maximum": 200,
       "minimum": 2,
       "description": "SMA lookback period in trading days. Default 20 (~1 trading month). Common values: 20, 50, 100, 200. Range 2-200."
      },
      "ticker": {
       "type": "string",
       "description": "US-listed equity or ETF ticker symbol (e.g. SPY, QQQ, AAPL, NVDA, MSFT, TSLA, ARKK). Case-insensitive; alphanumeric, up to 10 characters."
      }
     }
    }
   },
   "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/signals-ellva-ai-e3b424ca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from signals.ellva.ai](https://www.zero.xyz/host/signals.ellva.ai/llms.txt)
