Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Interfaces

Functions

Object literals

Functions

test

  • Tests whether the given candle matches the pattern: Harami

    sample

    sample

    Rules

    1. A long day is precended by a reasonble trend.
    2. The color of the long day is not important, but it is best if it reflects the trend of the market.
    3. A short day follows the long day, with its body completely inside the body range of the long day. Just like the Engulfing day, the tops and bottoms of the bodies can be equal, but both tops and both bottoms cannot be equal.
    4. The short day should be the opposite color of the long day.

    Remarks

    • Source: p.40

    Parameters

    • candles: Candle[]

      candles to be tested against this pattern

    • trend: Trend

      trend in which candle occured

    • Default value offset: number = 0

      offset to earliest / first candle

    • Default value options: Options = defaults

      configurable options for this pattern

    Returns boolean

Object literals

Const defaults

defaults: object

longDay

longDay: Options = LongDay.defaults

shortDay

shortDay: Options = ShortDay.defaults

Generated using TypeDoc