Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

IB level 2 Subscription Limit Issue

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

    IB level 2 Subscription Limit Issue

    Hi
    I’m new to the forum so I apologize in advance if this is the wrong place to post.
    I have a custom indicator that uses level 2 data (market depth). This is the problem.

    1. Connect to IB and open a chart for NQ 03 -14 and connect my indicator. Everything is OK
    2. Change instruments by typing on the chart to ES 03 – 14. Everything is OK.
    3. Change instruments again by typing on the chart to ZN 03- 14. Everything is OK.
    4. Change instruments by typing on the chart to YM 03-14 and I get an error saying that the limit of 3 level 2 subscriptions has been reached.


    I know that IB imposes a limit of 3 simultaneous Level 2 subscriptions but I only have one chart open and one indicator attached to the chart, so I would assume that I am only using one level 2 subscription. It would appear that NT is not unsubscribing and re-subscribing to the new instrument’s level 2 feed when it’s changed from the chart.


    Is this expected behavior and is there any way through Ninja Script that I could programmatically unsubscribe/re-subscribe to the instruments level2 data?


    Any help would be greatly appreciated.


    Thanks in advance.

    #2
    Hi NaiBKK,

    Thank you for your post.

    Only active running instruments that are requesting level 2 are going to have a subscription to the data.
    This could be a SuperDOM or Level 2 window as well.

    I would need to test out your script on my end to see if I can reproduce this instance.

    Would you be willing to send me your script?
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    144 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    71 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    79 views
    0 likes
    Last Post PaulMohn  
    Working...
    X