Class HistoricalData
Represent access to historical data information and indicators control.
public class HistoricalData : IDisposable, IIndicatorsCollection, IIndicatorRefresher
Properties
Gets HistoricalData aggregation
Declaration
public HistoryAggregation Aggregation { get; }
Property Value
Declaration
public BuiltInIndicators BuiltInIndicators { get; }
Property Value
Gets HistoricalData items amount
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
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 |
|
Gets HistoricalData Period
Declaration
public Period Period { get; }
Property Value
Gets HistoricalData symbol
Declaration
public Symbol Symbol { get; }
Property Value
Gets HistoricalData right time boundary
Declaration
public DateTime ToTime { get; }
Property Value
Type |
Description |
System.DateTime |
|
Methods
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
Adds indicator to the HistoricalData
Declaration
public void AddIndicator(Indicator indicator)
Parameters
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 |
|
Reloads entire HistoricalData
Declaration
Removes indicator from the HistoricalData
Declaration
public void RemoveIndicator(Indicator indicator)
Parameters
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 |
|