ATAS
Loading...
Searching...
No Matches
ATAS.Indicators.ITradingManager Interface Reference

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.
 
ISecurityTradingOptionsGetSecurityTradingOptions ()
 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

SecuritySecurity [get]
 The selected security.
 
PortfolioPortfolio [get]
 The selected portfolio.
 
TPlusLimitsTPlusLimit [get]
 The T+ limits for the selected security.
 
PositionPosition [get]
 The current position for the selected security and portfolio.
 
IEnumerable< MyTradeMyTrades [get]
 Collection of MyTrade for the selected security and portfolio.
 
IEnumerable< OrderOrders [get]
 Collection of orders for the selected security and portfolio.
 
ITradingVolumeInfoTradingVolumeInfo [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< SecuritySecuritySelected
 Event that is raised when a security is selected.
 
Action< PortfolioPortfolioSelected
 Event that is raised when a portfolio is selected.
 
Action< PortfolioPortfolioChanged
 Event that is raised when the selected portfolio is changed.
 
Action< PositionPositionChanged
 Event that is raised when the position is changed.
 
Action< OrderNewOrder
 Event that is raised when a new order is added.
 
Action< OrderOrderChanged
 Event that is raised when an order is modified.
 
Action< MyTradeNewMyTrade
 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.
 

Detailed Description

Interface representing a trading manager for handling trading-related operations.

Member Function Documentation

◆ CancelOrder()

void ATAS.Indicators.ITradingManager.CancelOrder ( Order  order,
bool  askConfirmation = true,
bool  checkOrderStates = true 
)

Cancels an existing order.

Parameters
orderThe order to cancel.
askConfirmationSet to true to ask for confirmation before cancelling the order.
checkOrderStatesSet to true to check order states before cancelling the order.

◆ CancelOrderAsync()

Task ATAS.Indicators.ITradingManager.CancelOrderAsync ( Order  order,
bool  askConfirmation = true,
bool  checkOrderStates = true 
)

Cancels an existing order.

Parameters
orderThe order to cancel.
askConfirmationSet to true to ask for confirmation before cancelling the order.
checkOrderStatesSet to true to check order states before cancelling the order.

◆ ClosePosition()

bool ATAS.Indicators.ITradingManager.ClosePosition ( Position  position,
bool  askConfirmation = true,
bool  checkOrderStates = true 
)

Closes the specified position.

Parameters
positionThe position to close.
askConfirmationSet to true to ask for confirmation before closing the position.
checkOrderStatesSet to true to check order states before closing the position.

◆ ClosePositionAsync()

Task ATAS.Indicators.ITradingManager.ClosePositionAsync ( Position  position,
bool  askConfirmation = true,
bool  checkOrderStates = true 
)

Closes the specified position.

Parameters
positionThe position to close.
askConfirmationSet to true to ask for confirmation before closing the position.
checkOrderStatesSet to true to check order states before closing the position.

◆ GetSecurityTradingOptions()

ISecurityTradingOptions? ATAS.Indicators.ITradingManager.GetSecurityTradingOptions ( )

Gets ISecurityTradingOptions for current ITradingManager.Security.

◆ IsStopLossOrder()

bool ATAS.Indicators.ITradingManager.IsStopLossOrder ( Order  order)

Checks if Order is Stop-Loss order.

Parameters
orderThe Order to check.
Returns
Returns true if the order is Stop-Loss, otherwise false.

◆ IsTakeProfitOrder()

bool ATAS.Indicators.ITradingManager.IsTakeProfitOrder ( Order  order)

Checks if Order is Take-Profit order.

Parameters
orderThe Order to check.
Returns
Returns true if the order is Take-Profit, otherwise false.

◆ ModifyOrder()

void ATAS.Indicators.ITradingManager.ModifyOrder ( Order  order,
Order  newOrder,
bool  askConfirmation = true,
bool  checkOrderStates = true 
)

Modifies an existing order.

Parameters
orderThe order to modify.
newOrderThe modified order.
askConfirmationSet to true to ask for confirmation before modifying the order.
checkOrderStatesSet to true to check order states before modifying the order.

◆ ModifyOrderAsync()

Task ATAS.Indicators.ITradingManager.ModifyOrderAsync ( Order  order,
Order  newOrder,
bool  askConfirmation = true,
bool  checkOrderStates = true 
)

Modifies an existing order.

Parameters
orderThe order to modify.
newOrderThe modified order.
askConfirmationSet to true to ask for confirmation before modifying the order.
checkOrderStatesSet to true to check order states before modifying the order.

◆ OpenOrder()

void ATAS.Indicators.ITradingManager.OpenOrder ( Order  order,
bool  setDefaultQuantity,
bool  askConfirmation = true,
bool  checkOrderStates = true 
)

Opens a new order for trading.

Parameters
orderThe order to open.
setDefaultQuantitySet to true to use default quantity.
askConfirmationSet to true to ask for confirmation before opening the order.
checkOrderStatesSet to true to check order states before opening the order.

◆ OpenOrderAsync()

Task ATAS.Indicators.ITradingManager.OpenOrderAsync ( Order  order,
bool  setDefaultQuantity,
bool  askConfirmation = true,
bool  checkOrderStates = true 
)

Opens a new order for trading.

Parameters
orderThe order to open.
setDefaultQuantitySet to true to use default quantity.
askConfirmationSet to true to ask for confirmation before opening the order.
checkOrderStatesSet to true to check order states before opening the order.

◆ SetBreakeven()

Task ATAS.Indicators.ITradingManager.SetBreakeven ( )

Sets a Stop-Loss to breakeven.

◆ SetStopLoss()

Task ATAS.Indicators.ITradingManager.SetStopLoss ( PriceUnit  value)

Sets a new Stop-Loss value.

Parameters
valueStop-Loss value.

◆ SetTakeProfit()

Task ATAS.Indicators.ITradingManager.SetTakeProfit ( PriceUnit  value)

Sets a new Take-Profit value.

Parameters
valueTake-Profit value.

Property Documentation

◆ IsStopLossModeActivated

bool ATAS.Indicators.ITradingManager.IsStopLossModeActivated
get

Indicates whether the Stop-Loss mode is activated.

◆ IsTakeProfitModeActivated

bool ATAS.Indicators.ITradingManager.IsTakeProfitModeActivated
get

Indicates whether the Take-Profit mode is activated.

◆ MyTrades

IEnumerable<MyTrade> ATAS.Indicators.ITradingManager.MyTrades
get

Collection of MyTrade for the selected security and portfolio.

◆ Orders

IEnumerable<Order> ATAS.Indicators.ITradingManager.Orders
get

Collection of orders for the selected security and portfolio.

◆ Portfolio

Portfolio? ATAS.Indicators.ITradingManager.Portfolio
get

The selected portfolio.

◆ Position

Position? ATAS.Indicators.ITradingManager.Position
get

The current position for the selected security and portfolio.

◆ Security

Security? ATAS.Indicators.ITradingManager.Security
get

The selected security.

◆ TPlusLimit

TPlusLimits? ATAS.Indicators.ITradingManager.TPlusLimit
get

The T+ limits for the selected security.

◆ TradingVolumeInfo

ITradingVolumeInfo? ATAS.Indicators.ITradingManager.TradingVolumeInfo
get

Gets ITradingVolumeInfo for current ITradingManager.Security.

Event Documentation

◆ NewMyTrade

Action<MyTrade> ATAS.Indicators.ITradingManager.NewMyTrade

Event that is raised when a new MyTrade is added.

◆ NewOrder

Action<Order> ATAS.Indicators.ITradingManager.NewOrder

Event that is raised when a new order is added.

◆ OrderCancelFailed

Action<Order, string> ATAS.Indicators.ITradingManager.OrderCancelFailed

Event that is raised when order cancellation fails.

◆ OrderChanged

Action<Order> ATAS.Indicators.ITradingManager.OrderChanged

Event that is raised when an order is modified.

◆ OrderModifyFailed

Action<Order, Order, string> ATAS.Indicators.ITradingManager.OrderModifyFailed

Event that is raised when order modification fails.

◆ OrderRegisterFailed

Action<Order, string> ATAS.Indicators.ITradingManager.OrderRegisterFailed

Event that is raised when order registration fails.

◆ PortfolioChanged

Action<Portfolio> ATAS.Indicators.ITradingManager.PortfolioChanged

Event that is raised when the selected portfolio is changed.

◆ PortfolioSelected

Action<Portfolio> ATAS.Indicators.ITradingManager.PortfolioSelected

Event that is raised when a portfolio is selected.

◆ PositionChanged

Action<Position> ATAS.Indicators.ITradingManager.PositionChanged

Event that is raised when the position is changed.

◆ SecuritySelected

Action<Security> ATAS.Indicators.ITradingManager.SecuritySelected

Event that is raised when a security is selected.


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