Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

8.1.2.1 cannot export arrays

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

    8.1.2.1 cannot export arrays

    I have a strategy with a string array, 8.1.2.1 will not allow it to be exported (returns an error), I have a machine running legacy 8.0.28.0, and the same source code exports just fine.

    #2
    Can you post an example NinjaScript
    that demonstrates the error?

    Comment


      #3
      Hello Conceptzx ​,

      Thank you for reaching out.

      Is the automated strategy you are working with, a strategy coded by yourself using the Strategy Builder, or was it acquired from a 3rd party?

      If it is your own coded strategy, please contact our engineering team at

      [email protected]

      and they will be able to guide you in this matter.

      If it is a 3rd party strategy, you would want to contact the developer for assistance with their software and our latest version.

      Please let us know if you have any other questions.​
      Erick P.NinjaTrader Customer Service

      Comment


        #4
        It's custom code. I put some guard code in as follows;

        Code:
        private string[] allowedMachineIDs = new string[] { "mID1", "mID2" };
         protected override void OnBarUpdate()
        {
        string currentMachineID = Cbi.License.MachineId; bool isMachineIDAllowed = false; foreach (string id in allowedMachineIDs)
        {
        if (currentMachineID == id) { isMachineIDAllowed = true; break; } }
        if (!isMachineIDAllowed) { Print("Unauthorized access detected!");​ return;}
        [/QUOTE]

        Older version took the exact same source code and compiled without issues.
        Last edited by Conceptzx; 02-23-2024, 11:58 AM.

        Comment


          #5
          Originally posted by Conceptzx View Post
          compiled without issues.
          You have a compiler error?

          Can you provide a screenshot of the full error message?

          Comment


            #6
            It compiles but has an error when I try to export it as a compiled assembly

            Comment


              #7
              How do you know which lines of code are causing the error?

              Comment


                #8
                Hello Conceptzx ​,

                Thank you for your message. And thank you bltdavid​ for always being helpful in these forums, it is greatly appreciated.

                A screenshot of the full error you are receiving when Exporting will indeed be helpful.

                However, at this point, since you coded this strategy yourself, and it is showing as compiled successfully, but giving you an error when exporting, I would highly suggest you reach out to our engineering team at:

                [email protected]

                You can provide your information and issues to them and if needed, they can request more info from you and provide more comprehensive support in this matter.

                There may be issues with your references or maybe it is a conflict with the platform version since you can export in a previous version of NT8. The scripting team would be the best the advise in this matter.

                However, you can continue on this thread if you would like to continue receiving expert user input and would like to keep troubleshooting on your own.

                Please let us know if you have any other questions.
                Erick P.NinjaTrader Customer Service

                Comment


                  #9
                  Originally posted by bltdavid View Post
                  How do you know which lines of code are causing the error?
                  I'll try to get a screen shot when I get back to it and send it in for support. The error message specifically mentioned an issue with arrays, there's only one in the script I can figure it would be, because that's the only thing I changed since the last export.

                  Comment


                    #10
                    Here is the error, I'll forward it to the email given above.
                    Attached Files

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by DJ888, Today, 10:57 PM
                    0 responses
                    5 views
                    0 likes
                    Last Post DJ888
                    by DJ888
                     
                    Started by MacDad, 02-25-2024, 11:48 PM
                    7 responses
                    158 views
                    0 likes
                    Last Post loganjarosz123  
                    Started by Belfortbucks, Today, 09:29 PM
                    0 responses
                    7 views
                    0 likes
                    Last Post Belfortbucks  
                    Started by zstheorist, Today, 07:52 PM
                    0 responses
                    7 views
                    0 likes
                    Last Post zstheorist  
                    Started by pmachiraju, 11-01-2023, 04:46 AM
                    8 responses
                    151 views
                    0 likes
                    Last Post rehmans
                    by rehmans
                     
                    Working...
                    X