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

Hikkake Modified candlestick pattern More...

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

Public Member Functions

 HikkakeModified (string name)
 Initializes a new instance of the HikkakeModified class using the specified name. More...
 
 HikkakeModified ()
 Initializes a new instance of the HikkakeModified 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

Hikkake Modified candlestick pattern

Must have:

  • first candle
  • second candle: candle with range less than first candle and close near the bottom(near the top)
  • third candle: lower high and higher low than 2nd
  • fourth candle: lower high and lower low(higher high and higher low) than 3rd The returned value for the hikkake bar is positive(+1) or negative(-1) meaning bullish or bearish hikkake Confirmation could come in the next 3 days with:
  • a day that closes higher than the high(lower than the low) of the 3rd candle The returned value for the confirmation bar is equal to 1 + the bullish hikkake result or -1 - the bearish hikkake result Note: if confirmation and a new hikkake come at the same bar, only the new hikkake is reported(the new hikkake overwrites the confirmation of the old hikkake); The user should consider that modified hikkake is a reversal pattern, while hikkake could be both a reversal or a continuation pattern, so bullish(bearish) modified hikkake is significant when appearing in a downtrend(uptrend)

Definition at line 40 of file HikkakeModified.cs.

Constructor & Destructor Documentation

◆ HikkakeModified() [1/2]

QuantConnect.Indicators.CandlestickPatterns.HikkakeModified.HikkakeModified ( string  name)

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

Parameters
nameThe name of this indicator

Definition at line 53 of file HikkakeModified.cs.

Here is the call graph for this function:

◆ HikkakeModified() [2/2]

QuantConnect.Indicators.CandlestickPatterns.HikkakeModified.HikkakeModified ( )

Initializes a new instance of the HikkakeModified class.

Definition at line 62 of file HikkakeModified.cs.

Member Function Documentation

◆ ComputeNextValue()

override decimal QuantConnect.Indicators.CandlestickPatterns.HikkakeModified.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 81 of file HikkakeModified.cs.

Here is the call graph for this function:

◆ Reset()

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

Resets this indicator to its initial state

Definition at line 190 of file HikkakeModified.cs.

Property Documentation

◆ IsReady

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

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

Definition at line 71 of file HikkakeModified.cs.


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