Display multiple lines in indicator plot #665
Answered
by
kernc
botradingblog1
asked this question in
Q&A
-
Hi guys, I was wondering if there's a way to plot multiple lines in the indicator graphs, e.g. MACD and MADC signal line? Currently, I implement the MACD and MADC signal as two separate indicators. Any guidance greatly appreciated.
|
Beta Was this translation helpful? Give feedback.
Answered by
kernc
Jun 19, 2022
Replies: 1 comment 1 reply
-
Quoting the API reference for
You can simply return a sequence of arrays to have them contained in the same indicator plot: self.macd = self.I(lambda *args: (MACD(*args), MACD_SIGNAL(*args)),
self.data.df, self.macd_1_fast, self.macd_1_slow, self.macd_1_signal) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
botradingblog1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Quoting the API reference for
Strategy.I
:You can simply return a sequence of arrays to have them contained in the same indicator plot: