# in_downtrend

Stacked downtrend across short, medium, and long horizons.

A boolean signal (flag) 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.

Definition: `close < sma_50 AND sma_50 < sma_200`

- Group: Technicals
- Category: Trend & direction
- Type: state
- Update cadence: 1 min · mkt hrs
- Intervals: 1m/1h/1d
- Universe: all tickers
- History: full · since 2004
- Firing: continuous
- Typical role: regime filter · gating other trend signals

## 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 where it fires now

```bash
curl "https://api.tickerbot.io/v2/signals/in_downtrend" \
  -H "Authorization: Bearer YOUR_KEY"
```

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

```json
{
 "as_of": "2026-08-18T00:24:13.700Z",
 "signal": "in_downtrend",
 "condition": null,
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "AA",
   "name": "Alcoa Corporation",
   "value": true
  },
  {
   "ticker": "AAA",
   "name": "Alternative Access First Priority CLO Bond ETF",
   "value": true
  }
 ]
}
```

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

```bash
curl "https://api.tickerbot.io/v2/signals/in_downtrend?asof=2026-05-20" \
  -H "Authorization: Bearer YOUR_KEY"
```

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

```json
{
 "as_of": "2026-05-20",
 "signal": "in_downtrend",
 "condition": null,
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "A",
   "name": "Agilent Technologies Inc.",
   "value": true
  },
  {
   "ticker": "AAME",
   "name": "Atlantic American Corp",
   "value": true
  }
 ]
}
```

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

```bash
curl -X POST "https://api.tickerbot.io/v2/signals/in_downtrend/subscribe" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{"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, filtered on this signal

```bash
curl -G "https://api.tickerbot.io/v2/scan" \
  --data-urlencode "q=in_downtrend" \
  -H "Authorization: Bearer YOUR_KEY"
```

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

```json
{
 "as_of": "2026-08-18T00:24:14.171Z",
 "query": {
  "q": "in_downtrend",
  "limit": 2,
  "order": "day_change_pct",
  "dir": "desc",
  "fields": [],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "XOSWW",
   "name": "Xos, Inc. Warrants",
   "asset_class": "stocks",
   "asset_type": "WARRANT",
   "price": 0.0022,
   "day_change_pct": 1.4111,
   "gap_pct": null,
   "relative_volume": 0.7894,
   "market_cap": null
  },
  {
   "ticker": "MRNOW",
   "name": "Murano Global Investments PLC Warrants",
   "asset_class": "stocks",
   "asset_type": "WARRANT",
   "price": 0.0098,
   "day_change_pct": 0.3556,
   "gap_pct": 0.014,
   "relative_volume": null,
   "market_cap": null
  }
 ]
}
```

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

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

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

```json
{
 "as_of": "2026-05-20",
 "query": {
  "q": "in_downtrend",
  "asof": "2026-05-20",
  "interval": "auto",
  "limit": 2,
  "order": "day_change_pct",
  "dir": "desc",
  "fields": [],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "SLXN",
   "name": "Silexion Therapeutics Corp Ordinary Shares",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 5.298,
   "day_change_pct": 96.95167286245353,
   "gap_pct": 134.1635687732342,
   "relative_volume": 29.19710936261394,
   "market_cap": 600082
  },
  {
   "ticker": "PHGE",
   "name": "BiomX Inc.",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 0.5969,
   "day_change_pct": 59.59893048128342,
   "gap_pct": 40.668449197860966,
   "relative_volume": 28.474896873060327,
   "market_cap": 18742393
  }
 ]
}
```

#### 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": "in_downtrend", "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,in_downtrend" \
  -H "Authorization: Bearer YOUR_KEY"
```

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

```json
{
 "as_of": "2026-08-18T00:24:16.625Z",
 "interval": "1d",
 "tickers": [
  "AAPL",
  "MSFT"
 ],
 "columns": [
  "close",
  "in_downtrend"
 ],
 "count": 6,
 "series": {
  "AAPL": [
   {
    "t": "2026-08-12",
    "close": 302.25,
    "in_downtrend": false
   },
   {
    "t": "2026-08-13",
    "close": 305.26,
    "in_downtrend": false
   },
   {
    "t": "2026-08-14",
    "close": 305.93,
    "in_downtrend": false
   }
  ],
  "MSFT": [
   {
    "t": "2026-08-12",
    "close": 492.43,
    "in_downtrend": false
   },
   {
    "t": "2026-08-13",
    "close": 496.88,
    "in_downtrend": false
   },
   {
    "t": "2026-08-14",
    "close": 495.4,
    "in_downtrend": false
   }
  ]
 }
}
```

### Use events — `/v2/events`

The flag as a timeline: each edge as a point event, and the spans it stayed true. (https://tickerbot.io/docs/endpoints/events.md)

#### Firings — every enter edge as a point event

```bash
curl -G "https://api.tickerbot.io/v2/events" \
  -d "kind=signal" -d "signal=in_downtrend" -d "transition=enter" -d "since=2026-01-10" \
  -H "Authorization: Bearer YOUR_KEY"
```

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

```json
{
 "as_of": "2026-08-18T00:24:16.764Z",
 "query": {
  "kind": "signal",
  "tickers": null,
  "universe": null,
  "since": "2026-01-10T00:00:00.000Z",
  "until": null,
  "limit": 2,
  "signal": "in_downtrend",
  "transition": "enter"
 },
 "count": 2,
 "results": [
  {
   "ticker": "YALA",
   "ts": "2026-08-17T23:59:36.668Z",
   "kind": "signal",
   "payload": {
    "signal": "in_downtrend",
    "transition": "enter",
    "price": 5.376,
    "definition_version": 6
   }
  },
  {
   "ticker": "BSV",
   "ts": "2026-08-17T23:58:35.199Z",
   "kind": "signal",
   "payload": {
    "signal": "in_downtrend",
    "transition": "enter",
    "price": 77.611,
    "definition_version": 6
   }
  }
 ]
}
```

#### Spans — when it was true for one ticker (YALA)

```bash
curl "https://api.tickerbot.io/v2/signals/in_downtrend/YALA/events" \
  -H "Authorization: Bearer YOUR_KEY"
```

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

```json
{
 "as_of": "2026-08-18T00:24:16.941Z",
 "ticker": "YALA",
 "signal": "in_downtrend",
 "count": 2,
 "events": [
  {
   "started_at": "2026-08-17T23:59:36.668Z",
   "ended_at": null,
   "start_price": 5.376,
   "end_price": null,
   "definition_version": 6
  },
  {
   "started_at": "2026-08-17T22:50:51.539Z",
   "ended_at": "2026-08-17T23:15:41.276Z",
   "start_price": 5.369,
   "end_price": 5.392,
   "definition_version": 6
  }
 ]
}
```

## Related signals (Trend & direction)

- [adx_14](https://tickerbot.io/docs/signals/adx_14.md)
- [in_uptrend](https://tickerbot.io/docs/signals/in_uptrend.md)
- [macd_above_signal](https://tickerbot.io/docs/signals/macd_above_signal.md)
- [macd_below_signal](https://tickerbot.io/docs/signals/macd_below_signal.md)
- [macd_histogram](https://tickerbot.io/docs/signals/macd_histogram.md)
- [macd_line](https://tickerbot.io/docs/signals/macd_line.md)
- [macd_signal](https://tickerbot.io/docs/signals/macd_signal.md)
- [minus_di](https://tickerbot.io/docs/signals/minus_di.md)
- [plus_di](https://tickerbot.io/docs/signals/plus_di.md)
- [trend_long](https://tickerbot.io/docs/signals/trend_long.md)
- [trend_medium](https://tickerbot.io/docs/signals/trend_medium.md)
- [trend_reversal_bearish_today](https://tickerbot.io/docs/signals/trend_reversal_bearish_today.md)
- [trend_reversal_bullish_today](https://tickerbot.io/docs/signals/trend_reversal_bullish_today.md)
- [trend_short](https://tickerbot.io/docs/signals/trend_short.md)

---

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