For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
I think we came across a bug in backtrader/analyzer.py
-
I think we came across a bug with the analyzers when running on lower-than-daily timeframes. It seems that the extradays added in
backtrader/analyzer.py
on commit c31545d currently have no effect.The symptom of this is that when using the TimeReturn analyzer with hourly candles, any
self.dtkey
at time 23:59 will be missing fromself.rets[self.dtkey]
.However, I started using backtrader only a month ago and would very much like to get feedback on this from someone more experienced with the framework.
Here is the PR in question: https://github.com/backtrader/backtrader/pull/388/files
-
Will look into it.
-
Thanks! :)