Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Interfaces

Functions

Object literals

Functions

test

  • Tests whether the given candle matches the pattern: Hammer

    sample

    Rules

    1. The small real body is at the upper end of the trading range.
    2. The color of the body is not important.
    3. The long lower shadow should be be much longer than the length of the real body, usually two or three times.
    4. There should be no upper shadow, or if there is, it should be very small.

    Remarks

    Parameters

    • candles: Candle[]

      candles to be tested against this pattern

    • Default value trend: Trend = "down"

      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

ratio

ratio: number = 2

Generated using TypeDoc