C_TriStar (Function)

image\trumpet2.gif Disclaimer

The C_TriStar function identifies occurrences of the Tri Star Japanese candlestick patterns; Tri Star Bottom and Tri Star Top.

Syntax

C_TriStar(Price, TrendAvgLength, DojiPercent, BodyGapOrFullGap_0_or_1)

Returns (Integer)

Returns a positive one (1) when a Tri Star bottom candlestick pattern is found or returns a negative one (-1) when a Tri Star top pattern is found.  Otherwise, returns 0 if no Tri Star 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.
DojiPercent Numeric Max percent of candlestick body to still qualify as a doji.
BodyGap Numeric Sets the type of gap to require for the pattern. 0=Body Only (current bar body does not overlap previous bar body); 1=Full Gap (no portion of current bar overlaps previous bar)