• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exporting a Study

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

    Exporting a Study

    I used the instructions in the help guide to export a complied assembly.I dragged the zip file into a gmail to send it to someone and I got this error:


    Any ideas why this happened? Also, are there any resources available that explain how to create a simple installer?

    #2
    Hello swcooke ,

    Thank you for your post.

    It looks like the image you provided did not come through, could you try to edit the post and replace the image? If this is a Gmail error, you may instead try using other file sharing solutions such as Dropbox or google drive to upload the .zip. Depending on the contents or size your email provider may block the zip from being attached.

    In regard to the installer, there is not currently any supported or documented means to create an installer, the platforms export process would be the only supported way to distribute files.



    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Here is a screenshot of the error I get:
      https://www.screencast.com/t/cNLKps2196m

      Note that even if I use Google Drive to share, when it is downloaded by the intended user, there is a download warning on the file that looks like this:
      https://i.ytimg.com/vi/C2QE6q3gKH0/maxresdefault.jpg

      Is there any way to prevent either of these? Gmail and google drive are pretty popular ways to communicate and share. Am I the first with this issue? Wondering if it's my machine or something.

      Comment


        #4
        Hello swcooke,

        In this case, this is related to Gmail and their security so an alternative download location would need to be used to send this file to the user.

        The other image shows Chrome and how it handles .zip files in some cases. If your export is a compiled assembly which contains a dll, that is likely the reason it was flagged. This is standard with chrome so the user would need to accept the warning to download the file from an unknown source. I am unaware of a way to have this disabled as that is just a security feature of chrome.


        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Thanks for the reply. On a related note, I am exporting a compiled assembly and then sending it to myself on another machine. It imports successfully and the Indicator is visible in the Indicators window. However, the settings do not look like they do when on the original machine. I have tried this for two different indicators and neither indicator actually plots or shows settings similar to how they should look. I don't see any errors when exporting the compiled assembly or importing. What could be the issue?

          Comment


            #6
            Hello swcooke,

            When you say:
            However, the settings do not look like they do when on the original machine.
            Are some missing or are they in a different order? Can you provide more detail on what specifically is different?

            From what has been described nothing specific comes to mind, potentially there is a naming conflict and the incorrect or older version of this script is being exported?

            I would say the best way to approach this question is going to make a simple test to find out where the problem is. You could create a brand new indicator that has a new name that has not been used before or would otherwise be hard to mistake when exporting. Next, include a few properties and maybe 1 plot, and set the plot to the Close price, nothing fancy.

            This type of test gives you a baseline to find what may be happening if there is no problem with this when imported the problem is going to be specific to something with the other script or situation there.

            I look forward to being of further assistance.
            JesseNinjaTrader Customer Service

            Comment


              #7
              Here is a video of the export process on the first machine:
              https://drive.google.com/open?id=1Qn...ZrShY1cCFMbjIc

              Here is a video of the import process on the second machine:
              https://drive.google.com/open?id=1kW...Q_KjSPPDm51vQ1

              Note that the Indicator uses another Indicator called Rr which you can see in the first video. Looks like that is the only one that gets imported. Also, I just tried removing the namespacing NinjaPro.RelativeRange from each of the Indicators and recompiled and tried the export again. Same result, I end up with just the Indicator called Rr and not the main Indicator. Note that the file name of the supporting Indicator is Rr and the actual string name shown in my video is RelativeRangeCoreLogicData.

              Comment


                #8
                Hello swcooke,

                I reviewed the videos and wanted to make sure I have understood the overall problem, it seems that the problem is not that it is displaying differently but that you are not seeing one of the items listed, is that correct?

                Are you seeing any errors in the log tab when opening the indicators list?

                Very likely you would still need to make a simple test script to find where the problem is, there is nothing from the video that would indicate what the problem is at this point. If you are getting a specific error in the log tab when opening the indicators list, that could explain why it is not seen. Otherwise, if there are no errors, you would need to do a more simple test to find what specifically controls the error.

                I look forward to being of further assistance.
                JesseNinjaTrader Customer Service

                Comment


                  #9
                  In my State.DataLoaded, I have this line which appears to be throwing the error:
                  Code:
                  Plots[0].AutoWidth = true;
                  Below is the error. Any ideas?
                  4/19/2019 9:01:09 AM Default Indicator 'AverageRangeAtTime': Error on calling 'OnStateChange' method: Method not found: 'Void NinjaTrader.Gui.Plot.set_AutoWidth(Boolean)'.
                  Note that this error does not occur on the original machine where the indicator was built. It only happens on the machine I am trying to share to.

                  Comment


                    #10
                    Hello swcooke,

                    Thank you for checking that, this explains the situation more. If the error is coming up in the OnStateChange override, the indicator would not be in the list.

                    AutoWidth was added in one of the most recent releases, it is in the 8.0.16.3 release notes. https://ninjatrader.com/support/help...s/8_0_16_3.htm
                    Are you currently up to date on the other machines? This would be the most likely case here, or that the other machines are not all the way updated which explains the error message you are getting. Could you check this before we continue further, please?

                    I look forward to being of further assistance.
                    JesseNinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by iq200, 03-11-2018, 07:49 PM
                    24 responses
                    1,004 views
                    0 likes
                    Last Post mrlucky1x  
                    Started by DavidHP, Today, 08:18 PM
                    0 responses
                    1 view
                    0 likes
                    Last Post DavidHP
                    by DavidHP
                     
                    Started by liquid150, Today, 06:20 AM
                    1 response
                    10 views
                    0 likes
                    Last Post User1104  
                    Started by liquid150, Today, 06:22 AM
                    1 response
                    17 views
                    0 likes
                    Last Post lexusfood  
                    Started by geo9419, 05-09-2019, 02:39 PM
                    9 responses
                    320 views
                    1 like
                    Last Post jgoarm
                    by jgoarm
                     
                    Working...
                    X