Interface representing a trading manager for handling trading-related operations. More...
Public Member Functions | |
| void | OpenOrder (Order order, bool setDefaultQuantity, bool askConfirmation=true, bool checkOrderStates=true) |
| Opens a new order for trading. | |
| Task | OpenOrderAsync (Order order, bool setDefaultQuantity, bool askConfirmation=true, bool checkOrderStates=true) |
| Opens a new order for trading. | |
| void | ModifyOrder (Order order, Order newOrder, bool askConfirmation=true, bool checkOrderStates=true) |
| Modifies an existing order. | |
| Task | ModifyOrderAsync (Order order, Order newOrder, bool askConfirmation=true, bool checkOrderStates=true) |
| Modifies an existing order. | |
| void | CancelOrder (Order order, bool askConfirmation=true, bool checkOrderStates=true) |
| Cancels an existing order. | |
| Task | CancelOrderAsync (Order order, bool askConfirmation=true, bool checkOrderStates=true) |
| Cancels an existing order. | |
| bool | ClosePosition (Position position, bool askConfirmation=true, bool checkOrderStates=true) |
| Closes the specified position. | |
| Task | ClosePositionAsync (Position position, bool askConfirmation=true, bool checkOrderStates=true) |
| Closes the specified position. | |
| ISecurityTradingOptions? | GetSecurityTradingOptions () |
| Gets ISecurityTradingOptions for current ITradingManager.Security. | |
| Task | SetStopLoss (PriceUnit value) |
| Sets a new Stop-Loss value. | |
| Task | SetTakeProfit (PriceUnit value) |
| Sets a new Take-Profit value. | |
| Task | SetBreakeven () |
| Sets a Stop-Loss to breakeven. | |
| bool | IsStopLossOrder (Order order) |
| Checks if Order is Stop-Loss order. | |
| bool | IsTakeProfitOrder (Order order) |
| Checks if Order is Take-Profit order. | |
Properties | |
| Security? | Security [get] |
| The selected security. | |
| Portfolio? | Portfolio [get] |
| The selected portfolio. | |
| TPlusLimits? | TPlusLimit [get] |
| The T+ limits for the selected security. | |
| Position? | Position [get] |
| The current position for the selected security and portfolio. | |
| IEnumerable< MyTrade > | MyTrades [get] |
| Collection of MyTrade for the selected security and portfolio. | |
| IEnumerable< Order > | Orders [get] |
| Collection of orders for the selected security and portfolio. | |
| ITradingVolumeInfo? | TradingVolumeInfo [get] |
| Gets ITradingVolumeInfo for current ITradingManager.Security. | |
| bool | IsStopLossModeActivated [get] |
| Indicates whether the Stop-Loss mode is activated. | |
| bool | IsTakeProfitModeActivated [get] |
| Indicates whether the Take-Profit mode is activated. | |
Events | |
| Action< Security > | SecuritySelected |
| Event that is raised when a security is selected. | |
| Action< Portfolio > | PortfolioSelected |
| Event that is raised when a portfolio is selected. | |
| Action< Portfolio > | PortfolioChanged |
| Event that is raised when the selected portfolio is changed. | |
| Action< Position > | PositionChanged |
| Event that is raised when the position is changed. | |
| Action< Order > | NewOrder |
| Event that is raised when a new order is added. | |
| Action< Order > | OrderChanged |
| Event that is raised when an order is modified. | |
| Action< MyTrade > | NewMyTrade |
| Event that is raised when a new MyTrade is added. | |
| Action< Order, string > | OrderRegisterFailed |
| Event that is raised when order registration fails. | |
| Action< Order, string > | OrderCancelFailed |
| Event that is raised when order cancellation fails. | |
| Action< Order, Order, string > | OrderModifyFailed |
| Event that is raised when order modification fails. | |
Interface representing a trading manager for handling trading-related operations.
| void ATAS.Indicators.ITradingManager.CancelOrder | ( | Order | order, |
| bool | askConfirmation = true, |
||
| bool | checkOrderStates = true |
||
| ) |
Cancels an existing order.
| order | The order to cancel. |
| askConfirmation | Set to true to ask for confirmation before cancelling the order. |
| checkOrderStates | Set to true to check order states before cancelling the order. |
| Task ATAS.Indicators.ITradingManager.CancelOrderAsync | ( | Order | order, |
| bool | askConfirmation = true, |
||
| bool | checkOrderStates = true |
||
| ) |
Cancels an existing order.
| order | The order to cancel. |
| askConfirmation | Set to true to ask for confirmation before cancelling the order. |
| checkOrderStates | Set to true to check order states before cancelling the order. |
| bool ATAS.Indicators.ITradingManager.ClosePosition | ( | Position | position, |
| bool | askConfirmation = true, |
||
| bool | checkOrderStates = true |
||
| ) |
Closes the specified position.
| position | The position to close. |
| askConfirmation | Set to true to ask for confirmation before closing the position. |
| checkOrderStates | Set to true to check order states before closing the position. |
| Task ATAS.Indicators.ITradingManager.ClosePositionAsync | ( | Position | position, |
| bool | askConfirmation = true, |
||
| bool | checkOrderStates = true |
||
| ) |
Closes the specified position.
| position | The position to close. |
| askConfirmation | Set to true to ask for confirmation before closing the position. |
| checkOrderStates | Set to true to check order states before closing the position. |
| ISecurityTradingOptions? ATAS.Indicators.ITradingManager.GetSecurityTradingOptions | ( | ) |
Gets ISecurityTradingOptions for current ITradingManager.Security.
| bool ATAS.Indicators.ITradingManager.IsStopLossOrder | ( | Order | order | ) |
Checks if Order is Stop-Loss order.
| order | The Order to check. |
true if the order is Stop-Loss, otherwise false.| bool ATAS.Indicators.ITradingManager.IsTakeProfitOrder | ( | Order | order | ) |
Checks if Order is Take-Profit order.
| order | The Order to check. |
true if the order is Take-Profit, otherwise false.| void ATAS.Indicators.ITradingManager.ModifyOrder | ( | Order | order, |
| Order | newOrder, | ||
| bool | askConfirmation = true, |
||
| bool | checkOrderStates = true |
||
| ) |
Modifies an existing order.
| order | The order to modify. |
| newOrder | The modified order. |
| askConfirmation | Set to true to ask for confirmation before modifying the order. |
| checkOrderStates | Set to true to check order states before modifying the order. |
| Task ATAS.Indicators.ITradingManager.ModifyOrderAsync | ( | Order | order, |
| Order | newOrder, | ||
| bool | askConfirmation = true, |
||
| bool | checkOrderStates = true |
||
| ) |
Modifies an existing order.
| order | The order to modify. |
| newOrder | The modified order. |
| askConfirmation | Set to true to ask for confirmation before modifying the order. |
| checkOrderStates | Set to true to check order states before modifying the order. |
| void ATAS.Indicators.ITradingManager.OpenOrder | ( | Order | order, |
| bool | setDefaultQuantity, | ||
| bool | askConfirmation = true, |
||
| bool | checkOrderStates = true |
||
| ) |
Opens a new order for trading.
| order | The order to open. |
| setDefaultQuantity | Set to true to use default quantity. |
| askConfirmation | Set to true to ask for confirmation before opening the order. |
| checkOrderStates | Set to true to check order states before opening the order. |
| Task ATAS.Indicators.ITradingManager.OpenOrderAsync | ( | Order | order, |
| bool | setDefaultQuantity, | ||
| bool | askConfirmation = true, |
||
| bool | checkOrderStates = true |
||
| ) |
Opens a new order for trading.
| order | The order to open. |
| setDefaultQuantity | Set to true to use default quantity. |
| askConfirmation | Set to true to ask for confirmation before opening the order. |
| checkOrderStates | Set to true to check order states before opening the order. |
| Task ATAS.Indicators.ITradingManager.SetBreakeven | ( | ) |
Sets a Stop-Loss to breakeven.
| Task ATAS.Indicators.ITradingManager.SetStopLoss | ( | PriceUnit | value | ) |
Sets a new Stop-Loss value.
| value | Stop-Loss value. |
| Task ATAS.Indicators.ITradingManager.SetTakeProfit | ( | PriceUnit | value | ) |
Sets a new Take-Profit value.
| value | Take-Profit value. |
|
get |
Indicates whether the Stop-Loss mode is activated.
|
get |
Indicates whether the Take-Profit mode is activated.
|
get |
Collection of MyTrade for the selected security and portfolio.
|
get |
Collection of orders for the selected security and portfolio.
|
get |
The selected portfolio.
|
get |
The current position for the selected security and portfolio.
|
get |
The selected security.
|
get |
The T+ limits for the selected security.
|
get |
Gets ITradingVolumeInfo for current ITradingManager.Security.
| Action<MyTrade> ATAS.Indicators.ITradingManager.NewMyTrade |
Event that is raised when a new MyTrade is added.
| Action<Order> ATAS.Indicators.ITradingManager.NewOrder |
Event that is raised when a new order is added.
| Action<Order, string> ATAS.Indicators.ITradingManager.OrderCancelFailed |
Event that is raised when order cancellation fails.
| Action<Order> ATAS.Indicators.ITradingManager.OrderChanged |
Event that is raised when an order is modified.
Event that is raised when order modification fails.
| Action<Order, string> ATAS.Indicators.ITradingManager.OrderRegisterFailed |
Event that is raised when order registration fails.
| Action<Portfolio> ATAS.Indicators.ITradingManager.PortfolioChanged |
Event that is raised when the selected portfolio is changed.
| Action<Portfolio> ATAS.Indicators.ITradingManager.PortfolioSelected |
Event that is raised when a portfolio is selected.
| Action<Position> ATAS.Indicators.ITradingManager.PositionChanged |
Event that is raised when the position is changed.
| Action<Security> ATAS.Indicators.ITradingManager.SecuritySelected |
Event that is raised when a security is selected.