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 Mindset, Today, 06:46 AM
    0 responses
    8 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, Yesterday, 05:21 PM
    0 responses
    14 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    15 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    82 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    48 views
    0 likes
    Last Post PaulMohn  
    Working...
    X