backtrader.stores.vchartfile module

VChartFile Store Module - VisualChart file store.

This module provides the VChartFile store for accessing VisualChart binary files by market code.

Classes:

VChartFile: Store for VisualChart binary files.

示例

>>> store = bt.stores.VChartFile(path='C:\VisualChart\Data')
>>> data = bt.feeds.VChartFile(dataname='015ES', store=store)
>>> cerebro.adddata(data)
class backtrader.stores.vchartfile.VChartFile[源代码]

基类:Store

Store provider for Visual Chart binary files

Params:

  • path (default:None):

    If the path is None and running under Windows, the registry will be examined to find the root directory of the Visual Chart files.

params = (('path', None),)
__init__()[源代码]

Initialize the VChartFile store.

Determines the VisualChart data directory path.

get_datapath()[源代码]

Get the VisualChart data directory path.

返回:

Path to the VisualChart data directory.

返回类型:

str