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?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
DrawLine not functioning
Collapse
X
-
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.Originally posted by NinjaTrader_Josh View Post
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?
-
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.Originally posted by NinjaTrader_Josh View Post1. 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.
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
-
It's erratic, so I can't duplicate the precise results. And it's different on each computer.Originally posted by NinjaTrader_Josh View PostNot 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.
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
-
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
-
Originally posted by NinjaTrader_Josh View Postpalinuro,
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
-
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
-
I don't have the workspace any more; next time I'll keep everything. Here's some other information:Originally posted by NinjaTrader_Josh View PostPlease 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.
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
-
"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
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
624 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
359 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
562 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
567 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment