# Consolidator Types

## Combining Consolidators

### Introduction

Sequential consolidators wire two internal consolidators together such that the output of the first consolidator is the input to the second consolidator and the output of the second consolidator is the output of the sequential consolidator.

### Create Consolidators

To create a sequential consolidator, create two consolidators and then pass them to the SequentialConsolidator constructor.

# This first consolidator produces a consolidated bar after a day passes

# This second consolidators produces a consolidated bar after it sees 3 samples

# This sequential consolidator aggregates three 1-day bars together
self.consolidator = SequentialConsolidator(one_day_consolidator, three_count_consolidator)
// This first consolidator produces a consolidated bar after a day passes

// This second consolidators produces a consolidated bar after it sees 3 samples
_consolidator = new SequentialConsolidator(oneDayConsolidator, threeCountConsolidator);