# pct_from_sma_50

Percent distance from the 50-day SMA. Negative when price is below the average.

A numeric signal column on the Tickerbot computed state table (20,798+ ticker rows) — computed by the platform, queryable by bare name across the API. Values are NULL on rows the signal doesn't apply to.

- Group: Technicals
- Category: Moving averages & VWAP
- Type: numeric
- Unit: %
- Update cadence: post-close daily
- Intervals: 1m/1h/1d
- Universe: all tickers
- History: full · since 2003
- Nullable: yes

## Query it

Every applicable form factor, grouped by endpoint family. Response payloads are real captures, sampled 2026-08-18 and trimmed; your run's values and dates will differ.

### Use signals — `/v2/signals/{signal}`

One signal across the market: who matches now, who matched then, and a push when someone starts. (https://tickerbot.io/docs/endpoints/signals.md)

#### Live — every ticker with pct_from_sma_50 above a cutoff

```bash
curl -G "https://api.tickerbot.io/v2/signals/pct_from_sma_50" \
  --data-urlencode "condition=> 0.5568" \
  -H "Authorization: Bearer YOUR_KEY"
```

Response (sampled 2026-08-18, trimmed):

```json
{
 "as_of": "2026-08-18T00:25:07.253Z",
 "signal": "pct_from_sma_50",
 "condition": "> 0.5568",
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "SAC.WS",
   "name": "Safeguard Acquisition Corp. Warrants, each whole warrant exercisable for one Class A ordinary share at an exercise price of $11.50 per share",
   "value": 41642.5242
  },
  {
   "ticker": "GLEDr",
   "name": "GalaxyEdge Acquisition Corporation Rights to receive one-fourth (1/4) of one ordinary share",
   "value": 131.4079
  }
 ]
}
```

#### As-of — the same read at a past date

```bash
curl -G "https://api.tickerbot.io/v2/signals/pct_from_sma_50" \
  --data-urlencode "condition=> 0.5568" \
  -d "asof=2026-05-20" \
  -H "Authorization: Bearer YOUR_KEY"
```

Response (sampled 2026-08-18, trimmed):

```json
{
 "as_of": "2026-05-20",
 "signal": "pct_from_sma_50",
 "condition": "> 0.5568",
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "TCGL",
   "name": "TechCreate Group Ltd.",
   "value": 804.7079836101934
  },
  {
   "ticker": "AMPGR",
   "name": "Amplitech Group, Inc. Series A Right",
   "value": 501.1421701232346
  }
 ]
}
```

#### Subscribe — webhook when a ticker starts matching

```bash
curl -X POST "https://api.tickerbot.io/v2/signals/pct_from_sma_50/subscribe" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{"condition": "> 0.5568", "target_url": "https://example.com/hooks/tickerbot"}'
```

Returns 201 with the created webhook — the same shape as GET /v2/webhooks/{id}, plus a one-time signing_secret for HMAC verification.

### Use scan — `/v2/scan`

The whole market through a WHERE clause — this signal composed freely with any other column. (https://tickerbot.io/docs/endpoints/scan.md)

#### Live — the whole market, ranked by this column

```bash
curl -G "https://api.tickerbot.io/v2/scan" \
  --data-urlencode "q=pct_from_sma_50 IS NOT NULL" \
  -d "order=pct_from_sma_50" -d "columns=pct_from_sma_50" \
  -H "Authorization: Bearer YOUR_KEY"
```

Response (sampled 2026-08-18, trimmed):

```json
{
 "as_of": "2026-08-18T00:25:08.711Z",
 "query": {
  "q": "pct_from_sma_50 IS NOT NULL",
  "limit": 2,
  "order": "pct_from_sma_50",
  "dir": "desc",
  "fields": [
   "pct_from_sma_50"
  ],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "SAC.WS",
   "name": "Safeguard Acquisition Corp. Warrants, each whole warrant exercisable for one Class A ordinary share at an exercise price of $11.50 per share",
   "asset_class": "stocks",
   "asset_type": "WARRANT",
   "price": 22150.1905,
   "day_change_pct": 36922.138,
   "gap_pct": null,
   "relative_volume": null,
   "market_cap": null,
   "pct_from_sma_50": 41642.5242
  },
  {
   "ticker": "GLEDr",
   "name": "GalaxyEdge Acquisition Corporation Rights to receive one-fourth (1/4) of one ordinary share",
   "asset_class": "stocks",
   "asset_type": "RIGHT",
   "price": 25.7401,
   "day_change_pct": null,
   "gap_pct": null,
   "relative_volume": null,
   "market_cap": null,
   "pct_from_sma_50": 131.4079
  }
 ]
}
```

#### As-of — the same scan at a past date

```bash
curl -G "https://api.tickerbot.io/v2/scan" \
  --data-urlencode "q=pct_from_sma_50 IS NOT NULL" \
  -d "order=pct_from_sma_50" -d "columns=pct_from_sma_50" \
  -d "asof=2026-05-20" \
  -H "Authorization: Bearer YOUR_KEY"
```

Response (sampled 2026-08-18, trimmed):

```json
{
 "as_of": "2026-05-20",
 "query": {
  "q": "pct_from_sma_50 IS NOT NULL",
  "asof": "2026-05-20",
  "interval": "auto",
  "limit": 2,
  "order": "pct_from_sma_50",
  "dir": "desc",
  "fields": [
   "pct_from_sma_50"
  ],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "TCGL",
   "name": "TechCreate Group Ltd.",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 155,
   "day_change_pct": 0,
   "gap_pct": 0,
   "relative_volume": null,
   "market_cap": null,
   "pct_from_sma_50": 804.7079836101934
  },
  {
   "ticker": "AMPGR",
   "name": "Amplitech Group, Inc. Series A Right",
   "asset_class": "stocks",
   "asset_type": "RIGHT",
   "price": 0.56,
   "day_change_pct": 12.00000000000001,
   "gap_pct": 39.99999999999999,
   "relative_volume": 9.272067488643737,
   "market_cap": null,
   "pct_from_sma_50": 501.1421701232346
  }
 ]
}
```

#### Subscribe — webhook on a market-wide condition

```bash
curl -X POST "https://api.tickerbot.io/v2/scan/subscribe" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{"q": "pct_from_sma_50 > 0.5568", "target_url": "https://example.com/hooks/tickerbot"}'
```

Returns 201 with the created webhook object; deliveries carry the tickers matching the condition at each evaluation.

### Use series — `/v2/series`

Its history over time, on one aligned grid. (https://tickerbot.io/docs/endpoints/series.md)

#### History — the column on an aligned time grid

```bash
curl "https://api.tickerbot.io/v2/series?tickers=AAPL,MSFT&columns=close,pct_from_sma_50" \
  -H "Authorization: Bearer YOUR_KEY"
```

Response (sampled 2026-08-18, trimmed):

```json
{
 "as_of": "2026-08-18T00:25:11.937Z",
 "interval": "1d",
 "tickers": [
  "AAPL",
  "MSFT"
 ],
 "columns": [
  "close",
  "pct_from_sma_50"
 ],
 "count": 6,
 "series": {
  "AAPL": [
   {
    "t": "2026-08-12",
    "close": 302.25,
    "pct_from_sma_50": -2.3524025034647034
   },
   {
    "t": "2026-08-13",
    "close": 305.26,
    "pct_from_sma_50": -1.3014989399154897
   },
   {
    "t": "2026-08-14",
    "close": 305.93,
    "pct_from_sma_50": -1.0593792500092691
   }
  ],
  "MSFT": [
   {
    "t": "2026-08-12",
    "close": 492.43,
    "pct_from_sma_50": 20.029028227065318
   },
   {
    "t": "2026-08-13",
    "close": 496.88,
    "pct_from_sma_50": 20.778348275268833
   },
   {
    "t": "2026-08-14",
    "close": 495.4,
    "pct_from_sma_50": 19.96358272175566
   }
  ]
 }
}
```

## Related signals (Moving averages & VWAP)

- [above_sma_10](https://tickerbot.io/docs/signals/above_sma_10.md)
- [above_sma_20](https://tickerbot.io/docs/signals/above_sma_20.md)
- [above_sma_200](https://tickerbot.io/docs/signals/above_sma_200.md)
- [above_sma_50](https://tickerbot.io/docs/signals/above_sma_50.md)
- [above_vwap](https://tickerbot.io/docs/signals/above_vwap.md)
- [above_vwap_minute](https://tickerbot.io/docs/signals/above_vwap_minute.md)
- [day_vwap](https://tickerbot.io/docs/signals/day_vwap.md)
- [death_cross](https://tickerbot.io/docs/signals/death_cross.md)
- [death_regime](https://tickerbot.io/docs/signals/death_regime.md)
- [ema_12](https://tickerbot.io/docs/signals/ema_12.md)
- [ema_21](https://tickerbot.io/docs/signals/ema_21.md)
- [ema_26](https://tickerbot.io/docs/signals/ema_26.md)
- [ema_9](https://tickerbot.io/docs/signals/ema_9.md)
- [golden_cross](https://tickerbot.io/docs/signals/golden_cross.md)
- [golden_regime](https://tickerbot.io/docs/signals/golden_regime.md)

---

Full catalog: https://tickerbot.io/docs/signals.md · Schema: https://tickerbot.io/docs/schema.md · Interactive: https://tickerbot.io/explore?signal=pct_from_sma_50 · HTML: https://tickerbot.io/docs/signals/pct_from_sma_50/
