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() issues

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

    VendorLicense() issues

    Hello,
    I have a question regarding the VendorLicense() variable, can it affect the outcome of a strategy?
    Because I made exactly the same script, one without the variable and the other with the variable that I shared with clients, but I notice that we do not have the same entries at all, while the code is exactly the same.

    thank you for your reply​​

    #2
    You think that's the only possible difference that could
    explain what you're seeing?

    You want to know another thing that is different?

    The data.
    Last edited by bltdavid; 09-19-2023, 06:28 AM.

    Comment


      #3
      Differences in data are the more likely explanation.

      -=o=-

      When you and your client run the exact same script.
      -- I mean the exact same DLL, same parameters,
      same everything -- are you saying you both see
      the exact same results? All the time?

      Comment


        #4
        Are they being run on the exact same chart or on different charts with the same settings?
        RJay
        NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

        Comment


          #5
          Thank you for your feedback.
          1. It's exactly the same chart and the same timeframe and for the same instruments
          2. The settings are exactly the same for everyone
          3. But from time to time the execution is not done at the same price.

          I tested the 2 scripts at home, one without the variable and the other with the variable and I don't have the same entries, although everything is the same, so I was wondering if this variable had an impact or not and if yes, how to fix it​

          Comment


            #6
            Hello snoussi,

            Thanks for your notes.

            It is not expected that the VendorLicense() section of the code would interfere with a NinjaScript strategy placing orders. The NinjaTrader Vendor License Management service is a user authentication feature that provides the following capabilities:
            • User authentication using a unique ID generated from the PC machine ID* and a user defined ID.
            • Create, update and manage user licenses through a GUI
            • Create time based licenses
            • Create free trial based licenses
            • Process friendly and efficient authentication process that is approved by NinjaTrader
            • Authentication for both indicators and strategies (NinjaScript objects)
            • Authentication executed on NinjaTrader hosted primary and secondary (backup) servers
            • License management information maintained on NinjaTrader hosted servers including backup​

            Typically, if you see a difference in the strategy placing trades between a client and yourself, it is likely that the data the script is being run on is different. This could be a difference in the chart interval (1-minute, 1000 Volume, 100-Tick, etc.), data provider, latency, etc.

            You could consider testing the script using the Playback connection with Market Replay data to mimic the strategy running realtime. This would allow you to try to reproduce the behavior. Note the time the behavior occurs when testing in Playback. You could then further debug your strategy and settings to narrow in on the cause of the behavior and test your code at the the same point in Playback where you saw the behavior occur.

            Playback: https://ninjatrader.com/support/help...connection.htm

            To ensure the data is the same between tests, you could consider downloading Market Replay data on one machine and copy the downloaded data to the second machine. Market Replay data is stored in the Documents\NinjaTrader 8\db/replay folder.
            Brandon H.NinjaTrader Customer Service

            Comment


              #7
              Thanks a lot for your time and response :-)

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Felix Reichert, 04-26-2024, 02:12 PM
              9 responses
              50 views
              0 likes
              Last Post Felix Reichert  
              Started by AaronKoRn, 04-27-2024, 09:49 PM
              3 responses
              31 views
              0 likes
              Last Post AaronKoRn  
              Started by f.saeidi, Today, 07:07 AM
              6 responses
              19 views
              0 likes
              Last Post f.saeidi  
              Started by cmtjoancolmenero, Today, 02:31 PM
              6 responses
              16 views
              0 likes
              Last Post cmtjoancolmenero  
              Started by Graci117, Yesterday, 11:40 PM
              5 responses
              27 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Working...
              X