C_Marubozu (Function)

image\trumpet2.gif Disclaimer

The C_Marubozu function identifies occurrences of the Marubozu Japanese candlestick patterns.

Syntax

C_Marubozu(BodyAvgLength, ShadowPercent)

Returns (Integer)

One of the following numeric values are returned based on the pattern identified:

Pattern Return Value
No Marubozu Candlestick 0
Black Marubozu 1
White Marubozu 2
Black Closing Marubozu 3
White Closing Marubozu 4
Black Opening Marubozu 5
White Opening Marubozu 6

Parameters

Name Type Description
BodyAvgLength Numeric Length used to calculate the average body.
ShadowPercent Numeric Shadows (upper and lower) must not exceed this percentage of the body's size for the pattern to occur.