-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
-
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.
All reactions
Answered by
kernc
Nov 22, 2021
How do I convert this to clock time?
You can use entry_bar and exit_bar as indexes into Strategy.data.index
.
nth candle of the day
See #188 (comment), #502 (comment).
Replies: 1 comment
-
How do I convert this to clock time?
You can use entry_bar and exit_bar as indexes into Strategy.data.index
.
nth candle of the day
See #188 (comment), #502 (comment).
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Answer selected by
umashgh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment