Class HangingMan
- Namespace
- FinanceSharp.Indicators.CandlestickPatterns
- Assembly
- FinanceSharp.dll
Hanging Man candlestick pattern indicator
public class HangingMan : CandlestickPattern, IIndicator, IUpdatable
- Inheritance
-
HangingMan
- Implements
- Inherited Members
- Extension Methods
Remarks
Must have:
- small real body
- long lower shadow
- no, or very short, upper shadow
- body above or near the highs of the previous candle The meaning of "short", "long" and "near the highs" is specified with SetCandleSettings; The returned value is negative (-1): hanging man is always bearish; The user should consider that a hanging man must appear in an uptrend, while this function does not consider it
Constructors
HangingMan()
Initializes a new instance of the HangingMan class.
public HangingMan()
HangingMan(string)
Initializes a new instance of the HangingMan class using the specified name.
public HangingMan(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()