Table of Contents

Class DarkCloudCover

Namespace
FinanceSharp.Indicators.CandlestickPatterns
Assembly
FinanceSharp.dll

Dark Cloud Cover candlestick pattern

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

Remarks

 Must have:
  • first candle: long white candle
  • second candle: black candle that opens above previous day high and closes within previous day real body; Greg Morris wants the close to be below the midpoint of the previous real body The meaning of "long" is specified with SetCandleSettings, the penetration of the first real body is specified with optInPenetration The returned value is negative(-1): dark cloud cover is always bearish The user should consider that a dark cloud cover is significant when it appears in an uptrend, while this function does not consider it

Constructors

DarkCloudCover()

Initializes a new instance of the DarkCloudCover class.

public DarkCloudCover()

DarkCloudCover(double)

Initializes a new instance of the DarkCloudCover class.

public DarkCloudCover(double penetration)

Parameters

penetration double

Percentage of penetration of a candle within another candle

DarkCloudCover(string, double)

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

public DarkCloudCover(string name, double penetration = 0.5)

Parameters

name string

The name of this indicator

penetration double

Percentage of penetration of a candle within another candle

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