make_candle_labels#
API documentation for tradingstrategy.charting.candle_chart.make_candle_labels Python function.
- make_candle_labels(df, dollar_prices=True, base_token_name=None, quote_token_name=None, line_separator='<br>', candle_decimals=4)[source]#
Generate individual labels for OHLCV chart candles.
Used to display toolips on OHLCV chart.
- Poram candle_df:
Candles for which we need tooltips.
- Poram label_df:
A target dataframe
A column “label” is generated and it is populated for every index timestamp that does not have label yet.
- Parameters:
- Returns:
Series of text label
- Return type: