ATAS
Loading...
Searching...
No Matches
ATAS.Indicators.IndicatorDataProvider Class Reference

Implementation of the IIndicatorDataProvider interface that provides access to various data and services related to an indicator. More...

Inheritance diagram for ATAS.Indicators.IndicatorDataProvider:
[legend]
Collaboration diagram for ATAS.Indicators.IndicatorDataProvider:
[legend]

Public Member Functions

 IndicatorDataProvider (ICandleCreator candleCreator, IOnlineDataProvider onlineDataProvider, IPlatformSettings platformSettings, IInstrumentInfo instrumentInfo, ITradingManager tradingManager, IChart chartInfo, ITradingStatisticsProvider tradingStatisticsProvider)
 Initializes a new instance of the IndicatorDataProvider class.
 
bool IsNewSession (DateTime prevTime, DateTime newTime)
 Checks whether a new trading session has started between the specified previous time and new time.
Parameters
prevTimeThe previous time.
newTimeThe 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
prevTimeThe previous time.
newTimeThe 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
prevTimeThe previous time.
newTimeThe 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)
 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.
 
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)
 Adds an alert with the specified details to the indicator.
 
void DoActionInGuiThread (Action action)
 Executes the specified action on the GUI thread.
 

Public Attributes

Action< Action > OnNewGuiActionRequested
 Gets or sets the action to request a new GUI action.
 

Static Public Attributes

const string NewPanel = "NewPanel"
 Represents the name of a new panel.
 
const string CandlesPanel = "Chart"
 Represents the name of the candles panel on the chart.
 

Properties

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< CandlePartSeriesCandlesDataSeries [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.
 
- Properties inherited from ATAS.Indicators.IIndicatorDataProvider
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< CandlePartSeriesCandlesDataSeries [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.
 

Detailed Description

Implementation of the IIndicatorDataProvider interface that provides access to various data and services related to an indicator.

Constructor & Destructor Documentation

◆ IndicatorDataProvider()

ATAS.Indicators.IndicatorDataProvider.IndicatorDataProvider ( ICandleCreator  candleCreator,
IOnlineDataProvider  onlineDataProvider,
IPlatformSettings  platformSettings,
IInstrumentInfo  instrumentInfo,
ITradingManager  tradingManager,
IChart  chartInfo,
ITradingStatisticsProvider  tradingStatisticsProvider 
)

Initializes a new instance of the IndicatorDataProvider class.

Parameters
candleCreatorThe candle creator instance associated with the indicator.
onlineDataProviderThe online data provider instance used by the indicator.
platformSettingsThe global platform settings used by the indicator.
instrumentInfoThe instrument information associated with the indicator's instrument.
tradingManagerThe trading manager used by the indicator.
chartInfoThe chart information associated with the indicator.
tradingStatisticsProviderThe trading statistics provider used by the indicator.

Member Function Documentation

◆ AddAlert()

void ATAS.Indicators.IndicatorDataProvider.AddAlert ( string  soundFile,
string  instrument,
string  message,
CrossColor  background,
CrossColor  foreground 
)

Adds an alert with the specified details to the indicator.

Parameters
soundFileThe sound file to play for the alert.
instrumentThe instrument associated with the alert.
messageThe alert message.
backgroundThe background color of the alert.
foregroundThe foreground color of the alert.

Implements ATAS.Indicators.IIndicatorDataProvider.

◆ DoActionInGuiThread()

void ATAS.Indicators.IndicatorDataProvider.DoActionInGuiThread ( Action  action)

Executes the specified action on the GUI thread.

Parameters
actionThe action to execute on the GUI thread.

Implements ATAS.Indicators.IIndicatorDataProvider.

◆ IsNewMonth()

bool ATAS.Indicators.IndicatorDataProvider.IsNewMonth ( DateTime  prevTime,
DateTime  newTime 
)

Checks whether a new trading month has started between the specified previous time and new time.

Parameters
prevTimeThe previous time.
newTimeThe new time.
Returns
true if a new trading month has started; otherwise, false.

Implements ATAS.Indicators.IIndicatorDataProvider.

◆ IsNewSession()

bool ATAS.Indicators.IndicatorDataProvider.IsNewSession ( DateTime  prevTime,
DateTime  newTime 
)

Checks whether a new trading session has started between the specified previous time and new time.

Parameters
prevTimeThe previous time.
newTimeThe new time.
Returns
true if a new trading session has started; otherwise, false.

Implements ATAS.Indicators.IIndicatorDataProvider.

◆ IsNewWeek()

bool ATAS.Indicators.IndicatorDataProvider.IsNewWeek ( DateTime  prevTime,
DateTime  newTime 
)

Checks whether a new trading week has started between the specified previous time and new time.

Parameters
prevTimeThe previous time.
newTimeThe new time.
Returns
true if a new trading week has started; otherwise, false.

Implements ATAS.Indicators.IIndicatorDataProvider.

◆ ToString()

override string ATAS.Indicators.IndicatorDataProvider.ToString ( )

Returns the name of the indicator data provider.

Returns
The name of the indicator data provider.

Member Data Documentation

◆ CandlesPanel

const string ATAS.Indicators.IndicatorDataProvider.CandlesPanel = "Chart"
static

Represents the name of the candles panel on the chart.

◆ NewPanel

const string ATAS.Indicators.IndicatorDataProvider.NewPanel = "NewPanel"
static

Represents the name of a new panel.

◆ OnNewGuiActionRequested

Action<Action> ATAS.Indicators.IndicatorDataProvider.OnNewGuiActionRequested

Gets or sets the action to request a new GUI action.

Property Documentation

◆ CandlesDataSeries

ObservableCollection<CandlePartSeries> ATAS.Indicators.IndicatorDataProvider.CandlesDataSeries
get

Gets or sets the collection of candle part series used by the indicator.

Implements ATAS.Indicators.IIndicatorDataProvider.

◆ ChartInfo

IChart ATAS.Indicators.IndicatorDataProvider.ChartInfo
get

Gets the chart information associated with the indicator.

Implements ATAS.Indicators.IIndicatorDataProvider.

◆ GlobalPlatformSettings

IPlatformSettings ATAS.Indicators.IndicatorDataProvider.GlobalPlatformSettings
get

Gets or sets the global platform settings used by the indicator.

Implements ATAS.Indicators.IIndicatorDataProvider.

◆ InstrumentInfo

IInstrumentInfo ATAS.Indicators.IndicatorDataProvider.InstrumentInfo
getset

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

Implements ATAS.Indicators.IIndicatorDataProvider.

◆ MarketDepthInfoProvider

MarketDepthInfoProvider ATAS.Indicators.IndicatorDataProvider.MarketDepthInfoProvider
get

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

Implements ATAS.Indicators.IIndicatorDataProvider.

◆ Name

string ATAS.Indicators.IndicatorDataProvider.Name
get

Gets or sets the name of the indicator data provider.

Implements ATAS.Indicators.IIndicatorDataProvider.

◆ OnlineDataProvider

IOnlineDataProvider ATAS.Indicators.IndicatorDataProvider.OnlineDataProvider
get

Gets or sets the online data provider used by the indicator to fetch real-time data.

Implements ATAS.Indicators.IIndicatorDataProvider.

◆ Panels

ObservableCollection<string> ATAS.Indicators.IndicatorDataProvider.Panels
get

Gets or sets the collection of panels associated with the indicator.

Implements ATAS.Indicators.IIndicatorDataProvider.

◆ TradingManager

ITradingManager ATAS.Indicators.IndicatorDataProvider.TradingManager
get

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

Implements ATAS.Indicators.IIndicatorDataProvider.

◆ TradingStatisticsProvider

ITradingStatisticsProvider ATAS.Indicators.IndicatorDataProvider.TradingStatisticsProvider
get

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

Implements ATAS.Indicators.IIndicatorDataProvider.


The documentation for this class was generated from the following file: