Skip to contents

Candlestick Patterns

Identify bullish, bearish, and reversal candlestick formations from OHLC price data. Includes classic patterns such as Doji, Hammer, Engulfing, Morning Star, and many more — 61 patterns in total.

abandoned_baby()
Abandoned Baby
advance_block()
Advance Block
belt_hold()
Belt-hold
break_away()
Breakaway
closing_marubozu()
Closing Marubozu
concealing_baby_swallow()
Concealing Baby Swallow
counter_attack()
Counterattack
dark_cloud_cover()
Dark Cloud Cover
doji()
Doji
doji_star()
Doji Star
dragonfly_doji()
Dragonfly Doji
engulfing()
Engulfing Pattern
evening_doji_star()
Evening Doji Star
evening_star()
Evening Star
gaps_side_white()
Up/Down-gap side-by-side white lines
gravestone_doji()
Gravestone Doji
hammer()
Hammer
hanging_man()
Hanging Man
harami()
Harami Pattern
harami_cross()
Harami Cross Pattern
high_wave()
High-Wave Candle
hikkake()
Hikkake Pattern
hikkake_mod()
Modified Hikkake Pattern
homing_pigeon()
Homing Pigeon
in_neck()
In-Neck Pattern
inverted_hammer()
Inverted Hammer
kicking()
Kicking
kicking_by_length()
Kicking - bull/bear determined by the longer marubozu
ladder_bottom()
Ladder Bottom
long_legged_doji()
Long Legged Doji
long_line()
Long Line Candle
marubozu()
Marubozu
mat_hold()
Mat Hold
matching_low()
Matching Low
morning_doji_star()
Morning Doji Star
morning_star()
Morning Star
on_neck()
On-Neck Pattern
piercing()
Piercing Pattern
rickshaw_man()
Rickshaw Man
rise_fall_3_methods()
Rising/Falling Three Methods
separating_lines()
Separating Lines
shooting_star()
Shooting Star
short_line()
Short Line Candle
spinning_top()
Spinning Top
stalled_pattern()
Stalled Pattern
stick_sandwich()
Stick Sandwich
takuri()
Takuri (Dragonfly Doji with very long lower shadow)
tasuki_gap()
Tasuki Gap
three_black_crows()
Three Black Crows
three_identical_crows()
Identical Three Crows
three_inside()
Three Inside Up/Down
three_line_strike()
Three-Line Strike
three_outside()
Three Outside Up/Down
three_stars_in_the_south()
Three Stars In The South
three_white_soldiers()
Three Advancing White Soldiers
thrusting()
Thrusting Pattern
tristar()
Tristar Pattern
two_crows()
Two Crows
unique_3_river()
Unique 3 River
upside_gap_2_crows()
Upside Gap Two Crows
xside_gap_3_methods()
Upside/Downside Gap Three Methods

Momentum Indicators

Measure the speed and strength of price movements. Includes oscillators and rate-of-change indicators such as RSI, MACD, Stochastic, CCI, Williams %R, and ADX.

absolute_price_oscillator()
Absolute Price Oscillator
accelerator_decelerator_oscillator()
Accelerator/Decelerator Oscillator
aroon()
Aroon
aroon_oscillator()
Aroon Oscillator
average_directional_movement_index()
Average Directional Movement Index
average_directional_movement_index_rating()
Average Directional Movement Index Rating
awesome_oscillator()
Awesome Oscillator
balance_of_power()
Balance Of Power
center_of_gravity_oscillator()
Center of Gravity Oscillator
chande_momentum_oscillator()
Chande Momentum Oscillator
choppiness_index()
Choppiness Index
choppiness_index_true_range_box()
Choppiness Index (True Range Box)
commodity_channel_index()
Commodity Channel Index
connors_relative_strength_index()
Connors Relative Strength Index
coppock_curve()
Coppock Curve
correlation_trend_indicator()
Correlation Trend Indicator
derivative_oscillator()
Derivative Oscillator
detrended_price_oscillator()
Detrended Price Oscillator
directional_movement_index()
Directional Movement Index
elder_ray_index()
Elder Ray Index (Bull Power / Bear Power)
extended_moving_average_convergence_divergence()
MACD with controllable MA type
fast_stochastic()
Stochastic Fast
fisher_transform()
Fisher Transform
fixed_moving_average_convergence_divergence()
Moving Average Convergence/Divergence Fix 12/26
forecast_oscillator()
Forecast Oscillator
internal_bar_strength()
Internal Bar Strength
intraday_movement_index()
Intraday Momentum Index
kaufman_efficiency_ratio()
Kaufman Efficiency Ratio
kdj_stochastic()
KDJ Stochastic
know_sure_thing()
Know Sure Thing (Pring)
know_sure_thing_with_controllable_ma_type()
Know Sure Thing with controllable MA type
minus_directional_indicator()
Minus Directional Indicator
minus_directional_movement()
Minus Directional Movement
momentum()
Momentum
money_flow_index()
Money Flow Index
moving_average_convergence_divergence()
Moving Average Convergence/Divergence
percentage_price_oscillator()
Percentage Price Oscillator
plus_directional_indicator()
Plus Directional Indicator
plus_directional_movement()
Plus Directional Movement
premier_stochastic_oscillator()
Premier Stochastic Oscillator
qstick()
Qstick
ratio_of_change()
Rate of change ratio: (price/prevPrice)
relative_strength_index()
Relative Strength Index
schaff_trend_cycle()
Schaff Trend Cycle
stochastic()
Stochastic
stochastic_momentum_index()
Stochastic Momentum Index
stochastic_relative_strength_index()
Stochastic Relative Strength Index
triple_exponential_average()
1-day Rate-Of-Change (ROC) of a Triple Smooth EMA
true_strength_index()
True Strength Index
ultimate_oscillator()
Ultimate Oscillator
unsmoothed_chande_momentum_oscillator()
Chande Momentum Oscillator (Unsmoothed)
vertical_horizontal_filter()
Vertical Horizontal Filter
vortex_indicator()
Vortex Indicator
wavetrend_oscillator()
WaveTrend Oscillator
wilder_accumulative_swing_index()
Wilder Accumulative Swing Index
wilder_swing_index()
Wilder Swing Index
williams_accumulation_distribution()
Williams' Accumulation/Distribution
williams_fractal()
Williams Fractal
williams_oscillator()
Williams' %R

Overlap Studies

Indicators plotted directly on the price chart. Moving averages (SMA, EMA, WMA, DEMA, TEMA, KAMA), Bollinger Bands, Parabolic SAR, and other trend-following overlays.

acceleration_bands()
Acceleration Bands
arnaud_legoux_moving_average()
Arnaud Legoux Moving Average
bollinger_bands()
Bollinger Bands
chande_kroll_stop()
Chande Kroll Stop
donchian_channels()
Donchian Channels
double_exponential_moving_average()
Double Exponential Moving Average
exponential_moving_average()
Exponential Moving Average
extended_parabolic_stop_and_reverse()
Parabolic SAR - Extended
fractal_adaptive_moving_average()
Fractal Adaptive Moving Average
hull_moving_average()
Hull Moving Average
ichimoku_kinko_hyo()
Ichimoku Kinko Hyo
kaufman_adaptive_moving_average()
Kaufman Adaptive Moving Average
keltner_channels()
Keltner Channels
mcginley_dynamic()
McGinley Dynamic
mesa_adaptive_moving_average()
MESA Adaptive Moving Average
midpoint_period()
MidPoint over period
midpoint_price()
Midpoint Price over period
parabolic_stop_and_reverse()
Parabolic SAR
simple_moving_average()
Simple Moving Average
swiss_army_knife_butterworth_filter()
Swiss Army Knife - Butterworth Filter
swiss_army_knife_gaussian_filter()
Swiss Army Knife - Gaussian Filter
t3_exponential_moving_average()
Triple Exponential Moving Average (T3)
trendline()
Hilbert Transform - Instantaneous Trendline
triangular_moving_average()
Triangular Moving Average
triple_exponential_moving_average()
Triple Exponential Moving Average
variable_index_dynamic_moving_average()
Variable Index Dynamic Average
variable_moving_average_period()
Moving average with variable period
volume_weighted_moving_average()
Volume Weighted Moving Average
weighted_moving_average()
Weighted Moving Average
wilder_smoothed_moving_average()
Wilder's Smoothed Moving Average
zero_lag_exponential_moving_average()
Zero-Lag Exponential Moving Average

Cycle Indicators

Detect dominant market cycles in price data using Hilbert Transform methods. Estimate cycle period, phase, and the in-phase / quadrature components of the analytic signal.

dominant_cycle_period()
Hilbert Transform - Dominant Cycle Period
dominant_cycle_phase()
Hilbert Transform - Dominant Cycle Phase
phasor_components()
Hilbert Transform - Phasor Components
sine_wave()
Hilbert Transform - SineWave
swiss_army_knife_band_pass_filter()
Swiss Army Knife - Band-Pass Filter
swiss_army_knife_high_pass_filter()
Swiss Army Knife - High-Pass Filter
swiss_army_knife_two_pole_high_pass_filter()
Swiss Army Knife - Two-Pole High-Pass Filter
trend_cycle_mode()
Hilbert Transform - Trend vs Cycle Mode

Volume Indicators

Analyze trading volume to confirm price trends and spot divergences. Includes On-Balance Volume (OBV), Chaikin A/D Line, and A/D Oscillator.

arms_ease_of_movement()
Arms Ease of Movement
chaikin_accumulation_distribution_line()
Chaikin A/D Line
chaikin_accumulation_distribution_oscillator()
Chaikin A/D Oscillator
chaikin_money_flow()
Chaikin Money Flow
elders_force_index()
Elder's Force Index
klinger_volume_oscillator()
Klinger Volume Oscillator
market_facilitation_index()
Market Facilitation Index
negative_volume_index()
Negative Volume Index
on_balance_volume()
On Balance Volume
percentage_volume_oscillator()
Percentage Volume Oscillator
positive_volume_index()
Positive Volume Index
price_volume_trend()
Price Volume Trend
relative_volume()
Relative Volume
trading_volume()
Trading Volume
volume_weighted_average_price()
Volume Weighted Average Price

Volatility Indicators

Quantify the degree of price variation over a given period. Includes Average True Range (ATR), Normalized ATR (NATR), and True Range (TRANGE).

average_day_range()
Average Day Range
average_true_range()
Average True Range
bollinger_bands_percent_b()
Bollinger Bands %B
bollinger_bandwidth()
Bollinger BandWidth
chaikins_volatility()
Chaikin's Volatility
mass_index()
Mass Index
normalized_average_true_range()
Normalized Average True Range
relative_volatility_index()
Relative Volatility Index
relative_volatility_index_refined_high_low_form()
Relative Volatility Index, refined high/low form
rogers_satchell_volatility()
Rogers-Satchell Volatility
true_range()
True Range

Financial Charts

Build interactive candlestick and OHLC charts with plotly. Layer technical indicators directly onto charts using the S3 plotly method dispatch.

chart()
Create an OHLC Chart
chart_themes
Chart Themes
indicator()
Add Technical Indicators to a Chart
set_theme()
Set or List Chart Themes

Rolling Statistics

Compute rolling (moving-window) descriptive statistics over price or return series. Includes rolling variance, standard deviation, linear regression, and time series forecast.

rolling_beta()
Beta
rolling_correlation()
Pearson's Correlation Coefficient (r)
rolling_cumulative_sum()
Cumulative Sum
rolling_excess_kurtosis()
Rolling Excess Kurtosis
rolling_maximum()
Highest value over a specified period
rolling_median()
Rolling Median
rolling_minimum()
Lowest value over a specified period
rolling_percent_rank()
Percent Rank
rolling_percentile()
Percentile (nearest rank)
rolling_standard_deviation()
Standard Deviation
rolling_sum()
Summation
rolling_variance()
Variance

Price Transformations

Transform raw OHLC prices into derived series. Average Price, Median Price, Typical Price, and Weighted Close Price.

average_deviation()
Average Deviation
average_price()
Average Price
heikin_ashi_candles()
Heikin-Ashi Candles
median_price()
Median Price
typical_price()
Typical Price
weighted_close_price()
Weighted Close Price

Signal Generators

Generate trading signals using high-level functions.

cross_over()
Cross Over
cross_series()
Cross Series
cross_under()
Cross Under

Utility Functions

Utility functions used for downstream packages and wrappers that improves and simplifies the control-flow.

lookback()
Calculate lookback period

Financial Data

Built-in OHLCV datasets for examples, testing, and exploration. Includes daily price data for BTC, SPY, NVDA, and ATOM.

BTC
Bitcoin (BTC)
SPY
SPDR S&P 500 ETF (SPY)
NVDA
NVIDIA Corporation (NVDA)
ATOM
Cosmos (ATOM)
GOOGL
Alphabet Inc. (GOOGL)