Customize bt.plot() graph #1076
-
Hi all, I would like to ask if we could further customize the plot bt.plot() return. For example, I am writing a breakout strategy and would like to draw support and resistance lines on bt.plot() graph. Do I need to edit the plot functions in the source or there are simpler ways? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello. Are these regular horizontal lines? Are they not in the Talib?? If not, then make two indicators, a numpy array with the calculation of values for constructing lines. And add to I.
|
Beta Was this translation helpful? Give feedback.
Hello. Are these regular horizontal lines? Are they not in the Talib?? If not, then make two indicators, a numpy array with the calculation of values for constructing lines. And add to I.
self.my_line1 = self.I(lambda: self.my_numpy1, overlay=True) self.my_line2 = self.I(lambda: self.my_numpy2, overlay=True)