Class TasukiGap
- Namespace
- FinanceSharp.Indicators.CandlestickPatterns
- Assembly
- FinanceSharp.dll
Tasuki Gap candlestick pattern indicator
public class TasukiGap : CandlestickPattern, IIndicator, IUpdatable
- Inheritance
-
TasukiGap
- Implements
- Inherited Members
- Extension Methods
Remarks
Must have:
- upside (downside) gap
- first candle after the window: white(black) candlestick
- second candle: black(white) candlestick that opens within the previous real body and closes under(above) the previous real body inside the gap
- the size of two real bodies should be near the same The meaning of "near" is specified with SetCandleSettings The returned value is positive(+1) when bullish or negative(-1) when bearish; The user should consider that tasuki gap is significant when it appears in a trend, while this function does not consider it
Constructors
TasukiGap()
Initializes a new instance of the TasukiGap class.
public TasukiGap()
TasukiGap(string)
Initializes a new instance of the TasukiGap class using the specified name.
public TasukiGap(string name)
Parameters
namestringThe 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
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()