draw_chain
Draw connected chains through pivot points above swing highs or below swing lows on TradingView charts, with candle-cut validation unless forced.
Instructions
Draw a connected chain of straight lines through pivot points (each line starts where the last ended). side "above" = red chain over swing highs, "below" = green chain under swing lows. Refuses and reports the candles if any line would cut through a candle, unless force is true.
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": {
"points": "<points>",
"side": "<side>"
},
"name": "draw_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| color | No | ||
| force | No | ||
| width | No | ||
| points | Yes | ||
| tolerance | No | Points a candle may overshoot a line before it counts as cutting it (default 0) | |
| extend_right | No |