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 maybeimnotrader, Yesterday, 05:46 PM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Perr0Grande, Yesterday, 08:16 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by f.saeidi, Yesterday, 08:12 AM
    3 responses
    24 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by algospoke, Yesterday, 06:40 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by quantismo, Yesterday, 05:13 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X