How to display the candle above the other lines in plot using mplfinance?

Viewed 99

I wanted to draw the candle above lines. But in my plot, all lines are over the candle. So I'm wondering how I draw the candle "on" the line. Any opinions would be helpful.

     apds = [ mpf.make_addplot(a.shift(-26)[howmove:],color='000000',alpha=0.5),
             mpf.make_addplot(b.shift(-26)[howmove:],color='000000',alpha=0.3),
             mpf.make_addplot(c.shift(-52)[howmove:],color='000000',alpha=0.4)]    
     mpf.plot(dff[howmove:], axisoff=True, addplot=apds, figratio=[3,1], figscale=0.5,
             type='candle',update_width_config=dict(candle_linewidth=2), 
             fill_between=dict(y1=hp1.values,y2=hp2.values, alpha=0.15,color='grey'), tight_layout=True,
             style=mpf.make_mpf_style(base_mpf_style='default', facecolor='FFFFFF', gridstyle=''),ylim=[ymin,ymax])

!result(https://imgur.com/lLoWLi5)

1 Answers

There is an enhancement request for this here. Hopefully will get to it sometime in the next 4 to 8 weeks.

Related