Skip to content

Setting limits for Y-axis #106

Closed
Closed
@Nextein

Description

@Nextein

Hello,
I'm trying to plot MACD using mplfinance but the histogram is an issue. It was mentioned elsewhere that histograms in the lower panel are not implemented yet and a trick around it is to set the 'Volume' column to the histogram values we want to plot and set volume=True in mpf.plot(). The issue with his is that the MACD lines don't fit in the lower panel with the scale used for the volume. As a result, it would be necessary to have the MACD lines in a separate y-axis than the 'Volume' histogram.

Using make_addplots() to add lines to the lower panel, how do you make them have a different y-axis than the volume?

Thank you for your time,

Marc

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requestedreleasedcode merged into repo AND released to Pypi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions