Table of Contents

Class MatHold

Namespace
FinanceSharp.Indicators.CandlestickPatterns
Assembly
FinanceSharp.dll

Mat Hold candlestick pattern

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

Remarks

 Must have:
  • first candle: long white candle
  • upside gap between the first and the second bodies
  • second candle: small black candle
  • third and fourth candles: falling small real body candlesticks(commonly black) that hold within the long white candle's body and are higher than the reaction days of the rising three methods
  • fifth candle: white candle that opens above the previous small candle's close and closes higher than the high of the highest reaction day The meaning of "short" and "long" is specified with SetCandleSettings; "hold within" means "a part of the real body must be within"; penetration is the maximum percentage of the first white body the reaction days can penetrate(it is to specify how much the reaction days should be "higher than the reaction days of the rising three methods") The returned value is positive(+1): mat hold is always bullish

Constructors

MatHold()

Initializes a new instance of the MatHold class.

public MatHold()

MatHold(double)

Initializes a new instance of the MatHold class.

public MatHold(double penetration)

Parameters

penetration double

Percentage of penetration of a candle within another candle

MatHold(string, double)

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

public MatHold(string name, double penetration = 0.5)

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