CandleStickPattern

Description

The CandleStickPattern indicator looks for specific candlestick formations.

Further information

Explanations of the formations and their interpretations can be found here: http://en.wikipedia.org/wiki/Candlestick_pattern

Usage

CandleStickPattern(CandleStickPattern pattern, int trendStrength)
CandleStickPattern(IDataSeries input, CandleStickPattern pattern, int trendStrength)
CandleStickPattern(CandleStickPattern pattern, int trendStrength)[int barsAgo]
CandleStickPattern(IDataSeries input, CandleStickPattern pattern, int trendStrength)[int barsAgo]

Return value

double

0 – Pattern not existent 1 – Pattern existent

When using this method with an index (e.g. CandleStickPattern(...)[int barsAgo] ), the value of the indicator will be outputted for the referenced bar.

Parameters

InSeries

Input data series for the indicator

pattern

Possible values are: CandleStickPattern.BearishBeltHold, CandleStickPattern.BearishEngulfing, CandleStickPattern.BearishHarami, CandleStickPattern.BearishHaramiCross, CandleStickPattern.BullishBeltHold, CandleStickPattern.BullishEngulfing, CandleStickPattern.BullishHarami, CandleStickPattern.BullishHaramiCross, CandleStickPattern.DarkCloudCover, CandleStickPattern.Doji, CandleStickPattern.DownsideTasukiGap, CandleStickPattern.EveningStar, CandleStickPattern.FallingThreeMethods, CandleStickPattern.Hammer, CandleStickPattern.HangingMan, CandleStickPattern.InvertedHammer, CandleStickPattern.MorningStart, CandleStickPattern.PiercingLine, CandleStickPattern.RisingThreeMethods, CandleStickPattern.ShootingStar, CandleStickPattern.StickSandwich, CandleStickPattern.ThreeBlackCrows, CandleStickPattern.ThreeWhiteSoldiers, CandleStickPattern.UpsideGapTwoCrows, CandleStickPattern.UpsideTasukiGap

trendStrength

Signifies the number of bars to the left and right of the swing high or swing low that are used to identify a trend. The value 0 turns off the search, meaning that the only thing searched for is chart patterns.

Visualization

Example

if (CandelStickPattern(CandleStickPattern.ShootingStar, 5)[0] == 1)
Print("Pattern ShootingStar found!");

Last updated