Table of Contents

Class MorningStar

Namespace
FinanceSharp.Indicators.CandlestickPatterns
Assembly
FinanceSharp.dll

Morning Star candlestick pattern

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

Remarks

 Must have:
  • first candle: long black real body
  • second candle: star(Short real body gapping down)
  • third candle: white 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 positive(+1): morning star is always bullish; The user should consider that a morning star is significant when it appears in a downtrend, while this function does not consider the trend

Constructors

MorningStar()

Initializes a new instance of the MorningStar class.

public MorningStar()

MorningStar(double)

Initializes a new instance of the MorningStar class.

public MorningStar(double penetration)

Parameters

penetration double

Percentage of penetration of a candle within another candle

MorningStar(string, double)

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

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