Class Breakaway
- Namespace
- FinanceSharp.Indicators.CandlestickPatterns
- Assembly
- FinanceSharp.dll
Breakaway candlestick pattern indicator
public class Breakaway : CandlestickPattern, IIndicator, IUpdatable
- Inheritance
-
Breakaway
- Implements
- Inherited Members
- Extension Methods
Remarks
Must have:
- first candle: long black(white)
- second candle: black(white) day whose body gaps down(up)
- third candle: black or white day with lower(higher) high and lower(higher) low than prior candle's
- fourth candle: black(white) day with lower(higher) high and lower(higher) low than prior candle's
- fifth candle: white(black) day that closes inside the gap, erasing the prior 3 days The meaning of "long" is specified with SetCandleSettings The returned value is positive(+1) when bullish or negative(-1) when bearish; The user should consider that breakaway is significant in a trend opposite to the last candle, while this function does not consider it
Constructors
Breakaway()
Initializes a new instance of the Breakaway class.
public Breakaway()
Breakaway(string)
Initializes a new instance of the Breakaway class using the specified name.
public Breakaway(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()