Class ThreeWhiteSoldiers
- Namespace
- FinanceSharp.Indicators.CandlestickPatterns
- Assembly
- FinanceSharp.dll
Three Advancing White Soldiers candlestick pattern
public class ThreeWhiteSoldiers : CandlestickPattern, IIndicator, IUpdatable
- Inheritance
-
ThreeWhiteSoldiers
- Implements
- Inherited Members
- Extension Methods
Remarks
Must have:
- three white candlesticks with consecutively higher closes
- Greg Morris wants them to be long, Steve Nison doesn't; anyway they should not be short
- each candle opens within or near the previous white real body
- each candle must have no or very short upper shadow
- to differentiate this pattern from advance block, each candle must not be far shorter than the prior candle The meanings of "not short", "very short shadow", "far" and "near" are specified with SetCandleSettings; here the 3 candles must be not short, if you want them to be long use SetCandleSettings on BodyShort; The returned value is positive (+1): advancing 3 white soldiers is always bullish; The user should consider that 3 white soldiers is significant when it appears in downtrend, while this function does not consider it
Constructors
ThreeWhiteSoldiers()
Initializes a new instance of the ThreeWhiteSoldiers class.
public ThreeWhiteSoldiers()
ThreeWhiteSoldiers(string)
Initializes a new instance of the ThreeWhiteSoldiers class using the specified name.
public ThreeWhiteSoldiers(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()