Skip to content

Oneliner in "def init(self)". #754

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

You must be logged in to vote

I'd do it like:

self.rsi14 = self.I(lambda: ta.rsi(close.s), 14) > 50)
# or
self.rsi14 = self.I(lambda *args: ta.rsi(*args) > 50, self.data.Close.s, 14)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@traderblakeq
Comment options

Answer selected by traderblakeq
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