candle_chart#

API documentation for tradingstrategy.charting.candle_chart Python module in Trading Strategy.

Module description#

Drawing OHLCV candle charts using Plotly.

Draw price charts using Plotly.

  • Candle charts

  • Open, high, low, close (OHLC)

  • Open, high, low, close, volume (OHLCV)

  • Dark and light themes

Classes#

VolumeBarMode

Should candlestick chart come with the volume bars.

Functions#

create_label(row)

Create labels for a single candle.

make_candle_labels(df[, dollar_prices, ...])

Generate individual labels for OHLCV chart candles.

validate_ohclv_dataframe(candles)

Ensures that ohclv dataframe contains valid data: 1.

validate_plot_info(volume_bar_mode, ...)

Validate plot info to ensure that it is valid for the given volume_bar_mode, num_detached_indicators, relative_sizing, and subplot_names

visualise_ohlcv(candles[, chart_name, ...])

Draw a candlestick chart.