Home > Back-end >  How to properly add a percentage change box inside a Japanese Candlestick chart using MatPlotLibFina
How to properly add a percentage change box inside a Japanese Candlestick chart using MatPlotLibFina

Time:10-31

Context

I'm trying to figure out a good way to add percentage price change boxes inside a custom Japanese Candlestick chart that I have made using the output image

If I decided to remove the following lines from the function:

for i in list(pct_change_boxes.values()):
    list_of_plots.append(i)

The following output is thrown:

second output

Desired output

I was expecting my script to print a image like the one down below, it essentially shows how much the price increased or decreased in percentage values based on the 3rd parameter passed to the mplf_plotting function:

desired output

The Question

How could I fix my function to throw an output like the desired one?

CodePudding user response:

The closest thing I have come up with was to make use of the following original MatPlotLib functions: solved

  • Related