A data consolidator that can make bigger bars from ticks over a given time span or a count of pieces of data.
More...
|
override bool | ShouldProcess (Tick data) |
| Determines whether or not the specified data should be processed More...
|
|
override void | AggregateBar (ref TradeBar workingBar, Tick data) |
| Aggregates the new 'data' into the 'workingBar'. The 'workingBar' will be null following the event firing More...
|
|
| TradeBarConsolidatorBase (TimeSpan period) |
| Creates a consolidator to produce a new 'TradeBar' representing the period More...
|
|
| TradeBarConsolidatorBase (int maxCount) |
| Creates a consolidator to produce a new 'TradeBar' representing the last count pieces of data More...
|
|
| TradeBarConsolidatorBase (int maxCount, TimeSpan period) |
| Creates a consolidator to produce a new 'TradeBar' representing the last count pieces of data or the period, whichever comes first More...
|
|
| TradeBarConsolidatorBase (Func< DateTime, CalendarInfo > func) |
| Creates a consolidator to produce a new 'TradeBar' representing the last count pieces of data or the period, whichever comes first More...
|
|
| TradeBarConsolidatorBase (PyObject pyfuncobj) |
| Creates a consolidator to produce a new 'TradeBar' representing the last count pieces of data or the period, whichever comes first More...
|
|
A data consolidator that can make bigger bars from ticks over a given time span or a count of pieces of data.
Definition at line 26 of file TickConsolidator.cs.
◆ TickConsolidator() [1/5]
QuantConnect.Data.Consolidators.TickConsolidator.TickConsolidator |
( |
TimeSpan |
period | ) |
|
Creates a consolidator to produce a new 'TradeBar' representing the period
- Parameters
-
period | The minimum span of time before emitting a consolidated bar |
Definition at line 32 of file TickConsolidator.cs.
◆ TickConsolidator() [2/5]
QuantConnect.Data.Consolidators.TickConsolidator.TickConsolidator |
( |
int |
maxCount | ) |
|
Creates a consolidator to produce a new 'TradeBar' representing the last count pieces of data
- Parameters
-
maxCount | The number of pieces to accept before emitting a consolidated bar |
Definition at line 41 of file TickConsolidator.cs.
◆ TickConsolidator() [3/5]
QuantConnect.Data.Consolidators.TickConsolidator.TickConsolidator |
( |
int |
maxCount, |
|
|
TimeSpan |
period |
|
) |
| |
Creates a consolidator to produce a new 'TradeBar' representing the last count pieces of data or the period, whichever comes first
- Parameters
-
maxCount | The number of pieces to accept before emitting a consolidated bar |
period | The minimum span of time before emitting a consolidated bar |
Definition at line 51 of file TickConsolidator.cs.
◆ TickConsolidator() [4/5]
QuantConnect.Data.Consolidators.TickConsolidator.TickConsolidator |
( |
Func< DateTime, CalendarInfo > |
func | ) |
|
◆ TickConsolidator() [5/5]
QuantConnect.Data.Consolidators.TickConsolidator.TickConsolidator |
( |
PyObject |
pyfuncobj | ) |
|
Creates a consolidator to produce a new 'TradeBar' representing the last count pieces of data or the period, whichever comes first
- Parameters
-
pyfuncobj | Python function object that defines the start time of a consolidated data |
Definition at line 69 of file TickConsolidator.cs.
◆ ShouldProcess()
override bool QuantConnect.Data.Consolidators.TickConsolidator.ShouldProcess |
( |
Tick |
data | ) |
|
|
protected |
Determines whether or not the specified data should be processed
- Parameters
-
- Returns
- True if the consolidator should process this data, false otherwise
Definition at line 79 of file TickConsolidator.cs.
◆ AggregateBar()
override void QuantConnect.Data.Consolidators.TickConsolidator.AggregateBar |
( |
ref TradeBar |
workingBar, |
|
|
Tick |
data |
|
) |
| |
|
protected |
Aggregates the new 'data' into the 'workingBar'. The 'workingBar' will be null following the event firing
- Parameters
-
workingBar | The bar we're building |
data | The new data |
Definition at line 90 of file TickConsolidator.cs.
The documentation for this class was generated from the following file: