History

Days since decline (BTC) — counter with a required definition

How many days since Bitcoin last fell by X %? mode from_ath (below the running all-time high), rolling_window (within lookback_days, incl. that day) or from_local_peak (below the most recent confirmed local high: highest close of 90 days, not exceeded for 14). Reset day = close at or below reference × (1 − threshold_pct/100); counter = calendar days since the last reset day; consecutive reset days form one episode. Prefix-invariant. Computed on the full daily history for every tier; reference.price is withheld before the deliverable-close boundary. BTC only. MCP: arena_get_days_since_decline. A counter, not a signal.

get/api/v1/days-since-decline

Request

  • Base URL: https://tradingstrategies.work
  • URL: https://tradingstrategies.work/api/v1/days-since-decline
  • Auth: HTTP bearer

Query parameters

mode'from_ath' | 'rolling_window' | 'from_local_peak' required

Which decline is counted. No default.

threshold_pctnumber required

Decline size in percent, e.g. 30. No default.

lookback_daysinteger

Required for rolling_window, rejected otherwise.

history_daysinteger

Also return the daily counter for the last N days.

Response

Container: days_since_decline (value_days, mode, threshold_pct, lookback_days, reference, last_reset, resets_in_history, history_from), episodes[], optional daily[], definition, note, provenance.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.