Public Property Busy As Boolean
This property may be called when you want to notify the bridge that your LP is busy and it can not execute any new orders.
In NewMarketOrder and NewLimitOrder functions there is a prameter called BOOrderID that should be returned back when receiving the server responses for the orders in calling:
MyBase.OrderState.MarketOrderIDReceived(Your LP Order ID, BO Order ID)
MyBase.OrderState.LimitOrderAccepted(Your LP Order ID, BO Order ID)
In order to match this BOOrderID with LP order id, at this level the bridge will set the Busy to False automatically.
In the fast orders execution, when you could not manage sending the matched order ID, you may need to set the Busy property to True.
It is not recommended to call this property, since it will slow down the bridge.
Public Overrides Function NewMarketOrder(ByVal BuySell As OperationType, ByVal Amount As Double, ByVal LPSymbolName As String, ByVal LPAccountID As String, ByVal BOOrderID As String) As CTransResultMyBase.Busy = True..' Complete your implemetation
Leave A Comment