'OHLC and Volume Data on the same Panel using mplfinance

Is there a way to plot the volume and OHLC data on the same panel?

I tried putting the panel IDs same for both but that only plots the volume data (I guess the volume data is plotted onto later, and hence replaces the OHLC data?).

    kwargs = {
        'type': "candle",
        'volume': True,
        'volume_panel': 0,
        'main_panel': 0,
        'mav': (6,9),
        'title': f"{self.meta['2. Symbol']}",
        'show_nontrading': True,
        'style': self.plotStyle,
        'addplot': adps
    }

    mplf.plot(self.ohlcv, **kwargs)

Example with the code



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source