Class AbandonedBaby
- Namespace
- FinanceSharp.Indicators.CandlestickPatterns
- Assembly
- FinanceSharp.dll
Abandoned Baby candlestick pattern
public class AbandonedBaby : CandlestickPattern, IIndicator, IUpdatable
- Inheritance
-
AbandonedBaby
- Implements
- Inherited Members
- Extension Methods
Remarks
Must have:
- first candle: long white (black) real body
- second candle: doji
- third candle: black(white) real body that moves well within the first candle's real body
- upside(downside) gap between the first candle and the doji(the shadows of the two candles don't touch)
- downside (upside) gap between the doji and the third candle(the shadows of the two candles don't touch) The meaning of "doji" 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) when it's an abandoned baby bottom or negative (-1) when it's an abandoned baby top; the user should consider that an abandoned baby is significant when it appears in an uptrend or downtrend, while this function does not consider the trend
Constructors
AbandonedBaby()
Initializes a new instance of the AbandonedBaby class.
public AbandonedBaby()
AbandonedBaby(double)
Initializes a new instance of the AbandonedBaby class.
public AbandonedBaby(double penetration)
Parameters
penetrationdoublePercentage of penetration of a candle within another candle
AbandonedBaby(string, double)
Initializes a new instance of the AbandonedBaby class using the specified name.
public AbandonedBaby(string name, double penetration = 0.3)
Parameters
namestringThe name of this indicator
penetrationdoublePercentage 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
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()