For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
How to get datetime list from an indicator
-
Reason to get such line is to export all data lines of an indicator to a DataFrame for checking data correctness, described as here
Thanks in advance.
-
Check out this thread https://community.backtrader.com/topic/1900/multiple-time-period-on-a-single-stock/6#
-
Thanks.
Right now I can very easy to get such line with:[dt.fromordinal(int(v)) for v in ind.data.datetime.array]