Table of Contents

Class TwoCrows

Namespace
FinanceSharp.Indicators.CandlestickPatterns
Assembly
FinanceSharp.dll

Two Crows candlestick pattern indicator

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

Remarks

 Must have:
  • first candle: long white candle
  • second candle: black real body
  • gap between the first and the second candle's real bodies
  • third candle: black candle that opens within the second real body and closes within the first real body The meaning of "long" is specified with SetCandleSettings The returned value is negative (-1): two crows is always bearish; The user should consider that two crows is significant when it appears in an uptrend, while this function does not consider the trend.

Constructors

TwoCrows()

Initializes a new instance of the TwoCrows class.

public TwoCrows()

TwoCrows(string)

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

public TwoCrows(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()