Return historical data for the most recent number of data bars
Namespace: Stator.libPublic.DataPlugins
Assembly: libPublic (in libPublic.dll) Version: 4.0.2018.0 (4.0.18103)
Syntax
IDictionary<DateTime, IPrice> GetHistoricalData( IGetDataForItem GetDataForItem, string dataFile, out IList<IPluginError> PluginErrors, int recentBars )
Parameters
- GetDataForItem
- Type: Stator.libPublic.DataPlugins.DataObjectInterfacesIGetDataForItem
The item which data will be returned for (IGetDataForItem) - dataFile
- Type: SystemString
The filepath/URL/pointer for the item - PluginErrors
- Type: System.Collections.GenericIListIPluginError
A list of exceptions/errors occuring within the plugin as a result of this method (IPluginError) - recentBars
- Type: SystemInt32
The number of data bars which will be returned as a result of this method
i.e. one bar represents one point of data which could represent a day, week, month, hour etc
Return Value
Type: IDictionaryDateTime, IPriceA dictionary with DateTime key and IPrice value (IPrice)
See Also