Show / Hide Table of Contents

Class DataSourceHelper

Helper functionality for data sources

Inheritance
object
DataSourceHelper
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TuringTrader.Simulator
Assembly: TuringTrader.Simulator.dll
Syntax
public static class DataSourceHelper

Methods

| Edit this page View Source

AlignWithMarket(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

  • Edit this page
  • View Source
In this article
Back to top Copyright © 2011-2023, Bertram Enterprises LLC dba TuringTrader.com