Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

hardcode machine id

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

    hardcode machine id

    Hi

    I am running a promo to 30 of my traders. I dont want to add this indicator to my vendor licence. Is there anyway I can hardcode a machine ID into the ninjascript please?

    Thanks

    Lucy

    #2
    Hello Lucy,

    Thank you for your post.

    There is no means to hard code a Machine ID into the NinjaScript. The Machine ID is based on the PC itself and the Machine ID is used in the NinjaTrader Vendor Licensing.

    Please let me know if you have any questions.

    Comment


      #3
      You could gather a list of the 30 machine ID's and hard code them to compare to the user's machine ID on starting the indicator.
      eDanny
      NinjaTrader Ecosystem Vendor - Integrity Traders

      Comment


        #4
        Hi

        Thanks for the replies, this is what I want to do, I have all of my customers machine id's

        How do I hard code them to the indiciator plz.

        Thanks

        Lucyx

        Comment


          #5
          // Ninjatrader 7 Code - I not sure it works for accessing the Local MachineId in NinjaTrader 8
          // Try printing it

          private string MachineID = "1F700B18601960C9FB03C42B18171E0D";

          protected override void OnBarUpdate()
          {
          if ( Cbi.License.MachineId != MachineID)
          {
          return;
          }
          }

          Comment


            #6
            Where in the script is this added? I want to do this but to a strategy.

            Comment


              #7
              Hello mestril,

              We would not divulge information for accessing licenses or MachineID's in NinjaScript. We may make exceptions for approved vendors in our EcoSystem that need it on a case by case basis, but this is not documented NinjaScript and would not be something we would advise on publicly.

              If you are a vendor in the EcoSystem and need this information, please first correspond with vendorsupport [at] ninjatrader [dot] com, and they may forward your inquiry to our NinjaScript team if you are an approved vendor. We would also want to hear your use case for why you need to access it.

              Please let us know if you have any questions.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              650 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              370 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              109 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              574 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              577 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X