Data Flow¶
Data moves through RegimeFlow in a predictable pipeline: ingestion, validation, normalization, then conversion into events for the engine.
Pipeline Diagram¶
flowchart LR
A[Raw Data] --> B[Data Source]
B --> C[Validation]
C --> D[Normalization]
D --> E[Event Generator]
E --> F[Engine Loop]
F --> G[Strategy]
F --> H[Portfolio + Metrics]
Pipeline Stages¶
- Ingestion from CSV, API, DB, or mmap sources.
- Validation rules applied to timestamps, price bounds, gaps, and outliers.
- Normalization into canonical bars, ticks, and order books.
- Event generation for the engine loop.
Data Source Factory¶
The data source is built by DataSourceFactory::create from the data config. See guide/data-sources.md for supported types and fields.
Validation Controls¶
Validation behavior is configured under validation.* and applies to CSV, API, and DB sources.
See:
- reference/data-validation.md
- guide/data-sources.md
Event Output¶
The output of the data pipeline is a stream of Bar, Tick, OrderBook, and system events that feed the strategy context.