Table of Contents

Class AdvanceBlock

Namespace
FinanceSharp.Indicators.CandlestickPatterns
Assembly
FinanceSharp.dll

Advance Block candlestick pattern

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

Remarks

 Must have:
  • three white candlesticks with consecutively higher closes
  • each candle opens within or near the previous white real body
  • first candle: long white with no or very short upper shadow(a short shadow is accepted too for more flexibility)
  • second and third candles, or only third candle, show signs of weakening: progressively smaller white real bodies and/or relatively long upper shadows; see below for specific conditions The meanings of "long body", "short shadow", "far" and "near" are specified with SetCandleSettings; The returned value is negative(-1): advance block is always bearish; The user should consider that advance block is significant when it appears in uptrend, while this function does not consider it

Constructors

AdvanceBlock()

Initializes a new instance of the AdvanceBlock class.

public AdvanceBlock()

AdvanceBlock(string)

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

public AdvanceBlock(string name)

Parameters

name string

The 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

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