patterns
Spot candlestick formations on IDX stocks with the prior trend included, so hammer and hanging man are told apart. Get confidence scores, or ignore context to see raw shapes.
Instructions
Candlestick patterns on an IDX stock's daily bars — 16 classic formations with the prior trend they were read against.
The prior trend is PART of the pattern, not decoration: a hammer and a hanging man are the same candle, as are an inverted hammer and a shooting star, and only what came before them tells the two apart. Set ignore_context to see the raw shapes anyway.
confidence scores how closely the candle matches the TEXTBOOK PROPORTIONS. It is not a probability, it is not backtested, and it says nothing about what happened next — use backtest for that question.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| bars | No | Sessions to search (default 120) | |
| from | No | ||
| only | No | Restrict to these pattern ids | |
| since | No | Only the last N sessions | |
| symbol | Yes | IDX ticker, e.g. BBRI | |
| ignore_context | No | Report reversal shapes regardless of prior trend. Default false. | |
| min_confidence | No | 0-1, default 0.5 |