ATAS
Loading...
Searching...
No Matches
ATAS.Strategies.IStrategy Interface Reference

Represents a trading strategy. More...

Inheritance diagram for ATAS.Strategies.IStrategy:
[legend]
Collaboration diagram for ATAS.Strategies.IStrategy:
[legend]

Public Member Functions

Task StartAsync ()
 Starts the strategy, allowing it to execute its trading logic.
 
Task StopAsync ()
 Stops the strategy, terminating its execution and releasing any resources.
 

Properties

string Name [get, set]
 Gets or sets the name of the strategy.
 
StrategyStates State [get]
 Gets the current state of the strategy.
 
decimal CurrentPosition [get]
 Gets the current position volume of the strategy.
 
decimal AveragePrice [get]
 Gets the average price of the strategy's trades.
 
decimal OpenPnL [get]
 Gets the open profit and loss of the strategy.
 
decimal ClosedPnL [get]
 Gets the closed profit and loss of the strategy.
 
Security Security [get, set]
 Gets or sets the security associated with the strategy.
 
Portfolio Portfolio [get, set]
 Gets or sets the portfolio associated with the strategy.
 
TPlusLimitsTPlusLimit [get, set]
 Gets or sets the T+ limits for the strategy.
 
IDataFeedConnector Connector [get, set]
 Gets or sets the data feed connector for the strategy.
 

Events

EventHandler< StrategyStateChangedEventArgsStateChanged
 Occurs when the state of the strategy changes.
 
EventHandler< StrategyNotificationEventArgsShowNotification
 Occurs when the strategy needs to show a notification or alert.
 

Detailed Description

Represents a trading strategy.

Member Function Documentation

◆ StartAsync()

Task ATAS.Strategies.IStrategy.StartAsync ( )

Starts the strategy, allowing it to execute its trading logic.

Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.

◆ StopAsync()

Task ATAS.Strategies.IStrategy.StopAsync ( )

Stops the strategy, terminating its execution and releasing any resources.

Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.

Property Documentation

◆ AveragePrice

decimal ATAS.Strategies.IStrategy.AveragePrice
get

Gets the average price of the strategy's trades.

Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.

◆ ClosedPnL

decimal ATAS.Strategies.IStrategy.ClosedPnL
get

Gets the closed profit and loss of the strategy.

Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.

◆ Connector

IDataFeedConnector ATAS.Strategies.IStrategy.Connector
getset

Gets or sets the data feed connector for the strategy.

Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.

◆ CurrentPosition

decimal ATAS.Strategies.IStrategy.CurrentPosition
get

Gets the current position volume of the strategy.

Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.

◆ Name

string ATAS.Strategies.IStrategy.Name
getset

Gets or sets the name of the strategy.

Implemented in ATAS.Strategies.Strategy.

◆ OpenPnL

decimal ATAS.Strategies.IStrategy.OpenPnL
get

Gets the open profit and loss of the strategy.

Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.

◆ Portfolio

Portfolio ATAS.Strategies.IStrategy.Portfolio
getset

Gets or sets the portfolio associated with the strategy.

Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.

◆ Security

Security ATAS.Strategies.IStrategy.Security
getset

Gets or sets the security associated with the strategy.

Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.

◆ State

StrategyStates ATAS.Strategies.IStrategy.State
get

Gets the current state of the strategy.

Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.

◆ TPlusLimit

TPlusLimits? ATAS.Strategies.IStrategy.TPlusLimit
getset

Gets or sets the T+ limits for the strategy.

Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.

Event Documentation

◆ ShowNotification

EventHandler<StrategyNotificationEventArgs> ATAS.Strategies.IStrategy.ShowNotification

Occurs when the strategy needs to show a notification or alert.

◆ StateChanged

EventHandler<StrategyStateChangedEventArgs> ATAS.Strategies.IStrategy.StateChanged

Occurs when the state of the strategy changes.


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