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 CarlTrading, Yesterday, 11:51 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, Yesterday, 11:48 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-25-2026, 09:53 PM
    0 responses
    30 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 03-25-2026, 09:51 PM
    0 responses
    18 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 03-23-2026, 11:13 AM
    0 responses
    24 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X