backtrader.feeds.vchartfile module

VChartFile Data Feed Module - VisualChart file interface.

This module provides the VChartFile feed for reading VisualChart binary on-disk files using market codes.

Classes:

VChartFile: VisualChart binary file feed by market code.

Example

>>> data = bt.feeds.VChartFile(dataname='015ES')
>>> cerebro.adddata(data)
class backtrader.feeds.vchartfile.VChartFile[source]

Bases: DataBase

Support for Visual Chart binary on-disk files for both daily and intradaily formats.

Note

  • dataname: Market code displayed by Visual Chart. Example: 015ES for EuroStoxx 50 continuous future

__init__(*args, **kwargs)

Initialize a LineMultiple instance.

Sets up the internal state for managing multiple lines, including line type indicator, lines collection, clock reference, and line iterator tracking.

Initializes:

_ltype: Line type indicator (None for base LineMultiple). lines: Collection of line objects (creates if not exists). _clock: Clock reference for synchronization. _lineiterators: Dictionary tracking registered lineiterators. _minperiod: Minimum period requirement (defaults to 1).

start()[source]

Start the VChartFile data feed.

Opens the VisualChart binary file for reading.

stop()[source]

Stop the VChartFile data feed.

Closes the open file handle.

frompackages = ()
packages = ()