Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawLine not functioning

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

    #16
    Originally posted by NinjaTrader_Josh View Post
    1. Works here so I can't reproduce. Please provide exact information as to what object, what you press, etc. that we can use to reproduce.

    2. Convert.ToInt32(e.Volume)
    You converted to an int. You should instead be changing the row types to longs, not the data back to what they use to be. If you continue to still have problems you need to check your indexes. Check the amount of rows actually in the row object and make sure you don't exceed the length.
    1. No doubt I'm missing something obvious here, but it's every object I've tried -lines, rectangles, dots, diamonds, arrows, ellipses. I select the object, right click, click on copy from the mini-menu (or hit Ctrl-C), click on the chart, right click for the menu, and paste is grayed out. I've also hit Ctrl-V but nothing happens.

    2. OK, I'll change the row types and see what happens, though I don't see why this would generate the out of series range error I get, or why it would work occasionally if it were a type problem. This is the 'official' NT code posted on the forum as a MarketDepth example, so the # of rows should be OK. Could it be something to do with the new ZenFire adaptor?

    Comment


      #17
      1. Suggest you try a reinstall as I cannot reproduce and the steps are as simple as those.

      2. Please keep in mind that none of our reference samples have been converted to 7 as of currently and none are guaranteed to work.
      Josh P.NinjaTrader Customer Service

      Comment


        #18
        Originally posted by NinjaTrader_Josh View Post
        1. Suggest you try a reinstall as I cannot reproduce and the steps are as simple as those.

        2. Please keep in mind that none of our reference samples have been converted to 7 as of currently and none are guaranteed to work.
        Better than that, today I did a fresh installation of Windows 7 then installed NT7, added a few custom indicators that I knew worked, including 2 that used DrawLine.

        At first Drawline worked and the copy function worked. Then I recompiled the indicator (changing only a color), reapplied the indicator to the chart, and the DrawLine lines disappeared. The indicator was still 'working'.
        The manual copy function also disappeared.

        I removed the assembly, restarted NT, and the copy funcition returned.
        The precise problem (whether or not it affects the copy function) seems to depend on Session Template as well.

        I tried that on my other computer (2 month old Vista installation), but still have no copy function, and DrawLine sometimes works and sometimes doesn't. (Like the DOM indicator that led me to the other problem.) Re-installation doesn't change anything.

        Incidentally that's a single-core machine, and it runs NT7 without any difficulty.

        Comment


          #19
          Not sure what you mean by depends on Session Template. Please provide simple as possible code where one instance it works and one instance it does not.
          Josh P.NinjaTrader Customer Service

          Comment


            #20
            Originally posted by NinjaTrader_Josh View Post
            Not sure what you mean by depends on Session Template. Please provide simple as possible code where one instance it works and one instance it does not.
            It's erratic, so I can't duplicate the precise results. And it's different on each computer.

            Anyway, I reinstalled NT7 on the windows 7 computer, and the Line functions are now working, at least for the moment. I think I'll hope for the best and leave the other computer until my Windows 7 upgrade for it arrives.

            However, I'm now getting a green-coded error when attempting to reload historical data:
            Failed to unzip server data: System.UnauthorizedAccessException: Access to the path '.... Documents\NinjaTrader 7\tmp\zipped_d8769ed24b8f4350a75ef2f95dee9bb3' is denied.
            at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
            at System.IO.File.Delete(String path)
            at NinjaTrader.Server.BarsReply..ctor(Bytes bytes, Int32 version)

            Any suggestions?

            Comment


              #21
              This is perhaps related:

              Applying the VolumeZones indicator, when I set DrawLines to True, the indicator disappears from the chart. When I change it back to False the indicator reappears. Nothing turns up in the log.

              Comment


                #22
                palinuro,

                Please close NT, then go to Documents\NinjaTrader 7\tmp and delete all the files. See if that helps the next time you reopen NT. Is there any information you can provide that was occurring or what you were doing when you ran into this "Failed to unzip" error? Which data provider?

                Thanks for reporting the VolumeZones bug.
                Josh P.NinjaTrader Customer Service

                Comment


                  #23
                  Originally posted by NinjaTrader_Josh View Post
                  palinuro,

                  Please close NT, then go to Documents\NinjaTrader 7\tmp and delete all the files. See if that helps the next time you reopen NT. Is there any information you can provide that was occurring or what you were doing when you ran into this "Failed to unzip" error? Which data provider?

                  Thanks for reporting the VolumeZones bug.

                  It was ZenFire, but I'm not having the problem with B3. If it turns up again I'll do as you suggest and report.

                  Thank you.

                  Comment


                    #24
                    This problem turned up again on a time-based chart. Perhaps the following information can help you to track it.

                    I double-clicked on a manually drawn line in the Volume pane - I have done this before without any problems, but this time I got the "NT must close" message. After restarting, this kept happening until I removed the Workspaces folder, whereupon NT started normally.
                    However, the manual copy line function didn't work and the NinjaScript DrawLine method stopped working (as previously).
                    This continued until I backed up and then deleted the Template file contained in the Templates/ChartObject folder. Deleting that file restored normal function.

                    Unfortunately, the same solution didn't work on my other computer, on which those functions have never worked properly.

                    Comment


                      #25
                      Please provide complete information as to how your chart was set up, how the line was drawn, and any other information you have in regards to your setup.

                      Do you still have the workspace? Please attach it here so we can test with it.
                      Josh P.NinjaTrader Customer Service

                      Comment


                        #26
                        Originally posted by NinjaTrader_Josh View Post
                        Please provide complete information as to how your chart was set up, how the line was drawn, and any other information you have in regards to your setup.

                        Do you still have the workspace? Please attach it here so we can test with it.
                        I don't have the workspace any more; next time I'll keep everything. Here's some other information:

                        It was 5 minute ES chart with a Volume pane. The line I double-clicked to start the problem was simply one of a number of trend lines drawn manually on the Volume pane. There were others in the Price pane as well, and one indicator applied to the price pane used DrawLine().

                        If it'll help I'll email the Indicator Set I was using - though at present it is functioning fine, so you probably won't be able to reproduce the problem on demand. I should perhaps add that one of the indicators works fine on this chart, but doesn't work on volume-based charts - but that seems likely to be a separate problem.

                        Comment


                          #27
                          palinuro,

                          The next time it occurs, please keep everything as is and we will try to take a look. Thank you.
                          Josh P.NinjaTrader Customer Service

                          Comment


                            #28
                            "AutoTrendLine" indy Not Importing

                            Although several indicators that import seamlessly on NT6.5 don't import on N7Beta, I urgently need the "AutoTrendLine"; but it would not import. The error message, which I've noted and understand is common to several indicators I want to import into NT7Beta, is as follow;

                            "Import failed, The NinjaScript Archive File may contain duplicate methods names that already exist on your PC or there is a required file missing on either your PC or in the import archive"

                            The Automatic Trend Line Detection ("AutoTrendLine") indy is in the Download link. Please, is there any fix ?

                            Comment


                              #29
                              omololu,

                              Not all scripts from 6.5 are compatible to 7. You will have to make amends for it to be compatible.
                              Josh P.NinjaTrader Customer Service

                              Comment


                                #30
                                Originally posted by NinjaTrader_Josh View Post
                                omololu,

                                Not all scripts from 6.5 are compatible to 7. You will have to make amends for it to be compatible.
                                Josh,

                                Can you suggest a quick patchy fix for this "AutoTrendLine" indy ? Or suggest some amendments I need to make in the script.

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                                0 responses
                                626 views
                                0 likes
                                Last Post Geovanny Suaza  
                                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                                0 responses
                                359 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by Mindset, 02-09-2026, 11:44 AM
                                0 responses
                                105 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                                0 responses
                                562 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by RFrosty, 01-28-2026, 06:49 PM
                                0 responses
                                567 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X