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.
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 | |||