fintech-algorithms
Using a coding agent? Give it the skill: npx skills add IslamBaraka90/Fintech-Algorithms-Library What it does →

Single-Candle Patterns

13 algorithms in Price Action and Candlesticks · 13 with asserted arithmetic.

In this family#

  1. Doji verified

    Evaluates one candle against the repository's explicit doji geometry and scale convention.

    doji(inputs)
  2. Dragonfly Doji verified

    Evaluates one candle against the repository's explicit dragonfly-doji geometry and scale convention.

    dragonflyDoji(inputs)
  3. Gravestone Doji verified

    Evaluates one candle against the repository's explicit gravestone-doji geometry and scale convention.

    gravestoneDoji(inputs)
  4. Marubozu verified

    Evaluates one candle against the repository's explicit marubozu geometry and scale convention.

    marubozu(inputs)
  5. Spinning Top verified

    Evaluates one candle against the repository's explicit spinning-top geometry and scale convention.

    spinningTop(inputs)
  6. Hammer verified

    Evaluates one candle against explicit hammer geometry, scale, and downtrend context conventions.

    hammer(inputs)
  7. Hanging Man verified

    Evaluates one candle against explicit hanging-man geometry, scale, and uptrend context conventions.

    hangingMan(inputs)
  8. Inverted Hammer verified

    Evaluates one candle against explicit inverted-hammer geometry, scale, and downtrend context conventions.

    invertedHammer(inputs)
  9. Shooting Star verified

    Evaluates one candle against explicit shooting-star geometry, scale, and uptrend context conventions.

    shootingStar(inputs)
  10. Long-Legged Doji verified

    Marks each bar whose body is a small fraction of its high-low span while both shadows are long, and reports how much slack the tightest of those three tests had.

    longLeggedDoji(input)
  11. Four-Price Doji verified

    Marks each bar whose entire range and whose open-to-close distance both sit within a tick tolerance, the degenerate candle where all four prices are effectively the same.

    fourPriceDoji(input)
  12. High-Wave Candle verified

    Marks each bar with a small body relative to its high-low span whose two shadows are both a multiple of that body, the long-tailed indecision candle.

    highWaveCandle(input)
  13. Belt Hold verified

    Marks each bar that opens at one extreme of its own range within a tick and closes at least 60 percent of the span away, and reports that body share and which side it favoured.

    beltHold(input)

What they share#

Every topic here is a record-transform, so once you have called one the rest follow the same shape. Import paths differ only in the final segment:

ts
import { doji } from "fintech-algorithms/price-action-and-candlesticks/single-candle-patterns/doji";
import { dragonflyDoji } from "fintech-algorithms/price-action-and-candlesticks/single-candle-patterns/dragonfly-doji";

Read them in the order above — the sequence is pedagogical, not alphabetical.

Where this sits#

Price Action and Candlesticks collects 52 algorithms across 5 families. For the concept behind this family rather than the call signatures, see the concept guides.