dwlf_get_cycle_windows
Retrieve the stored next cycle-low or cycle-high timing window for one symbol, with dated edges, gap statistics, and past outcomes on weekly or daily timeframes.
Instructions
When is the window for this symbol's next cycle pivot low (or high)? Gives the STORED cycle timing window per side — the same edges the chart draws and the screener reads — for ONE symbol, whether or not the window is open yet. Use it for "when does X's next weekly-low window open?", "when is X's next DAILY low due?" and "how many weeks since X's last weekly low, against its usual gap?". Unlike dwlf_get_cycle_setups, which only lists symbols whose weekly window is already open (and adds phase / early-mid-late for them), this answers for any symbol but carries NO phase: to say whether a window is open, overdue or missed, compare today with the dated edges below.
SHAPE: { symbol, timeframe, generation, generationSource, verification, low, high }. Each side is null when the store holds nothing for it, otherwise { symbolUsed, current, retiredAbove, history }. current is the live window: ruler (the confirmed pivot the window counts from — pivotDate, price); dated edges in order earliest (the shortest gap on record; weekly and daily — a daily one is always an estimate, extrapolated: true; null when there is none) → opens (early bound) → centre (typical) → closes (late bound) → hardMax (the last bar by which the pivot can arrive before the window is a miss), each with bars counted from the ruler and extrapolated: true when it lies beyond the last candle; gaps (the gap statistics the band was drawn from, incl. used = the inter-pivot gaps in bars, n, spreadPct); status (the store row lifecycle: projected | closed — NOT the screener's phase); calibration (calibrated = the gap chain is long enough to mean anything); provenance.projectionHash — the versioned definition of how the edges are drawn; when it changes, the edges mean something new. Closed windows in history carry an outcome — where the pivot actually landed (landedInside, daysFromOpen, …) — which is how to judge how reliable THIS symbol's windows have been.
⚠️ Read verification: while it says unverified (it does for every window as long as the detection gate stands failed), treat the edges as rough timing, not a forecast. ⚠️ The store covers WEEKLY and DAILY (daily folded from the ledger's daily lows/highs); timeframe: "1h" answers with null sides rather than a computed substitute. On daily, bars are trading candles, and an extrapolated edge's date is an estimate from average bar spacing (it can fall on a non-trading day until real bars exist).
PRICE ZONE (depth: true, DWLF-416): each window also carries depth, DERIVED at read time: how far price MOVED into this side's past pivots (pct min/p25/median/p75/max, a fall into a low or a rise into a high, over the trailing n completed cycles; thin when few) and zone = that band as prices from the current cycle's anchor: the confirmed opposite pivot (anchor.source: confirmed-pivot, pivotDate; the highest high after a low ruler, the lowest low after a high ruler) or, when none has confirmed or price has gone beyond it, the cycle's extreme SO FAR (running-extreme, barDate, not yet a confirmed pivot). zone is null when there is no anchor (a pivots-only band — anchorBasis: pivots, e.g. candles not licensed or unavailable — before the opposite pivot confirms) or no completed cycles to measure (pct null). The CURRENT window also carries reading: position of the last weekly close in the band — not-reached (short of the smallest move on record: the band does not apply yet) | shallow | in-zone (inside p25–p75: the one to call out) | deep | beyond — plus movePct, price and closeDate. An API key without raw-candle rights gets price/movePct null (priceWithheld: true), the position kept, and a pivots-only band (candlesUnavailable: not-licensed). ⚠️ depth.verification.state is context-only: a distribution of past moves: not a forecast, and no targets. Use it for "has X fallen far enough for a typical weekly low?" and nothing more. A missing band says why in depthUnavailable. For many symbols at once, dwlf_get_cycle_setups with depth: true carries the same band on each open-window row.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "dwlf_get_cycle_windows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | Omit for both sides. `low` = next cycle-low window (the entry timing); `high` = next top. | |
| depth | No | Add each window's derived price zone (`depth`, DWLF-416): the typical move into this side's pivots, and as prices from the current cycle's anchor. Historical context, no targets. | |
| symbol | Yes | Trading symbol — accepts BTC, BTC/USD, BTC-USD, BTCUSD, or tickers like PHAU, SPY | |
| history | No | How many windows OLDER than `current` to include, newest first (0-20, default 0). Use ~10 to see past outcomes and judge how often this symbol's lows landed inside the window. | |
| timeframe | No | Cycle timeframe (default 1w). Weekly and daily windows are stored; hourly is not. | |
| generation | No | Detector generation to read. Omit — the API defaults to the one it stands behind (`generationSource` says which was used). |