Class DataSourceHelper
Helper functionality for data sources
Inherited Members
Namespace: TuringTrader.Simulator
Assembly: TuringTrader.Simulator.dll
Syntax
public static class DataSourceHelper
Methods
| Edit this page View SourceAlignWithMarket(List<Bar>, DateTime, DateTime)
Align bars with market dates
Declaration
public static List<Bar> AlignWithMarket(List<Bar> rawBars, DateTime startTime, DateTime endTime)
Parameters
Type | Name | Description |
---|---|---|
List<Bar> | rawBars | raw bars, unaligned |
DateTime | startTime | start time |
DateTime | endTime | end time |
Returns
Type | Description |
---|---|
List<Bar> | bars, aligned with US trading days |