Lean  $LEAN_TAG$
QuantConnect.Indicators.CandlestickPatterns.AbandonedBaby Class Reference

Abandoned Baby candlestick pattern More...

Inheritance diagram for QuantConnect.Indicators.CandlestickPatterns.AbandonedBaby:
[legend]

Public Member Functions

 AbandonedBaby (string name, decimal penetration=0.3m)
 Initializes a new instance of the AbandonedBaby class using the specified name. More...
 
 AbandonedBaby (decimal penetration)
 Initializes a new instance of the AbandonedBaby class. More...
 
 AbandonedBaby ()
 Initializes a new instance of the AbandonedBaby class. More...
 
override void Reset ()
 Resets this indicator to its initial state More...
 
- Public Member Functions inherited from QuantConnect.Indicators.WindowIndicator< IBaseDataBar >
override void Reset ()
 Resets this indicator to its initial state More...
 

Protected Member Functions

override decimal ComputeNextValue (IReadOnlyWindow< IBaseDataBar > window, IBaseDataBar input)
 Computes the next value of this indicator from the given state More...
 
- Protected Member Functions inherited from QuantConnect.Indicators.CandlestickPatterns.CandlestickPattern
 CandlestickPattern (string name, int period)
 Creates a new CandlestickPattern with the specified name More...
 
- Protected Member Functions inherited from QuantConnect.Indicators.WindowIndicator< IBaseDataBar >
 WindowIndicator (string name, int period)
 Initializes a new instance of the WindowIndicator class More...
 
override decimal ComputeNextValue (T input)
 Computes the next value of this indicator from the given state More...
 
abstract decimal ComputeNextValue (IReadOnlyWindow< T > window, T input)
 Computes the next value for this indicator from the given state. More...
 

Properties

override bool IsReady [get]
 Gets a flag indicating when this indicator is ready and fully initialized More...
 

Additional Inherited Members

- Public Attributes inherited from QuantConnect.Indicators.WindowIndicator< IBaseDataBar >
int Period
 Gets the period of this window indicator More...
 
override bool IsReady
 Gets a flag indicating when this indicator is ready and fully initialized More...
 
virtual int WarmUpPeriod
 Required period, in data points, to the indicator to be ready and fully initialized More...
 
- Static Protected Member Functions inherited from QuantConnect.Indicators.CandlestickPatterns.CandlestickPattern
static CandleColor GetCandleColor (IBaseDataBar tradeBar)
 Returns the candle color of a candle More...
 
static decimal GetRealBody (IBaseDataBar tradeBar)
 Returns the distance between the close and the open of a candle More...
 
static decimal GetHighLowRange (IBaseDataBar tradeBar)
 Returns the full range of the candle More...
 
static decimal GetCandleRange (CandleSettingType type, IBaseDataBar tradeBar)
 Returns the range of a candle More...
 
static bool GetCandleGapUp (IBaseDataBar tradeBar, IBaseDataBar previousBar)
 Returns true if the candle is higher than the previous one More...
 
static bool GetCandleGapDown (IBaseDataBar tradeBar, IBaseDataBar previousBar)
 Returns true if the candle is lower than the previous one More...
 
static bool GetRealBodyGapUp (IBaseDataBar tradeBar, IBaseDataBar previousBar)
 Returns true if the candle is higher than the previous one (with no body overlap) More...
 
static bool GetRealBodyGapDown (IBaseDataBar tradeBar, IBaseDataBar previousBar)
 Returns true if the candle is lower than the previous one (with no body overlap) More...
 
static decimal GetLowerShadow (IBaseDataBar tradeBar)
 Returns the range of the candle's lower shadow More...
 
static decimal GetUpperShadow (IBaseDataBar tradeBar)
 Returns the range of the candle's upper shadow More...
 
static decimal GetCandleAverage (CandleSettingType type, decimal sum, IBaseDataBar tradeBar)
 Returns the average range of the previous candles More...
 

Detailed Description

Abandoned Baby candlestick pattern

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

Definition at line 40 of file AbandonedBaby.cs.

Constructor & Destructor Documentation

◆ AbandonedBaby() [1/3]

QuantConnect.Indicators.CandlestickPatterns.AbandonedBaby.AbandonedBaby ( string  name,
decimal  penetration = 0.3m 
)

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

Parameters
nameThe name of this indicator
penetrationPercentage of penetration of a candle within another candle

Definition at line 57 of file AbandonedBaby.cs.

Here is the call graph for this function:

◆ AbandonedBaby() [2/3]

QuantConnect.Indicators.CandlestickPatterns.AbandonedBaby.AbandonedBaby ( decimal  penetration)

Initializes a new instance of the AbandonedBaby class.

Parameters
penetrationPercentage of penetration of a candle within another candle

Definition at line 72 of file AbandonedBaby.cs.

◆ AbandonedBaby() [3/3]

QuantConnect.Indicators.CandlestickPatterns.AbandonedBaby.AbandonedBaby ( )

Initializes a new instance of the AbandonedBaby class.

Definition at line 80 of file AbandonedBaby.cs.

Member Function Documentation

◆ ComputeNextValue()

override decimal QuantConnect.Indicators.CandlestickPatterns.AbandonedBaby.ComputeNextValue ( IReadOnlyWindow< IBaseDataBar window,
IBaseDataBar  input 
)
protected

Computes the next value of this indicator from the given state

Parameters
windowThe window of data held in this indicator
inputThe input given to the indicator
Returns
A new value for this indicator

Definition at line 99 of file AbandonedBaby.cs.

Here is the call graph for this function:

◆ Reset()

override void QuantConnect.Indicators.CandlestickPatterns.AbandonedBaby.Reset ( )

Resets this indicator to its initial state

Definition at line 176 of file AbandonedBaby.cs.

Property Documentation

◆ IsReady

override bool QuantConnect.Indicators.CandlestickPatterns.AbandonedBaby.IsReady
get

Gets a flag indicating when this indicator is ready and fully initialized

Definition at line 89 of file AbandonedBaby.cs.


The documentation for this class was generated from the following file: