classify_bars
Label every bar as TheStrat scenario 1, 2u, 2d or 3 (Truth #1).
Rule: compare each bar with the bar before it. Took the prior high only = 2u. Took the
prior low only = 2d. Took both = 3. Took neither = 1 (inside bar). Equal to the prior
high/low is NOT a take-out (still a 1). The first bar has no scenario (null).
Also returns color, hammer/shooter shape, failed-2 flags (2u red / 2d green = potential 3)
and 3u/3d when the bar has first_side data. Use this instead of reading a chart.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | Yes | OHLC bars, oldest first. Each bar is an object {t, o, h, l, c, v?} (also accepts open/high/low/close/time) or a row [t, o, h, l, c, v?]. t = bar START time, ISO 8601 (New York time if no offset). Daily bars may use a date only. |