Class DojiStar
- Namespace
- FinanceSharp.Indicators.CandlestickPatterns
- Assembly
- FinanceSharp.dll
Doji Star candlestick pattern indicator
public class DojiStar : CandlestickPattern, IIndicator, IUpdatable
- Inheritance
-
DojiStar
- Implements
- Inherited Members
- Extension Methods
Remarks
Must have:
- first candle: long real body
- second candle: star(open gapping up in an uptrend or down in a downtrend) with a doji The meaning of "doji" and "long" is specified with SetCandleSettings The returned value is positive(+1) when bullish or negative(-1) when bearish; it's defined bullish when the long candle is white and the star gaps up, bearish when the long candle is black and the star gaps down; the user should consider that a doji star is bullish when it appears in an uptrend and it's bearish when it appears in a downtrend, so to determine the bullishness or bearishness of the pattern the trend must be analyzed
Constructors
DojiStar()
Initializes a new instance of the DojiStar class.
public DojiStar()
DojiStar(string)
Initializes a new instance of the DojiStar class using the specified name.
public DojiStar(string name)
Parameters
namestringThe 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
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
timeWindowIReadOnlyWindow<long>windowIReadOnlyWindow<DoubleArray>The window of data held in this indicator
timelonginputDoubleArray
Returns
- DoubleArray
A new value for this indicator
Reset()
Resets this indicator to its initial state
public override void Reset()