昨日まででKABU+のCSVを読み込んで Backtrader でバックテストをする準備が整った。
ここで、下記のスクリプトを実行しようとしているが、期待通りに動かないので現在修正中。
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-0e597282e318> in <module>()
24 else:
25 b = Bokeh(style='bar', plot_mode='single', scheme=Tradimo())
---> 26 cerebro.plot(b, iplot=save_file)
9 frames
/usr/lib/python3.6/inspect.py in getfile(object)
652 if hasattr(object, '__file__'):
653 return object.__file__
--> 654 raise TypeError('{!r} is a built-in class'.format(object))
655 if ismethod(object):
656 object = object.__func__
TypeError: <module '__main__'> is a built-in class