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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    51 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    30 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    99 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    177 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    170 views
    0 likes
    Last Post CarlTrading  
    Working...
    X