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

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.
              JimNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by cmtjoancolmenero, Yesterday, 03:58 PM
              11 responses
              39 views
              0 likes
              Last Post cmtjoancolmenero  
              Started by FrazMann, Today, 11:21 AM
              0 responses
              3 views
              0 likes
              Last Post FrazMann  
              Started by geddyisodin, Yesterday, 05:20 AM
              8 responses
              52 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by DayTradingDEMON, Today, 09:28 AM
              4 responses
              26 views
              0 likes
              Last Post DayTradingDEMON  
              Started by George21, Today, 10:07 AM
              1 response
              22 views
              0 likes
              Last Post NinjaTrader_ChristopherJ  
              Working...
              X