Table of Contents

Class Hammer

Namespace
FinanceSharp.Indicators.CandlestickPatterns
Assembly
FinanceSharp.dll

Hammer candlestick pattern indicator

public class Hammer : CandlestickPattern, IIndicator, IUpdatable
Inheritance
Hammer
Implements
Inherited Members
Extension Methods

Remarks

 Must have:
  • small real body
  • long lower shadow
  • no, or very short, upper shadow
  • body below or near the lows of the previous candle The meaning of "short", "long" and "near the lows" is specified with SetCandleSettings; The returned value is positive(+1): hammer is always bullish; The user should consider that a hammer must appear in a downtrend, while this function does not consider it

Constructors

Hammer()

Initializes a new instance of the Hammer class.

public Hammer()

Hammer(string)

Initializes a new instance of the Hammer class using the specified name.

public Hammer(string name)

Parameters

name string

The name of this indicator

Properties

IsReady

Gets a flag indicating when this indicator is ready and fully initialized

public override bool IsReady { get; }

Property Value

bool

Methods

Forward(IReadOnlyWindow<long>, IReadOnlyWindow<DoubleArray>, long, DoubleArray)

Computes the next value of this indicator from the given state

protected override DoubleArray Forward(IReadOnlyWindow<long> timeWindow, IReadOnlyWindow<DoubleArray> window, long time, DoubleArray input)

Parameters

timeWindow IReadOnlyWindow<long>
window IReadOnlyWindow<DoubleArray>

The window of data held in this indicator

time long
input DoubleArray

Returns

DoubleArray

A new value for this indicator

Reset()

Resets this indicator to its initial state

public override void Reset()