Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnConnectionStatus() method

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    OnConnectionStatus() method

    Appears a review of the first example provided in the online help for the
    OnConnectionStatus() method is required. The method signature stated in the example for OnOrderStatus() will not compile. I found the following signature would compile. An explanation of the methods purpose would be appreciated.

    private
    ConnectionStatus dataFeed = ConnectionStatus.Connected;
    protectedoverridevoid OnOrderStatus(OrderStatusEventArgs e)
    {
    if (dataFeed != ConnectionStatus.Connected)
    {
    // Do something
    }
    }

    #2
    Thanks for pointing this out. Generally OnConnectionStatus would be useful for error handling. For instance, it will allow you to manage things if you got disconnected.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by soon123, Today, 12:51 AM
    0 responses
    1 view
    0 likes
    Last Post soon123
    by soon123
     
    Started by Jema1, Today, 12:23 AM
    0 responses
    6 views
    0 likes
    Last Post Jema1
    by Jema1
     
    Started by soon123, Yesterday, 11:14 PM
    0 responses
    1 view
    0 likes
    Last Post soon123
    by soon123
     
    Started by smcllr, Yesterday, 04:15 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by rtwave, Yesterday, 02:33 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X