Table of Contents

Class Engulfing

Namespace
FinanceSharp.Indicators.CandlestickPatterns
Assembly
FinanceSharp.dll

Engulfing candlestick pattern

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

Remarks

 Must have:
  • first: black (white) real body
  • second: white(black) real body that engulfs the prior real body The returned value is positive(+1) when bullish or negative(-1) when bearish; The user should consider that an engulfing must appear in a downtrend if bullish or in an uptrend if bearish, while this function does not consider it

Constructors

Engulfing()

Initializes a new instance of the Engulfing class.

public Engulfing()

Engulfing(string)

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

public Engulfing(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