Implementation of the IIndicatorDataProvider interface that provides access to various data and services related to an indicator.
More...
|
| | IndicatorDataProvider (ITradingStatisticsProvider tradingStatisticsProvider, IIndicatorServiceProvider indicatorServiceProvider, IOnlineDataProvider onlineDataProvider, IPlatformSettings platformSettings, IInstrumentInfo instrumentInfo, ITradingManager tradingManager, ICandleCreator candleCreator, IChart chartInfo) |
| | Initializes a new instance of the IndicatorDataProvider class.
|
| |
| T | GetService< T > () |
| | Resolves registered services.
|
| |
| DateTime | GetCustomStartTime (DateTime time, TimeSpan timeFrame) |
| | Gets custom candle begin time with specified timeframe and current time.- Parameters
-
- Returns
true if a new trading session has started; otherwise, false.
|
| |
| bool | IsNewSession (DateTime prevTime, DateTime newTime) |
| | Checks whether a new trading session has started between the specified previous time and new time.- Parameters
-
| prevTime | The previous time. |
| newTime | The new time. |
- Returns
true if a new trading session has started; otherwise, false.
|
| |
| bool | IsNewWeek (DateTime prevTime, DateTime newTime) |
| | Checks whether a new trading week has started between the specified previous time and new time.- Parameters
-
| prevTime | The previous time. |
| newTime | The new time. |
- Returns
true if a new trading week has started; otherwise, false.
|
| |
| bool | IsNewMonth (DateTime prevTime, DateTime newTime) |
| | Checks whether a new trading month has started between the specified previous time and new time.- Parameters
-
| prevTime | The previous time. |
| newTime | The new time. |
- Returns
true if a new trading month has started; otherwise, false.
|
| |
| void | AddAlert (string soundFile, string instrument, string message, CrossColor background, CrossColor foreground, DateTime? time=null) |
| | Adds an alert with the specified details to the indicator.
|
| |
| void | DoActionInGuiThread (Action action) |
| | Executes the specified action on the GUI thread.
|
| |
| override string | ToString () |
| | Returns the name of the indicator data provider.
|
| |
| T | GetService< T > () |
| | Resolves registered services.
|
| |
| DateTime | GetCustomStartTime (DateTime time, TimeSpan timeFrame) |
| | Gets custom candle begin time with specified timeframe and current time.
|
| |
| bool | IsNewSession (DateTime prevTime, DateTime newTime) |
| | Checks whether a new trading session has started between the specified previous time and new time.
|
| |
| bool | IsNewWeek (DateTime prevTime, DateTime newTime) |
| | Checks whether a new trading week has started between the specified previous time and new time.
|
| |
| bool | IsNewMonth (DateTime prevTime, DateTime newTime) |
| | Checks whether a new trading month has started between the specified previous time and new time.
|
| |
| void | AddAlert (string soundFile, string instrument, string message, CrossColor background, CrossColor foreground, DateTime? time=null) |
| | Adds an alert with the specified details to the indicator.
|
| |
| void | DoActionInGuiThread (Action action) |
| | Executes the specified action on the GUI thread.
|
| |
|
| string | Name [get] |
| | Gets or sets the name of the indicator data provider.
|
| |
| IChart | ChartInfo [get] |
| | Gets the chart information associated with the indicator.
|
| |
| IPlatformSettings | GlobalPlatformSettings [get] |
| | Gets or sets the global platform settings used by the indicator.
|
| |
| IOnlineDataProvider | OnlineDataProvider [get] |
| | Gets or sets the online data provider used by the indicator to fetch real-time data.
|
| |
| ObservableCollection< CandlePartSeries > | CandlesDataSeries [get] |
| | Gets or sets the collection of candle part series used by the indicator.
|
| |
| ObservableCollection< string > | Panels [get] |
| | Gets or sets the collection of panels associated with the indicator.
|
| |
| MarketDepthInfoProvider | MarketDepthInfoProvider [get] |
| | Gets or sets the market depth information provider used by the indicator to access market depth data.
|
| |
| IInstrumentInfo | InstrumentInfo [get, set] |
| | Gets or sets the instrument information associated with the indicator's instrument.
|
| |
| ITradingManager | TradingManager [get] |
| | Gets the trading manager used by the indicator to manage trading-related tasks.
|
| |
| ITradingStatisticsProvider | TradingStatisticsProvider [get] |
| | Gets the trading statistics provider used by the indicator to access trading-related statistics.
|
| |
| IOptionsDataProvider? | OptionsDataProvider [get, set] |
| | Gets the options data provider for the chart's security, or null when the host does not supply options data. See IOptionsDataProvider.IsAvailable. The default implementation keeps custom hosts source-compatible.
|
| |
| ICandlesDataProvider? | CandlesDataProvider [get, set] |
| | Gets the candle series provider (other timeframes / other instruments), or null when the host does not supply candle series. See ICandlesDataProvider.IsAvailable. The default implementation keeps custom hosts source-compatible.
|
| |
| IInstrumentMarketDataProvider? | InstrumentMarketDataProvider [get, set] |
| | Gets the live market-data provider (trades / best bid-ask / order book of other instruments), or null when the host does not supply it. See IInstrumentMarketDataProvider.IsAvailable. The default implementation keeps custom hosts source-compatible.
|
| |
| string | Name [get] |
| | Gets the name of the indicator data provider.
|
| |
| IChart | ChartInfo [get] |
| | Gets the chart information associated with the indicator.
|
| |
| IPlatformSettings | GlobalPlatformSettings [get] |
| | Gets the global platform settings used by the indicator.
|
| |
| IOnlineDataProvider | OnlineDataProvider [get] |
| | Gets the online data provider used by the indicator to fetch real-time data.
|
| |
| ObservableCollection< CandlePartSeries > | CandlesDataSeries [get] |
| | Gets the collection of candle part series used by the indicator.
|
| |
| ObservableCollection< string > | Panels [get] |
| | Gets the collection of panels associated with the indicator.
|
| |
| MarketDepthInfoProvider | MarketDepthInfoProvider [get] |
| | Gets the market depth information provider used by the indicator to access market depth data.
|
| |
| IInstrumentInfo | InstrumentInfo [get] |
| | Gets the instrument information associated with the indicator's instrument.
|
| |
| ITradingManager | TradingManager [get] |
| | Gets the trading manager used by the indicator to manage trading-related tasks.
|
| |
| ITradingStatisticsProvider | TradingStatisticsProvider [get] |
| | Gets the trading statistics provider used by the indicator to access trading-related statistics.
|
| |
| IOptionsDataProvider? | OptionsDataProvider [get] |
| | Gets the options data provider for the chart's security, or null when the host does not supply options data. See IOptionsDataProvider.IsAvailable. The default implementation keeps custom hosts source-compatible.
|
| |
| ICandlesDataProvider? | CandlesDataProvider [get] |
| | Gets the candle series provider (other timeframes / other instruments), or null when the host does not supply candle series. See ICandlesDataProvider.IsAvailable. The default implementation keeps custom hosts source-compatible.
|
| |
| IInstrumentMarketDataProvider? | InstrumentMarketDataProvider [get] |
| | Gets the live market-data provider (trades / best bid-ask / order book of other instruments), or null when the host does not supply it. See IInstrumentMarketDataProvider.IsAvailable. The default implementation keeps custom hosts source-compatible.
|
| |
Implementation of the IIndicatorDataProvider interface that provides access to various data and services related to an indicator.