ATAS
|
Represents a trading strategy. More...
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. | |
TPlusLimits? | TPlusLimit [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< StrategyStateChangedEventArgs > | StateChanged |
Occurs when the state of the strategy changes. | |
EventHandler< StrategyNotificationEventArgs > | ShowNotification |
Occurs when the strategy needs to show a notification or alert. | |
Represents a trading strategy.
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.
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.
|
get |
Gets the average price of the strategy's trades.
Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.
|
get |
Gets the closed profit and loss of the strategy.
Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.
|
getset |
Gets or sets the data feed connector for the strategy.
Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.
|
get |
Gets the current position volume of the strategy.
Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.
|
getset |
Gets or sets the name of the strategy.
Implemented in ATAS.Strategies.Strategy.
|
get |
Gets the open profit and loss of the strategy.
Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.
|
getset |
Gets or sets the portfolio associated with the strategy.
Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.
|
getset |
Gets or sets the security associated with the strategy.
Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.
|
get |
Gets the current state of the strategy.
Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.
|
getset |
Gets or sets the T+ limits for the strategy.
Implemented in ATAS.Strategies.Chart.ChartStrategy, and ATAS.Strategies.Strategy.
EventHandler<StrategyNotificationEventArgs> ATAS.Strategies.IStrategy.ShowNotification |
Occurs when the strategy needs to show a notification or alert.
EventHandler<StrategyStateChangedEventArgs> ATAS.Strategies.IStrategy.StateChanged |
Occurs when the state of the strategy changes.