Access what date def next(self): is currently on? #663
Answered
by
kernc
bioluminesceme
asked this question in
Q&A
-
Is there an easy way to access what date def next is currently on? I tried searching the docs but only found OHLCV in self.data
Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
kernc
Jun 17, 2022
Replies: 1 comment 1 reply
-
See def next(self):
current_bar_idx = len(self.data) - 1
current_date = self.data.index[-1] |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
bioluminesceme
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See
Strategy.data.index
.