dwlf_get_divergences
Retrieve dated regular or hidden price/oscillator divergences across tracked symbols, filtered by timeframe, direction, oscillator, symbol, and date window.
Instructions
Recent price/oscillator DIVERGENCES across every symbol DWLF tracks: dated events that happened, not calls. A divergence compares two consecutive confirmed cycle pivots: a regular one is price making a lower low (or a higher high) while RSI(14) or DSS does not; a hidden one is the reverse, a pullback inside the trend. Bullish = measured at lows, bearish = at highs.
FILTERS: days (1-365, default 30) windows the later pivot's date; oscillator (rsi | dss), kind (regular | hidden), direction (bullish | bearish), symbols (restrict to these), limit (1-500; this tool sends 50 unless you set it), timeframe (daily, the default | weekly | all), includeRetired (also include divergences whose pivot the cycle ledger later superseded; by default they are left out and counted in retiredOmitted).
CONFLUENCE: confluence names the layers to check around each divergence: cycle (a confirmed daily cycle low or high near the pivot, and whether it sits in the weekly window), smc (Smart Money Concepts events), tl (a trendline break), weekly (a weekly divergence agrees), fib (a cycle fib level). confluenceDays (1-30 bars, default 10) is the window; minLayers keeps only items matching at least that many layers (filtered by the API). Each item then carries confluence: { matched, layers, … }: a layer not requested is null, requested and absent is { matched: false }, and a matched layer lists its dated events and a one-line why. Passing timeframe or confluence gives responseVersion: 2, which always includes definitions (stable wording you can quote); explain: true adds them to the plain read.
READING IT: each item has summary (one plain sentence, the DWLF page's own wording: use it), both pivots' dates, prices and oscillator readings, knowableAt (when it could first be known: never imply it was visible earlier) and chartUrl. When the user wants to see one, give them its chartUrl. cyclePivot.ledgerState unknown or missing means the pivot is unverified, not confirmed. A divergence, or a confluence of layers, is something that happened on the chart, not a recommendation: never turn them into buy, sell or hold recommendations. truncated: true means more matched than were returned. A key whose plan lacks the cycles family gets a teaser (locked: true, newThisWeek, requiredPlan, upgradeUrl, pricingUrl) and no items: tell your human what unlocks it and give them upgradeUrl (the plans page).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "dwlf_get_divergences"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Window on the later pivot's date, in days (default 30). | |
| kind | No | `regular` (against the move) or `hidden` (a pullback inside the trend). | |
| limit | No | How many items at most (default 50 here). | |
| explain | No | Add `definitions` to a plain (version 1) read; version 2 always has them. | |
| symbols | No | Restrict to these symbols (any spelling, e.g. "BTC/USD", "aapl"). | |
| direction | No | Bullish = measured at lows; bearish = at highs. | |
| minLayers | No | Keep only items matching at least this many of the requested layers. Needs `confluence`. | |
| timeframe | No | Daily pivots (default), weekly, or both. | |
| confluence | No | Layers to check around each divergence. | |
| oscillator | No | RSI(14) or DSS. | |
| confluenceDays | No | The confluence window in bars (weekly: weeks); default 10. | |
| includeRetired | No | Also include divergences on pivots the cycle ledger later superseded. |