View Full Version : NT7 problems
eDanny
10-04-2009, 05:41 PM
First the installation went without a hitch and I 'migrated' the 6.5 stuff over. When I open a chart and connect live, the price in the DOM moves as normal but the chart does not update at all. I also accidentally put one of my custom indicators on the price panel and it shrunk the price bars to a line as usual but when I moved the indicator to a lower panel, price stayed flatlined until I closed the chart. I also can't seem to save the candlestick properties I change like I can the chart properties, since they are now separated. I also saw no Renko or HA bar options, I thought they were included. Ideas?
NinjaTrader_Josh
10-04-2009, 05:46 PM
eDanny,
You can save chart style properties by right clicking in the Data Series window and selecting Save Default. You can save defaults for each type. So, Minutes can have a default, Ticks can have a different default.
For the HA and Renko, you should be able to see it in the Data Series window. Please see attachment.
As far as the flatlining goes. Can you provide the indicator and some steps so we can try on our end? Thanks.
eDanny
10-04-2009, 05:51 PM
First things first, why are my charts not updating? That indicator is a realtime indicator and I had to change a couple volume variables to 'long' but can't even see if it works ok without working charts. This is standard 32 bit XP.
eDanny
10-04-2009, 06:29 PM
I reopened NT7 and brought another indicator in that I had to edit 'int' to 'long' and have that on a chart too, but no movement on the chart. Started Market Replay so I could at least test but the chart is frozen, just showing historical data. Hmmm the replay DOM was frozen too until I just started jogging the ladder. Now things are moving but the indicators are in need of fixing. Seems there is more to the conversion than changing 'int' to 'long'. Can we have 6.5 and 7 running at the same time with the same license so as to compare the same indicator on both platforms to debug?
NinjaTrader_Ray
10-04-2009, 06:48 PM
I reopened NT7 and brought another indicator in that I had to edit 'int' to 'long' and have that on a chart too, but no movement on the chart. Started Market Replay so I could at least test but the chart is frozen, just showing historical data. Hmmm the replay DOM was frozen too until I just started jogging the ladder. Now things are moving but the indicators are in need of fixing. Seems there is more to the conversion than changing 'int' to 'long'. Can we have 6.5 and 7 running at the same time with the same license so as to compare the same indicator on both platforms to debug?
Unfortunately this is not possible. With respect to charts not moving, NT7 introduces session management, which has default settings per instrument. You can change the session template used in the Chart's Data Series window.
eDanny
10-04-2009, 06:53 PM
Also I am now not showing any DrawText() or DrawTextFixed() objects in any of my indicators on chart!
Edit: Or DrawLine(). Are all draw functions broken or do I just have a bad install?
NinjaTrader_Ray
10-04-2009, 06:58 PM
Also I am now not showing any DrawText() or DrawTextFixed() objects in any of my indicators on chart!
You are going to have to debug this. We did change some signature of Draw() methods...Check the log window, are there are errors? Open your script, add some Print() statements.
eDanny
10-04-2009, 07:02 PM
DrawHorizontalLine() does not work either but DrawRegion() does. This is huge as it will affect every indicator out there, just about. There has gotta be something wrong with my install as I can't believe NT7 will break everything! No, there is nothing showing up in the Log tab either. I'll wait and see what others experience.
NinjaTrader_Josh
10-04-2009, 09:18 PM
eDanny,
Hmm. The Draw methods should work. Can you try a new indicator with a very simple Draw() method in use and see if that works?
NinjaTrader_Josh
10-05-2009, 07:37 AM
eDanny,
Also, which signature method is in use with your code? Can you provide us with that information? Thanks.
blarouche
10-05-2009, 10:31 AM
I've had the same problem.
They change the method signature.
You have to modify your method
Bernard
NinjaTrader_Josh
10-05-2009, 10:41 AM
blarouche,
Curious, which signature were you guys using that did not migrate?
blarouche
10-05-2009, 10:53 AM
Josh
I had to change the following methods :
DrawText
DrawRay
Bernard
eDanny
10-05-2009, 11:13 AM
The Example on the IDrawObject help page appears to be wrong.
whitmark
10-05-2009, 11:18 AM
I too needed to modify DrawText calls to accommodate the addition of the "yPixelOffset" parameter. Not clear to me why the signature compatable with NT65 version is not supported just by keeping the default value at zero for this parameter. It was the only code I had to change in a 3100 line indicator.
Whitmark
NinjaTrader_Dierk
10-05-2009, 11:49 AM
Guys, could you please point out exact signatures so we could look into. Thanks
blarouche
10-05-2009, 11:54 AM
Here is the new signature :
DrawText(string tag, bool autoScale, string text, int barsAgo, double y, int yPixelOffset, Color textColor, Font font, StringAlignment alignment, Color outlineColor, Color areaColor, int areaOpacity)
the old signature didn't include nt yPixelOffset :
DrawText(string tag, bool autoScale, string text, int barsAgo, double y, Color textColor, Font font, StringAlignment alignment, Color outlineColor, Color areaColor, int areaOpacity)
Hope it helps
Bernard
whitmark
10-05-2009, 12:01 PM
Mine specifically was . . .
NT65 (11 arguments):
DrawText(string tag, bool autoscale, string text, barsago int, double y, Color textColor, Font font, StringAlignment alignment, Color outlineColor, Color areaColor, int areaOpacity)
NT7 (12 arguments):
DrawText(string tag, bool autoscale, string text, barsago int, double y, Color textColor, int yPixelOffset, Font font, StringAlignment alignment, Color outlineColor, Color areaColor, int areaOpacity)
Whitmark
eDanny
10-05-2009, 12:05 PM
Mine all have the pixel offset in the 6.5 code so my problem appears to be something else.
NinjaTrader_Dierk
10-05-2009, 12:12 PM
Thanks guys. Here is the deal: we already have 3 signatures for each Draw method. Since we added new logic a new parameter needed to be squeezed in. We did this by amending the widest of all signatures.
We are aware that this could cause some hassle but felt it would be the "least pain" approach at the long rung. Hope, this makes sense.
eDanny
10-05-2009, 12:30 PM
I have uninstalled NT7, deleted the folders, reinstalled without migrating and the problem still exists. The Signatures for the Draw methods are correct per NT7. One thing I did notice though is one of my indicators has a couple or DrawLine() statements, which should work perfectly, but on my chart the lines don't show up. Thing is, I can point to the approximate spot and click and hold my mouse and a red circle with a dash appears. Seems to be a "Can't drag this line" warning. So, in this case it appears the line is there but hidden.
NinjaTrader_Ray
10-05-2009, 12:33 PM
I have uninstalled NT7, deleted the folders, reinstalled without migrating and the problem still exists. The Signatures for the Draw methods are correct per NT7. One thing I did notice though is one of my indicators has a couple or DrawLine() statements, which should work perfectly, but on my chart the lines don't show up. Thing is, I can point to the approximate spot and click and hold my mouse and a red circle with a dash appears. Seems to be a "Can't drag this line" warning. So, in this case it appears the line is there but hidden.
Please double click the invisible line? What color is it? Same as background chart color? What color are you passing into the Draw() method?
eDanny
10-05-2009, 01:04 PM
Wow, look at that, it brings up the properties for the line. The color is Blue, set by my code, but my chart background is LightGray.
NinjaTrader_Ray
10-05-2009, 01:16 PM
Wow, look at that, it brings up the properties for the line. The color is Blue, set by my code, but my chart background is LightGray.
So to double check -
- Your code draws a line color blue
- The line is invisible on the chart however, its properties are set to blue
If my understanding is correct, could you send us this indicator or a sample one that can demonstrate the problem? Send to support attention to Josh and reference this post.
eDanny
10-05-2009, 03:06 PM
Done, with a new sample script.
NinjaTrader_Ray
10-05-2009, 03:14 PM
Done, with a new sample script.
Thanks, we will post back once we have had a chance to review.
NinjaTrader_Ray
10-05-2009, 04:11 PM
Thanks again for providing the sample. This is a bug.
eDanny
10-05-2009, 04:15 PM
OK thanks Ray. I have the same issues with DrawHorizontalLine(), DrawText() and DrawTextFixed(). Could they all be related?
NinjaTrader_Josh
10-05-2009, 04:23 PM
Likely the case. Thanks for reporting.