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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    596 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    554 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X