Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninjascript editor snippet bug

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

    Ninjascript editor snippet bug

    Hi,
    When I use the snippet for OnConnectionStatusUpdate the method's signature is different than the online manual.

    In the manual:
    Code:
    protected override void OnConnectionStatusUpdate(ConnectionStatusEventArgs connectionStatusUpdate)
    In the snippet:
    Code:
    protected override void OnConnectionStatusUpdate(ConnectionStatus orderStatus, ConnectionStatus priceStatus)
    The manual seems to be the correct one.

    One question if I may, connectionStatusUpdate.Status is for the broker connection and connectionStatusUpdate.PriceStatus is for the datafeed?
    Last edited by ToMer_K; 06-22-2016, 07:45 PM.

    #2
    Hello ToMer_K,

    Thank you for your post.

    We are improving the Code Snippets added in NinjaTrader 8 and appreciate your feedback. The code snippet is incorrect but the Help Guide is correct.

    The OnConnectionStatusUpdate() would only be for the primary connection (first connected provider). Status would be the connection and PriceStatus would be the price feed of the connection.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    24 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    14 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    19 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    135 views
    0 likes
    Last Post SalmaTrader  
    Working...
    X