For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

Live data error ValueError: min() arg is an empty sequence



  • 2020-05-04, 22:03:35, Price 1.37
    2020-05-04, 22:03:37, Price 1.38
    2020-05-04, 22:03:40, Price 1.38
    2020-05-04, 22:03:49, Price 1.38
    2020-05-04, 22:03:51, Price 1.38
    2020-05-04, 22:04:01, Price 1.37
    2020-05-04, 22:04:03, Price 1.37
    2020-05-04, 22:04:04, Price 1.37
    2020-05-04, 22:04:05, Price 1.37
    2020-05-04, 22:04:06, Price 1.37
    2020-05-04, 22:04:08, Price 1.37
    2020-05-04, 22:04:09, Price 1.37
    2020-05-04, 22:04:13, Price 1.37
    2020-05-04, 22:04:18, Price 1.37
    2020-05-04, 22:04:21, Price 1.37
    2020-05-04, 22:04:23, Price 1.37
    2020-05-04, 22:04:24, Price 1.38
    2020-05-04, 22:04:25, Price 1.38
    2020-05-04, 22:04:40, Price 1.38
    2020-05-04, 22:04:44, Price 1.38
    2020-05-04, 22:04:54, Price 1.38
    2020-05-04, 22:04:56, Price 1.38
    2020-05-04, 22:04:58, Price 1.38
    Traceback (most recent call last):
    "/home/x777/anaconda3/envs/env_backtrader/lib/python3.6/site-packages/backtrader/cerebro.py", line 1130, in run
        runstrat = self.runstrategies(iterstrat)
      File "/home/x777/anaconda3/envs/env_backtrader/lib/python3.6/site-packages/backtrader/cerebro.py", line 1301, in runstrategies
        self._runnext(runstrats)
      File "/home/x777/anaconda3/envs/env_backtrader/lib/python3.6/site-packages/backtrader/cerebro.py", line 1560, in _runnext
        dt0 = min((d for i, d in enumerate(dts)
    ValueError: min() arg is an empty sequence
    

    After random time of running script falling. I saw similar error on forum, but not clear understand why it happens. Can anybody explain me? Thanks!


Log in to reply
 

});