Class UpDownGapThreeMethods
- Namespace
- FinanceSharp.Indicators.CandlestickPatterns
- Assembly
- FinanceSharp.dll
Up/Down Gap Three Methods candlestick pattern
public class UpDownGapThreeMethods : CandlestickPattern, IIndicator, IUpdatable
- Inheritance
-
UpDownGapThreeMethods
- Implements
- Inherited Members
- Extension Methods
Remarks
Must have:
- first candle: white (black) candle
- second candle: white(black) candle
- upside(downside) gap between the first and the second real bodies
- third candle: black(white) candle that opens within the second real body and closes within the first real body The returned value is positive(+1) when bullish or negative(-1) when bearish; The user should consider that up/downside gap 3 methods is significant when it appears in a trend, while this function does not consider it
Constructors
UpDownGapThreeMethods()
Initializes a new instance of the UpDownGapThreeMethods class.
public UpDownGapThreeMethods()
UpDownGapThreeMethods(string)
Initializes a new instance of the UpDownGapThreeMethods class using the specified name.
public UpDownGapThreeMethods(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