mplfinance
mplfinance copied to clipboard
SL and TP line
Good morning, I'm something new using the mplfinance library .... is there a way to draw a line on the graph to identify the SL and TP calculated in% by the closing of the last bar?
You will want to use the hlines kwarg, explained here: https://github.com/matplotlib/mplfinance/blob/master/examples/using_lines.ipynb
However you will have to calculate the values yourself and pass them into mpf.plot() using the hlines kwarg.
Hope that helps.
thank you very much, i will try
i did it already. SL is the red line, and TP1/2 are the blue ones. Was this similar to your idea?