Backtrader 22.214.171.124 - Is docheckover declaration missing in resamplerfilter.py __call__
Running with backtrader-master-126.96.36.199, my program quit everytime after running for a little while with the following message:
..beta/lib/python3.5/site-packages/backtrader/resamplerfilter.py", line 650, in call
UnboundLocalError: local variable 'docheckover' referenced before assignment
Without knowing the actual use of the variable, I added the following and looks like can temporarily fix the issue.
def __call__(self, data, fromcheck=False, forcedata=None): consumed = False onedge = False takinglate = False # ADD HERE docheckover = False
This is an error introduced for the trading calendar integration.
Will be addressed shortly.
Affecting only replaying. This commit should alleviate the situation