Interface IIndicatorDataProvider
- Namespace
- ATAS.Indicators
- Assembly
- ATAS.Indicators.dll
Represents a data provider for an indicator, providing access to various data and services related to the indicator.
public interface IIndicatorDataProvider
- Extension Methods
Properties
CandlesDataProvider
Gets the candle series provider (other timeframes / other instruments), or null when the host does not supply candle series. See IsAvailable. The default implementation keeps custom hosts source-compatible.
Added in ATAS 8.0.15.
ICandlesDataProvider? CandlesDataProvider { get; }
Property Value
CandlesDataSeries
Gets the collection of candle part series used by the indicator.
ObservableCollection<CandlePartSeries> CandlesDataSeries { get; }
Property Value
- ObservableCollection<CandlePartSeries>
ChartInfo
Gets the chart information associated with the indicator.
IChart ChartInfo { get; }
Property Value
GlobalPlatformSettings
Gets the global platform settings used by the indicator.
IPlatformSettings GlobalPlatformSettings { get; }
Property Value
InstrumentInfo
Gets the instrument information associated with the indicator's instrument.
IInstrumentInfo InstrumentInfo { get; }
Property Value
InstrumentMarketDataProvider
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 IsAvailable. The default implementation keeps custom hosts source-compatible.
Added in ATAS 8.0.15.
IInstrumentMarketDataProvider? InstrumentMarketDataProvider { get; }
Property Value
MarketDepthInfoProvider
Gets the market depth information provider used by the indicator to access market depth data.
MarketDepthInfoProvider MarketDepthInfoProvider { get; }
Property Value
Name
Gets the name of the indicator data provider.
string Name { get; }
Property Value
- string
OnlineDataProvider
Gets the online data provider used by the indicator to fetch real-time data.
IOnlineDataProvider OnlineDataProvider { get; }
Property Value
OptionsDataProvider
Gets the options data provider for the chart's security, or null when the host does not supply options data. See IsAvailable. The default implementation keeps custom hosts source-compatible.
Added in ATAS 8.0.15.
IOptionsDataProvider? OptionsDataProvider { get; }
Property Value
Panels
Gets the collection of panels associated with the indicator.
ObservableCollection<string> Panels { get; }
Property Value
- ObservableCollection<string>
Storage
Gets path-free storage scoped to the current indicator.
Not in ATAS 8.0.15 yet: available from the next version.
IIndicatorStorage Storage { get; }
Property Value
TradingManager
Gets the trading manager used by the indicator to manage trading-related tasks.
ITradingManager TradingManager { get; }
Property Value
TradingStatisticsProvider
Gets the trading statistics provider used by the indicator to access trading-related statistics.
ITradingStatisticsProvider TradingStatisticsProvider { get; }
Property Value
Methods
AddAlert(string, string, string, Color, Color, DateTime?)
Adds an alert with the specified details to the indicator.
Added in ATAS 8.0.15.
void AddAlert(string soundFile, string instrument, string message, Color background, Color foreground, DateTime? time = null)
Parameters
soundFilestringThe sound file to play for the alert.
instrumentstringThe instrument associated with the alert.
messagestringThe alert message.
backgroundColorThe background color of the alert.
foregroundColorThe foreground color of the alert.
timeDateTime?Exact time for alert
AddAlert(string, string, string, Color, Color, DateTime?, bool)
Adds an alert and controls whether a popup notification is shown.
Not in ATAS 8.0.15 yet: available from the next version.
void AddAlert(string soundFile, string instrument, string message, Color background, Color foreground, DateTime? time, bool showPopup)
Parameters
soundFilestringThe sound file to play for the alert.
instrumentstringThe instrument associated with the alert.
messagestringThe alert message.
backgroundColorThe background color of the alert.
foregroundColorThe foreground color of the alert.
timeDateTime?Exact time for alert; the current market time of the instrument when null.
showPopupboolWhether the alert also shows a popup notification.
DoActionInGuiThread(Action)
Executes the specified action on the GUI thread.
void DoActionInGuiThread(Action action)
Parameters
actionActionThe action to execute on the GUI thread.
GetCustomStartTime(DateTime, TimeSpan)
Gets custom candle begin time with specified timeframe and current time
DateTime GetCustomStartTime(DateTime time, TimeSpan timeFrame)
Parameters
timeDateTimetimeFrameTimeSpan
Returns
GetService<T>()
Resolves registered services
<p>Added in ATAS 8.0.15.</p>
T GetService<T>()
Returns
- T
Instance of the service
Type Parameters
Type of the service
IsNewMonth(DateTime, DateTime)
Checks whether a new trading month has started between the specified previous time and new time.
bool IsNewMonth(DateTime prevTime, DateTime newTime)
Parameters
prevTimeDateTimeThe previous time.
newTimeDateTimeThe new time.
Returns
IsNewSession(DateTime, DateTime)
Checks whether a new trading session has started between the specified previous time and new time.
bool IsNewSession(DateTime prevTime, DateTime newTime)
Parameters
prevTimeDateTimeThe previous time.
newTimeDateTimeThe new time.
Returns
IsNewWeek(DateTime, DateTime)
Checks whether a new trading week has started between the specified previous time and new time.
bool IsNewWeek(DateTime prevTime, DateTime newTime)
Parameters
prevTimeDateTimeThe previous time.
newTimeDateTimeThe new time.