Table of Contents

Class EveningStar

Namespace
FinanceSharp.Indicators.CandlestickPatterns
Assembly
FinanceSharp.dll

Evening Star candlestick pattern

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

Remarks

 Must have:
  • first candle: long white real body
  • second candle: star(short real body gapping up)
  • third candle: black real body that moves well within the first candle's real body The meaning of "short" and "long" is specified with SetCandleSettings The meaning of "moves well within" is specified with penetration and "moves" should mean the real body should not be short ("short" is specified with SetCandleSettings) - Greg Morris wants it to be long, someone else want it to be relatively long The returned value is negative(-1): evening star is always bearish; The user should consider that an evening star is significant when it appears in an uptrend, while this function does not consider the trend

Constructors

EveningStar()

Initializes a new instance of the EveningStar class.

public EveningStar()

EveningStar(double)

Initializes a new instance of the EveningStar class.

public EveningStar(double penetration)

Parameters

penetration double

Percentage of penetration of a candle within another candle

EveningStar(string, double)

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

public EveningStar(string name, double penetration = 0.3)

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