Rohan Chopra
Results
1
comments of
Rohan Chopra
How to add Horizontal Line in make_addplot? make_addplot(rsi,panel='lower',color='g',hlines=[20,80])
@toksis, You should use `secondary_y`. Your RSI plot and lines have a different axis. ```python apds = [mpf.make_addplot(buy_signal,scatter=True,markersize=100,marker='^'), mpf.make_addplot(sell_signal,scatter=True,markersize=100,marker='v'), mpf.make_addplot(close_signal,scatter=True,markersize=100,marker='o'), mpf.make_addplot(line80,panel='lower',color='r',secondary_y=False), mpf.make_addplot(line20,panel='lower',color='g',secondary_y=False), mpf.make_addplot(rsi,panel='lower',color='g',secondary_y=False) ] ```