Following is a very brief example of instantiating the COM Interface and placing a buy market order.
|
'Declare and instantiate object Dim myClient As NinjaTrader_Client.Client Set myClient = New NinjaTrader_Client.Client 'Place a buy market order for MSFT (Microsoft) result = myClient.Command("PLACE", "", "MSFT", "BUY", 100, "MARKET", 0, 0, "", "", "", "", "") |