---
title: williams_stops (Williams Stops)
description: Trend indicator. Standard math aligned with TradingView Pine Script.
---

# `williams_stops` — Williams Stops

> Category: **Trend** · Composite

::: tip For Skill / AI Agent integrations
When you `POST /api/indicators?explain=true`, the response carries a `knowledge` block with this indicator's interpretation rubric. **Pass it to your LLM together with the numeric data** — don't make the LLM guess thresholds from memory. Full rubric lives at the [Chinese page](https://docs.mobiusquant.ai/zh/indicators/williams_stops) (summary_focus / signals / caveats).
:::

This is a trend indicator.
Math is aligned with TradingView Pine Script.

## Parameters

| Parameter | Type | Default |
|------|------|--------|
| `left_range` | int | `2` |
| `right_range` | int | `2` |
| `buffer_pct` | float | `0` |

## Output columns

| Column |
|------|
| `long_stop` |
| `short_stop` |
| `trend_state` |

## Example call

```bash
curl -X POST -H "Authorization: Bearer mq_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "exchange": "binance",
    "market":   "perp",
    "symbol":   "BTCUSDT",
    "interval": "5m",
    "limit":    100,
    "calc":     [{"name": "williams_stops", "params": {"left_range": 2, "right_range": 2, "buffer_pct": 0}}]
  }' \
  https://api.mobiusquant.ai/api/indicators
```

## Full interpretation guide

The full description, signal interpretation, caveats and analysis focus points are
documented in Chinese at:

[williams_stops (中文详情)](https://docs.mobiusquant.ai/zh/indicators/williams_stops)

## Related indicators

[alligator](./alligator) · [alma](./alma) · [ema](./ema) · [hma](./hma) · [lsma](./lsma) · [mcginley_dynamic](./mcginley_dynamic) · [mobius_trend](./mobius_trend) · [parabolic_sar](./parabolic_sar)

---

_Auto-generated by `scripts/sync-indicators.mjs` from `engine_indicator_knowledge` + engine runtime introspect. Manual edits will be overwritten on next sync._
