backtrader.feeds.blaze module

Blaze Data Feed Module - Blaze data interface.

自 The 版本弃用: Blaze project (blaze.pydata.org) is no longer maintained. This module is retained for backward compatibility but will be removed in a future release. Consider using PandasData instead.

Classes:

BlazeData: Blaze Data object feed.

示例

>>> import blaze as bz
>>> data = bz.Data('data.csv')
>>> feed = bt.feeds.BlazeData(dataname=data)
>>> cerebro.adddata(feed)
class backtrader.feeds.blaze.BlazeData[源代码]

基类:DataBase

Support for Blaze Data objects.

Only numeric indices to columns are supported.

备注

  • The dataname parameter is a blaze Data object

  • A negative value in any of the parameters for the Data lines indicates it's not present in the DataFrame it is

datafields = ['datetime', 'open', 'high', 'low', 'close', 'volume', 'openinterest']
__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()[源代码]

Start the Blaze data feed.

Initializes the row iterator from the dataname.

frompackages = ()
packages = ()