Definition
Detects the specified candle stick pattern.
Syntax
CandleStickPattern(ChartPattern pattern, int trendStrength)
CandleStickPattern(IDataSeries inputData, ChartPattern pattern, int trendStrength)
Returns a value indicating if the specified pattern was detected
CandleStickPattern(ChartPattern pattern, int trendStrength)[int barsAgo]
CandleStickPattern(IDataSeries inputData, ChartPattern pattern, int trendStrength)[int barsAgo]
Return Type
double; Accessing these methods via an index value [int barsAgo] returns the indicator value of the referenced bar. A value of 0 (zero) indicates that a pattern was not found, a value of 1 (one) indicates that a pattern was found.
|
Parameters |
|
|
inputData |
Indicator source data (?) |
|
pattern |
Possible values are: ChartPattern.BearishBeltHold ChartPattern.BearishEngulfing ChartPattern.BearishHarami ChartPattern.BearishHaramiCross ChartPattern.BullishBeltHold ChartPattern.BullishEngulfing ChartPattern.BullishHarami ChartPattern.BullishHaramiCross ChartPattern.DarkCloudCover ChartPattern.Doji ChartPattern.DownsideTasukiGap ChartPattern.EveningStar ChartPattern.FallingThreeMethods ChartPattern.Hammer ChartPattern.HangingMan ChartPattern.InvertedHammer ChartPattern.MorningStart ChartPattern.PiercingLine ChartPattern.RisingThreeMethods ChartPattern.ShootingStar ChartPattern.StickSandwich ChartPattern.ThreeBlackCrows ChartPattern.ThreeWhiteSoldiers ChartPattern.UpsideGapTwoCrows ChartPattern.UpsideTasukiGap |
|
trendStrength |
The number of required bars to the left and right of the swing point used to determine trend. A value of zero will exclude the requirement of a trend and only detect based on the candles themselves. |
Examples
|
// Go long if the current bar is a bullish engulfing pattern
|