Show / Hide Table of Contents

    Class HistoricalData

    Represent access to historical data information and indicators control.

    Namespace: TradingPlatform.BusinessLayer
    Syntax
    public class HistoricalData : IDisposable, IIndicatorsCollection, IIndicatorRefresher

    Properties

    Aggregation

    Gets HistoricalData aggregation

    Declaration
    public HistoryAggregation Aggregation { get; }
    Property Value
    Type Description
    HistoryAggregation

    BuiltInIndicators

    Declaration
    public BuiltInIndicators BuiltInIndicators { get; }
    Property Value
    Type Description
    BuiltInIndicators

    Count

    Gets HistoricalData items amount

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32

    FromTime

    Gets HistoricalData left time boundary

    Declaration
    public DateTime FromTime { get; }
    Property Value
    Type Description
    System.DateTime

    HistoryType

    Gets HistoricalData history type

    Declaration
    public HistoryType HistoryType { get; }
    Property Value
    Type Description
    TradingPlatform.BusinessLayer.HistoryType

    Item[Int32, SeekOriginHistory]

    Retrives HistoricalData item by indexing offset and direction to find.

    Declaration
    public IHistoryItem this[int offset, SeekOriginHistory origin = SeekOriginHistory.End] { get; }
    Parameters
    Type Name Description
    System.Int32 offset
    TradingPlatform.BusinessLayer.SeekOriginHistory origin
    Property Value
    Type Description
    TradingPlatform.BusinessLayer.IHistoryItem

    Period

    Gets HistoricalData Period

    Declaration
    public Period Period { get; }
    Property Value
    Type Description
    Period

    Symbol

    Gets HistoricalData symbol

    Declaration
    public Symbol Symbol { get; }
    Property Value
    Type Description
    Symbol

    ToTime

    Gets HistoricalData right time boundary

    Declaration
    public DateTime ToTime { get; }
    Property Value
    Type Description
    System.DateTime

    Methods

    AddIndicator(String, SettingItem[])

    Creates indicator by it's name and if it succesfully created adds it to the HistoricalData

    Declaration
    public Indicator AddIndicator(string indicatorName, params SettingItem[] settings)
    Parameters
    Type Name Description
    System.String indicatorName
    TradingPlatform.BusinessLayer.SettingItem[] settings
    Returns
    Type Description
    Indicator

    AddIndicator(Indicator)

    Adds indicator to the HistoricalData

    Declaration
    public void AddIndicator(Indicator indicator)
    Parameters
    Type Name Description
    Indicator indicator

    GetIndexByTime(Int64, SeekOriginHistory)

    Gets index by time with counting on search direction

    Declaration
    public double GetIndexByTime(long time, SeekOriginHistory origin = SeekOriginHistory.End)
    Parameters
    Type Name Description
    System.Int64 time
    TradingPlatform.BusinessLayer.SeekOriginHistory origin
    Returns
    Type Description
    System.Double

    Reload()

    Reloads entire HistoricalData

    Declaration
    public void Reload()

    RemoveIndicator(Indicator)

    Removes indicator from the HistoricalData

    Declaration
    public void RemoveIndicator(Indicator indicator)
    Parameters
    Type Name Description
    Indicator indicator

    Events

    HistoryItemUpdated

    Will be triggered when current historical item changed or updated

    Declaration
    public event HistoryEventHandler HistoryItemUpdated
    Event Type
    Type Description
    TradingPlatform.BusinessLayer.HistoryEventHandler

    NewHistoryItem

    Will be triggered when new historical item created

    Declaration
    public event HistoryEventHandler NewHistoryItem
    Event Type
    Type Description
    TradingPlatform.BusinessLayer.HistoryEventHandler
    Back to top Copyright © 2017 - 2018 Quantower LLC