Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 funk10101, Today, 09:43 PM
      0 responses
      6 views
      0 likes
      Last Post funk10101  
      Started by pkefal, 04-11-2024, 07:39 AM
      11 responses
      37 views
      0 likes
      Last Post jeronymite  
      Started by bill2023, Yesterday, 08:51 AM
      8 responses
      44 views
      0 likes
      Last Post bill2023  
      Started by yertle, Today, 08:38 AM
      6 responses
      26 views
      0 likes
      Last Post ryjoga
      by ryjoga
       
      Started by algospoke, Yesterday, 06:40 PM
      2 responses
      24 views
      0 likes
      Last Post algospoke  
      Working...
      X