MAIDR Documentation - v4.4.0
    Preparing search index...

    Module util/candlePattern

    The shape of a single candle, read off its own four numbers.

    A candlestick chart says two things at every session. The first is the four prices, which the trace already announces. The second is the shape the candle is drawn in — a cross, a solid block, a small body between two long wicks — and that is the half a sighted reader gets from the picture at a glance and a screen-reader user has to reconstruct by holding four numbers in their head and dividing.

    Nothing here is a forecast. Every name below describes the drawing: a doji is a candle whose open and close are level, a marubozu is one drawn with (almost) no wicks. What such a candle is supposed to mean is the reader's to decide, exactly as it is for someone looking at the chart.

    candlePairPatterns does the same for the two-candle patterns, which describe how a candle sits against the one before it rather than how it is drawn on its own (#735, #736, #737, #738), and candleTrendPattern for the one pair of names that a run of earlier closes decides between (#734). candleTrioPatterns covers the three-candle formations (#739, #740, #741, #742).

    The thresholds are the ones the requests specify, and they are parameters rather than literals because strictness is a matter of trading style. There is no way to set them from a chart yet; when there is, it passes CandleShapeThresholds and nothing else changes.

    Interfaces

    Ohlc
    CandleShapeThresholds

    Type Aliases

    CandleShape
    CandlePairPattern
    CandleTrendPattern
    CandleTrioPattern

    Variables

    DEFAULT_CANDLE_SHAPE_THRESHOLDS

    Functions

    candleShape
    candlePairPatterns
    candleTrendPattern
    candleTrioPatterns