analyze_structure
Analyze market structure to identify swing highs/lows, trend direction, and detect Break of Structure (BOS) or Change of Character (CHoCH) for trading decisions.
Instructions
Analyze market structure: swing highs/lows, trend, BOS / CHoCH.
Builds an alternating swing sequence from confirmed pivots, labels each
as HH/HL/LH/LL, infers trend (uptrend/downtrend/range), and reports
whether the latest bar broke the most recent swing as a Break of
Structure (continuation) or Change of Character (reversal). left/
right set the pivot confirmation window.
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": "analyze_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| left | No | ||
| limit | No | ||
| right | No | ||
| symbol | Yes | ||
| exchange | No | ||
| timeframe | No | 1h |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||