dwlf_get_trendlines
Retrieve automatically detected support and resistance trendlines for a symbol and timeframe, including anchors, slope, and active status to identify and monitor line breaks.
Instructions
Get the automatically detected trendlines for a symbol on one timeframe (daily by default; weekly; hourly only for symbols with 1h data). Each line carries its type (support/resistance), its two anchors (date + price), slope and whether it is still active. Breaks of these lines are the trendline_break_* / trendline_breach_* events in dwlf_get_events. Weekly lines are not stored for every symbol yet (BTCOC/USD has daily lines only): an empty weekly list means "none stored", not "no trend". The engine's weekly detection still emits weekly trendline_break_* events (for BTCOC/USD too), so read those with dwlf_get_events.
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_trendlines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Trading symbol — accepts BTC, BTC/USD, BTC-USD, BTCUSD, or stock tickers like AAPL, TSLA | |
| timeframe | No | Which trendlines (default: daily). Hourly exists only for symbols with 1h data. |