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.

Example

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

Bases: 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__()[source]

Initialize the VChartFile store.

Determines the VisualChart data directory path.

get_datapath()[source]

Get the VisualChart data directory path.

Returns:

Path to the VisualChart data directory.

Return type:

str