C_HaramiCross (Function)

image\trumpet2.gif Disclaimer

The C_HaramiCross function identifies occurrences of the Harami CrossJapanese candlestick patterns.

Syntax

C_HaramiCross(Price, TrendAvgLength, BodyAvgLength, DojiPercent)

Returns (Integer)

Returns a positive one (1) when a Bullish HaramiCross candlestick pattern is found or returns a negative one (-1) when a Bearish Harami Crosspattern is found.  Otherwise, returns 0 if no Harami Cross pattern is identified.   

Parameters

Name Type Description
Price Numeric Price for the moving average calculation.
TrendAvgLength Numeric Length used to calculate the moving average of the trend.
BodyAvgLength Numeric Length used to calculate the average body.
DojiPercent Numeric Max percent of candlesticks range to still qualify as a doji.