# Moving Average Crossover Calculator

> Moving Average Crossover Calculator is a paid API for AI agents from kihustle.tech, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Computes short and long moving average crossover signals from a price series to identify buy/sell signals

## Facts

- Endpoint: POST https://kihustle.tech/agents/api/v1/moving-average-crossover
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/moving-average-crossover-calculator-797535f5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rS2cFmsAMhW3RqnaHGvXh

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 moving-average-crossover-calculator-797535f5 -d '<json body>'
```

Example prompt: Calculate the moving average crossover for these closing prices [100, 102, 101, 105, 110, 108, 112, 115, 113, 118, 120, 122] using a short window of 3 and a long window of 7, and tell me if there's a bullish or bearish crossover signal.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call moving average crossover computation without setting up local technical analysis libraries. Best for agents that need quick trend signals on arbitrary price arrays with configurable window sizes, especially in automated trading or monitoring pipelines where per-call USDC micropayment cost ($0.002) is acceptable.

## Known failure modes

- Insufficient price data points relative to the long_window size causing computation failure
- Invalid input types (non-numeric prices, non-integer windows) returning a 422 error
- short_window larger than or equal to long_window producing undefined behavior
- Empty prices array resulting in a processing error
- Payment failure via x402 protocol blocking the request with a 402 response

## How this service works

Kostenlose Guides, Solo-Playbooks und Artikel zu KI, Automation und Side Hustles — für Menschen, die mit echten Systemen online Einkommen aufbauen wollen. Transparent finanziert über faire Affiliate-Links.

## Output

Returns a JSON object with a 'result' field indicating the crossover computation outcome and a 'status' field confirming success. The exact crossover signal details (e.g. bullish/bearish crossover points, MA values) are embedded in the result payload.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prices": {
   "type": "array",
   "items": {
    "type": "number"
   }
  },
  "long_window": {
   "type": "integer"
  },
  "short_window": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "processed",
  "status": "success"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/moving-average-crossover-calculator-797535f5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kihustle.tech](https://www.zero.xyz/host/kihustle.tech/llms.txt)
