Marubozu (Preview)

get_marubozu(quotes, min_body_percent=95)

Parameters

name type notes
quotes Iterable[Quote] Iterable of the Quote class or its sub-class.
See here for usage with pandas.DataFrame
min_body_percent float, default 95 Optional. Minimum body size as a percent of total candle size. Example: 85% would be entered as 85 (not 0.85). Must be between 80 and 100, if specified.

Historical quotes requirements

You must have at least one historical quote; however, more is typically provided since this is a chartable candlestick pattern.

quotes is an Iterable[Quote] collection of historical price quotes. It should have a consistent frequency (day, hour, minute, etc). See the Guide for more information.

Return

CandleResults[CandleResult]

CandleResult

name type notes
date datetime Date
price decimal, Optional Price of the most relevant OHLC candle element when a match is present
match Match Generated Match type
candle CandleProperties Candle properties

Utilities

See Utilities and Helpers for more information.

Example

from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")

# Calculate
results = indicators.get_marubozu(quotes);

About Marubozu (Preview)

Marubozu is a single candlestick pattern that has no wicks, representing consistent directional movement. [Discuss] 💬

image

Sources