OmniPilot_OnOrderSubmitted

OmniPilot_OnOrderSubmitted

Signatures
OmniPilot.OnOrderSubmitted(Callback As DelegateOnOrder)

Purpose
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.

Example
Sub OnStartup
    StartOT
    OmniPilot.OnOrderSubmitted(AddressOf MyOnOrderSubmitted)
End Sub

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)
End Sub

Also See
OnOrderSubmitted_Event

>