Skip to main content

ICandle

Interface representing a single OHLCV bar with computed body/wick metrics and candlestick pattern detection.

Namespace: MZpack

Properties​

Price​

PropertyTypeDescription
OpendoubleOpening price
ClosedoubleClosing price
HighdoubleHighest price
LowdoubleLowest price

Size & Structure​

PropertyTypeDescription
SizeintFull candle range in ticks (High − Low)
BodyintBody size in ticks
UpperBodydoubleUpper body price (max of Open, Close)
LowerBodydoubleLower body price (min of Open, Close)
UpperWickintUpper wick size in ticks
LowerWickintLower wick size in ticks

Other​

PropertyTypeDescription
TimeDateTimeBar close time
VolumedoubleBar volume

Methods​

MethodReturnsDescription
IsBullish()booltrue if Close > Open
IsBearish()booltrue if Close < Open
IsDoji()booltrue if candle is a doji pattern
IsHammer()booltrue if candle is a hammer pattern
GetUpperWickPercent()intUpper wick as percentage of full range
GetLowerWickPercent()intLower wick as percentage of full range