Table of Contents

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

ICandlesDataProvider

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

IChart

GlobalPlatformSettings

Gets the global platform settings used by the indicator.

IPlatformSettings GlobalPlatformSettings { get; }

Property Value

IPlatformSettings

InstrumentInfo

Gets the instrument information associated with the indicator's instrument.

IInstrumentInfo InstrumentInfo { get; }

Property Value

IInstrumentInfo

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

IInstrumentMarketDataProvider

MarketDepthInfoProvider

Gets the market depth information provider used by the indicator to access market depth data.

MarketDepthInfoProvider MarketDepthInfoProvider { get; }

Property Value

MarketDepthInfoProvider

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

IOnlineDataProvider

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

IOptionsDataProvider

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

IIndicatorStorage

TradingManager

Gets the trading manager used by the indicator to manage trading-related tasks.

ITradingManager TradingManager { get; }

Property Value

ITradingManager

TradingStatisticsProvider

Gets the trading statistics provider used by the indicator to access trading-related statistics.

ITradingStatisticsProvider TradingStatisticsProvider { get; }

Property Value

ITradingStatisticsProvider

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

soundFile string

The sound file to play for the alert.

instrument string

The instrument associated with the alert.

message string

The alert message.

background Color

The background color of the alert.

foreground Color

The foreground color of the alert.

time DateTime?

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

soundFile string

The sound file to play for the alert.

instrument string

The instrument associated with the alert.

message string

The alert message.

background Color

The background color of the alert.

foreground Color

The foreground color of the alert.

time DateTime?

Exact time for alert; the current market time of the instrument when null.

showPopup bool

Whether the alert also shows a popup notification.

DoActionInGuiThread(Action)

Executes the specified action on the GUI thread.

void DoActionInGuiThread(Action action)

Parameters

action Action

The 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

time DateTime
timeFrame TimeSpan

Returns

DateTime

true if a new trading session has started; otherwise, false.

GetService<T>()

Resolves registered services

        <p>Added in ATAS 8.0.15.</p>
T GetService<T>()

Returns

T

Instance of the service

Type Parameters

T

ype 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

prevTime DateTime

The previous time.

newTime DateTime

The new time.

Returns

bool

true if a new trading month has started; otherwise, false.

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

prevTime DateTime

The previous time.

newTime DateTime

The new time.

Returns

bool

true if a new trading session has started; otherwise, false.

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

prevTime DateTime

The previous time.

newTime DateTime

The new time.

Returns

bool

true if a new trading week has started; otherwise, false.