Skip to content

Selection of output chart for data #419

Answered by kernc
j209177 asked this question in Q&A
Discussion options

You must be logged in to vote

To join line 1 and line 3 on the same indicator chart, you'd return a tuple of both series in the same indicator function. Something like:

    def init(self):
        ...
        def sma_cross():
            return SMA(self.data.bid_option_size, 1), SMA(self.data.bid_option_size, 20)
        self.bid_option_size1, self.bid_option_size20 = self.I(sma_cross, color=['black', 'red'])

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@j209177
Comment options

@kernc
Comment options

@j209177
Comment options

Answer selected by j209177
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants