Field reference / patterns
pattern_bear_flag_state
Bear flag: a short, steep decline (the pole) that breaks below the prior range, then a tight consolidation, sideways or slightly up, that retraces only part of it. immature = a valid flag whose consolidation is still young; mature = the consolidation has run long enough and volume fits: heavy on the pole, lighter in the consolidation; invalidated = a mature flag failed within the last 3 bars, by a close above the consolidation's high or by retracing too much of the pole; not_detected otherwise. Uses the row's own bars, daily or weekly. Null with too little history.
| Level | Per stock, ETF and coin, one value per date |
| Type | string (band) |
| Can be null | No, whenever its section has data |
| Category | patterns |
| Returned by | /v1/history, /v1/search |
Values
One of these, in order:
not_detected immature mature invalidated
Change markers
Every row also says how long this band has held its value and what it was before. Ask for these by name like any field. See Diff.
| Field | Type | What it says |
|---|---|---|
pattern_bear_flag_state_stability | string (band) | How settled pattern_bear_flag_state is: volatile when it changed often in the last 30 days (12 weeks on weekly rows); otherwise fresh (just changed), holding, or established (unchanged for a long time). |
pattern_bear_flag_state_periods | integer | Daily or weekly rows, including this one, that pattern_bear_flag_state has held its current value; 1 means it changed on this row. |
pattern_bear_flag_state_flips_recent_count | integer | How many times pattern_bear_flag_state changed value in the last 30 days (12 weeks on weekly rows). |
pattern_bear_flag_state_flips_lookback | string | The window pattern_bear_flag_state_flips_recent_count covers: 30d on daily rows, 12w on weekly. |
pattern_bear_flag_state_prev | string (band) | The value pattern_bear_flag_state had before it changed, on the row where it changed (when _periods = 1); null otherwise. |
Getting it
Its history for one ticker:
Stocks matching it today:
Related fields
Every field, with its type and values, is also in /v1/schema/fields.