Skip to content

Access what date def next(self): is currently on? #663

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

You must be logged in to vote

See Strategy.data.index.

    def next(self):
        current_bar_idx = len(self.data) - 1
        current_date = self.data.index[-1]

Replies: 1 comment 1 reply

Comment options

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

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