Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

VendorLicense() stops OnBarUpdate() from being called

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

    VendorLicense() stops OnBarUpdate() from being called

    Hello,

    I have a fairly large indicator (2000+ lines) that works great. Once I add the VendorLicense() line to Initialize(), things just stop working. One of which is that OnBarUpdate() never gets called.

    I don't get a popup saying that it's not valid. I also changed the expiration date on my license to be expired (to try and trigger the popup) and still no popup.

    I'm assuming that the VendorLicense() check is failing, so it's causing my indicator to stop functioning properly. Is there a chart property that I can check to tell if the licence check was successful or not?

    Thanks!
    Daniel

    #2
    Also, when looking at the "best practices for 3rd party developers", it mentions "A license check should only be performed once and maintain its check state." I'm assuming it means once in Initialize(), but how do we "maintain its check state" if VendorLicense() doesn't return anything (is void)?

    It also mentions, "A license check should have a time out in case of internet issues. This ensures that NinjaTrader does not lock up." Can someone provide a code snip for this?

    In this same document, in the "clean up your resources" section, it references the Dispose() function. I thought that we should be using OnTermination() instead, correct?

    Thanks,
    Daniel

    Comment


      #3
      Hello,

      Thanks for your post.

      Can you please email us at support[at]ninjatrader[dot]com and a reference to this thread.

      We will need to review some of your private partner details such as vendor name, license key and an example of your vendor license call.

      Thanks in advanced!
      MatthewNinjaTrader Product Management

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      583 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      339 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X