-
Hi, I am trying to access closed trades from _strategy object. The time is mentioned as entry_bar to exit_bar. How do I convert this to clock time? Also related: Can I access the bar info in strategy.next() function? So as to backtest strategies that depend on the nth candle of the day? |
Beta Was this translation helpful? Give feedback.
Answered by
kernc
Nov 22, 2021
Replies: 1 comment
-
You can use entry_bar and exit_bar as indexes into
See #188 (comment), #502 (comment). |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
umashgh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use entry_bar and exit_bar as indexes into
Strategy.data.index
.See #188 (comment), #502 (comment).