OmniPilot.OnOrderSubmitted(Callback As DelegateOnOrder)
This will establish the delegate call back for the OnOrderSubmitted event. This event will fire when an order is submitted to the currently connected broker. The delegate will contain the SymbolObject and the OrderObject that fired the event. When a submitted order is executed by the broker OT will fire the OnOrderExecuted Event.
Sub MyOnOrderSubmitted(ByVal oSymbol As SymbolObject, ByVal oOrder As OrderObject)
LogAction(“An order has been submitted on symbol ” & oSymbol.Symbol & ” – Number of Shares=” & oOrder.Shares)