ATAS
|
Implementation of the IIndicatorDataProvider interface that provides access to various data and services related to an indicator. More...
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.
| |||||
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. | |||||
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< 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. | |
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< 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. | |
Implementation of the IIndicatorDataProvider interface that provides access to various data and services related to an indicator.
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.
candleCreator | The candle creator instance associated with the indicator. |
onlineDataProvider | The online data provider instance used by the indicator. |
platformSettings | The global platform settings used by the indicator. |
instrumentInfo | The instrument information associated with the indicator's instrument. |
tradingManager | The trading manager used by the indicator. |
chartInfo | The chart information associated with the indicator. |
tradingStatisticsProvider | The trading statistics provider used by the indicator. |
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.
soundFile | The sound file to play for the alert. |
instrument | The instrument associated with the alert. |
message | The alert message. |
background | The background color of the alert. |
foreground | The foreground color of the alert. |
Implements ATAS.Indicators.IIndicatorDataProvider.
void ATAS.Indicators.IndicatorDataProvider.DoActionInGuiThread | ( | Action | action | ) |
Executes the specified action on the GUI thread.
action | The action to execute on the GUI thread. |
Implements ATAS.Indicators.IIndicatorDataProvider.
Checks whether a new trading month has started between the specified previous time and new time.
prevTime | The previous time. |
newTime | The new time. |
true
if a new trading month has started; otherwise, false
.Implements ATAS.Indicators.IIndicatorDataProvider.
Checks whether a new trading session has started between the specified previous time and new time.
prevTime | The previous time. |
newTime | The new time. |
true
if a new trading session has started; otherwise, false
.Implements ATAS.Indicators.IIndicatorDataProvider.
Checks whether a new trading week has started between the specified previous time and new time.
prevTime | The previous time. |
newTime | The new time. |
true
if a new trading week has started; otherwise, false
.Implements ATAS.Indicators.IIndicatorDataProvider.
override string ATAS.Indicators.IndicatorDataProvider.ToString | ( | ) |
Returns the name of the indicator data provider.
|
static |
Represents the name of the candles panel on the chart.
|
static |
Represents the name of a new panel.
Action<Action> ATAS.Indicators.IndicatorDataProvider.OnNewGuiActionRequested |
Gets or sets the action to request a new GUI action.
|
get |
Gets or sets the collection of candle part series used by the indicator.
Implements ATAS.Indicators.IIndicatorDataProvider.
|
get |
Gets the chart information associated with the indicator.
Implements ATAS.Indicators.IIndicatorDataProvider.
|
get |
Gets or sets the global platform settings used by the indicator.
Implements ATAS.Indicators.IIndicatorDataProvider.
|
getset |
Gets or sets the instrument information associated with the indicator's instrument.
Implements ATAS.Indicators.IIndicatorDataProvider.
|
get |
Gets or sets the market depth information provider used by the indicator to access market depth data.
Implements ATAS.Indicators.IIndicatorDataProvider.
|
get |
Gets or sets the name of the indicator data provider.
Implements ATAS.Indicators.IIndicatorDataProvider.
|
get |
Gets or sets the online data provider used by the indicator to fetch real-time data.
Implements ATAS.Indicators.IIndicatorDataProvider.
|
get |
Gets or sets the collection of panels associated with the indicator.
Implements ATAS.Indicators.IIndicatorDataProvider.
|
get |
Gets the trading manager used by the indicator to manage trading-related tasks.
Implements ATAS.Indicators.IIndicatorDataProvider.
|
get |
Gets the trading statistics provider used by the indicator to access trading-related statistics.
Implements ATAS.Indicators.IIndicatorDataProvider.