PDA

View Full Version : Bug Reports


jpk67fr
01-07-2010, 03:07 AM
Hello,

Sorry for my english but I am French.

NT7 seems to be a future great product !

This is my bug list/strange behavoir:

1. You cannot select and copy in a another application like EXCEL
trades in strategy analyser result. I was possible in NT6.5

2. When you compile a indicator and you have a error (I took indicator for NT6.5), if you correct all errors, you still have a message that said you still have some errors. (if you close the file and reopen it, no more error message).

3. In IOrder documentation, you still have Order.Action insteed of OrderAction.Action.

4. In IOrder documentation, you still have Action.Buy insteed of OrderAction.Buy

5. In strategy analyser, it is nice to have parameters in sliding windows but when you run a backtest, the sliding of the window is really too slow.

6. In strategy analyser, Monthly (and Annualy,...) results as show as "01/09/2009 00:00:00"

7. in historical data, "Reload all" is nice but please, give us the old behavior where you can choose to reload only part of a instrument. It is really important for me to be sure to have the right historical data in my database when I do backtest.

8. Strange behavior in data: the first time I go back the morning after a hibernation of the system, volume was wrong in the day before (it was cumulated on the last bar).

9. not all data are displayed: impossible to get this morning date between 8:00 and the moment I turn on my computer after hibernation. I stop and run one more time NT7 but I have the same result. I test it with NT6.5 and I have all my datas.

10. Core dump: I join my trace below:

2010-01-07 09:43:08:156 in OnUnhandledThreadException
2010-01-07 09:43:08:171 ********* exception trapped *********
2010-01-07 09:43:08:171 Le processus ne peut pas accéder au fichier 'F:\Mes Documents\NinjaTrader 7\db\minute\CAC40 01-10\20100107.Ask.ntd', car il est en cours d'utilisation par un autre processus.
2010-01-07 09:43:08:171 à System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
à System.IO.File.Delete(String path)
à NinjaTrader.Gui.DeleteBars.DeleteDbBars(Instrument instrument, PeriodType periodType, DateTime delFrom, DateTime delTo)
à NinjaTrader.Gui.Globals.DoReloadHistoricalData(Bar s[] clientBarsToReload)
à NinjaTrader.Data.HistoricalDataManager.OnReloadAll (Object sender, EventArgs e)
à System.Windows.Forms.Control.OnClick(EventArgs e)
à System.Windows.Forms.Button.OnClick(EventArgs e)
à System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
à System.Windows.Forms.Control.WndProc(Message& m)
à System.Windows.Forms.ButtonBase.WndProc(Message& m)
à System.Windows.Forms.Button.WndProc(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
2010-01-07 09:43:11:734 in OnUnhandledThreadException
2010-01-07 09:43:11:734 ********* exception trapped *********
2010-01-07 09:43:11:734 Le processus ne peut pas accéder au fichier 'F:\Mes Documents\NinjaTrader 7\db\minute\CAC40 01-10\20100107.Ask.ntd', car il est en cours d'utilisation par un autre processus.
2010-01-07 09:43:11:734 à System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
à System.IO.File.Delete(String path)
à NinjaTrader.Gui.DeleteBars.DeleteDbBars(Instrument instrument, PeriodType periodType, DateTime delFrom, DateTime delTo)
à NinjaTrader.Gui.Globals.DoReloadHistoricalData(Bar s[] clientBarsToReload)
à NinjaTrader.Data.HistoricalDataManager.OnReloadAll (Object sender, EventArgs e)
à System.Windows.Forms.Control.OnClick(EventArgs e)
à System.Windows.Forms.Button.OnClick(EventArgs e)
à System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
à System.Windows.Forms.Control.WndProc(Message& m)
à System.Windows.Forms.ButtonBase.WndProc(Message& m)
à System.Windows.Forms.Button.WndProc(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
2010-01-07 09:43:13:921 in OnUnhandledThreadException
2010-01-07 09:43:13:921 ********* exception trapped *********
2010-01-07 09:43:13:921 Le processus ne peut pas accéder au fichier 'F:\Mes Documents\NinjaTrader 7\db\minute\CAC40 01-10\20100107.Ask.ntd', car il est en cours d'utilisation par un autre processus.
2010-01-07 09:43:13:921 à System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
à System.IO.File.Delete(String path)
à NinjaTrader.Gui.DeleteBars.DeleteDbBars(Instrument instrument, PeriodType periodType, DateTime delFrom, DateTime delTo)
à NinjaTrader.Gui.Globals.DoReloadHistoricalData(Bar s[] clientBarsToReload)
à NinjaTrader.Data.HistoricalDataManager.OnReloadAll (Object sender, EventArgs e)
à System.Windows.Forms.Control.OnClick(EventArgs e)
à System.Windows.Forms.Button.OnClick(EventArgs e)
à System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
à System.Windows.Forms.Control.WndProc(Message& m)
à System.Windows.Forms.ButtonBase.WndProc(Message& m)
à System.Windows.Forms.Button.WndProc(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
2010-01-07 09:43:15:796 in OnUnhandledThreadException
2010-01-07 09:43:15:796 ********* exception trapped *********
2010-01-07 09:43:15:796 Le processus ne peut pas accéder au fichier 'F:\Mes Documents\NinjaTrader 7\db\minute\CAC40 01-10\20100107.Ask.ntd', car il est en cours d'utilisation par un autre processus.
2010-01-07 09:43:15:796 à System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
à System.IO.File.Delete(String path)
à NinjaTrader.Gui.DeleteBars.DeleteDbBars(Instrument instrument, PeriodType periodType, DateTime delFrom, DateTime delTo)
à NinjaTrader.Gui.Globals.DoReloadHistoricalData(Bar s[] clientBarsToReload)
à NinjaTrader.Data.HistoricalDataManager.OnReloadAll (Object sender, EventArgs e)
à System.Windows.Forms.Control.OnClick(EventArgs e)
à System.Windows.Forms.Button.OnClick(EventArgs e)
à System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
à System.Windows.Forms.Control.WndProc(Message& m)
à System.Windows.Forms.ButtonBase.WndProc(Message& m)
à System.Windows.Forms.Button.WndProc(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
2010-01-07 09:43:17:609 in OnUnhandledThreadException
2010-01-07 09:43:17:609 ********* exception trapped *********
2010-01-07 09:43:17:609 Le processus ne peut pas accéder au fichier 'F:\Mes Documents\NinjaTrader 7\db\minute\CAC40 01-10\20100107.Ask.ntd', car il est en cours d'utilisation par un autre processus.
2010-01-07 09:43:17:609 à System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
à System.IO.File.Delete(String path)
à NinjaTrader.Gui.DeleteBars.DeleteDbBars(Instrument instrument, PeriodType periodType, DateTime delFrom, DateTime delTo)
à NinjaTrader.Gui.Globals.DoReloadHistoricalData(Bar s[] clientBarsToReload)
à NinjaTrader.Data.HistoricalDataManager.OnReloadAll (Object sender, EventArgs e)
à System.Windows.Forms.Control.OnClick(EventArgs e)
à System.Windows.Forms.Button.OnClick(EventArgs e)
à System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
à System.Windows.Forms.Control.WndProc(Message& m)
à System.Windows.Forms.ButtonBase.WndProc(Message& m)
à System.Windows.Forms.Button.WndProc(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)



Regards.

NinjaTrader_Ray
01-07-2010, 09:02 AM
Thank you for taking the time to publish your comments. See my response below.
1. If you are referring to exporting the grid data in Excel this is still supported. In any grid, right click and select the "Grid" menu then select the menu "Export to Excel".
2. I don't believe anything has changed in this area between 6.5 and 7. If I open an indicator in 7, type in an erorr, compile, I see the list of errors in the editor at the bottom, then I remove the error, recopmile and the error list is gone. Do you see something different?
3. Thanks, will make sure this is updated.
4. Thanks, will make sure this is updated.
5. Thanks for your comments.
6. Thanks, will look into.
7. You can still go to your chart and select "Reload Historical Data" which was the 6.5 behaviour I believe you are referring to.
8. Can you provide me the specifics of the chart (5 Minute? What Instrument? What session tempalte was used? Thx.
9. Same questions as #8
10. Can you reproduce this? What exactly did you do when this exception was thrown? My french is rusty but does it say something like File can not be accessed ? What is F: drive? Is this a network drive by chance?Thanks, will make sure this is updated.

jpk67fr
01-08-2010, 02:29 AM
Hello,

1. Yes, it is. Thank you

2. Not easy to reproduce. I will try next days

7. Not exactly the same behavior, was more precise before...

8,9,10. Difficult to reproduce. I will try.

11. NEW:
I use Zen-fire.
When I connect, I loose first the connection few seconds and reconnect.
That it is done near every time

12. NEW:
I use Zen-fire.
In Log I have Instrument 'CAC40 01-10' not supported but it is exactly the same in NT6.5 and is working. (I use Matif stock exchange in both).

NinjaTrader_Dierk
01-08-2010, 03:45 AM
11) This is a connectivity issue. Please contact your broker for clarification. I did not experience any issue on my Zen account here.

12) I added CAC40 01-10 Matif to the default instrument, connected Zen and pulled historical data for that instrument -> no entry in the logs. Please let us know how to reproduce the log error. Thanks

gregid
01-09-2010, 05:41 AM
2. This error is quite easy to reproduce on my end.

a) In any correct indicator enter two lines with errors (like missing semicolon at the end):
Print("first error")
Print("second error")


b) Now compile - you see list of two errors informing you about missing semicolon


c) Correct first error only and compile again - you still see the list of two errors


d) You can even try to comment out the first error (and compile) - it is still listed under errors (attached image)


e) Correct both errors - finally errors disappears


The debugger seems to keep in memory the very first error you make and display it until all errors are corrected even if the first one is already corrected.
But I think it was also a problem in NT6.5

NinjaTrader_Dierk
01-09-2010, 11:03 PM
This is not what I see. First error is removed as soon as I add a semicolon at the end of the first line (or comment out the offending line) and press the compile button.

gregid
01-10-2010, 10:02 AM
Dierk, I can only assure you I didn't forge the attached image.

If anyone else reading this thread has similar problem (which is quite easy to test) please confirm it by posting a reply to this thread

NinjaTrader_Dierk
01-10-2010, 02:24 PM
Do you have Right click->Inline syntax checking enabled? Then this is expected:
- your code snipped below produces 4 (!) error lines as you press the compile button: 2 from inline syntax checking which you did not resolve and 2 from the actual compiler
- as you resolve one error and press the compile button 2 error lines relating to the same (!) error persist. Line/column is different since inline syntax checking and actual compiler go by a different logic
- as soon as you resolve the 2nd error, the related inline syntax checking error goes away
- as you then press again compile button, the remaining error line goes away

gregid
01-12-2010, 02:59 AM
Thanks Dierk,
Yes it was Inline Syntax Checking Enabled in my case that caused the trouble.
The question is: should Inline Syntax Checking also highlight errors in commented out statements - is it the expected behaviour?

NinjaTrader_Dierk
01-12-2010, 03:02 AM
>> The question is: should Inline Syntax Checking also highlight errors in commented out statements - is it the expected behaviour?
It does not.

gregid
01-12-2010, 03:21 AM
I direct you to the image I attached originally where it highlights the error in commented statement

NinjaTrader_Dierk
01-12-2010, 03:24 AM
Please reread my post below to understand that BOTH error messages refer to the SAME error.

gregid
01-12-2010, 03:47 AM
I understand you are refering to:
- as you resolve one error and press the compile button 2 error lines relating to the same (!) error persist. Line/column is different since inline syntax checking and actual compiler go by a different logic

I only can't understand why you claim that pointing to a different line is only a "different logic" and not a bug in Inline Syntax Checking.
Thanks

NinjaTrader_Dierk
01-12-2010, 03:53 AM
Not sure how to make it any clearer:
- the compiler comes from MS and has it's own line/column numbering
- the inline syntax checker comes from the editor provider (not MS) and has it's own line/column numbering
- obviously both don't match
- with next update we're trying to resolve the issue. However, by the bare nature of the problem there always could be the situation you ran into

It just does not make any sense to have Inline Syntax checking turned on, but ignore the reported errors and then press F5. You then might as well just disable the syntax checking to avoid any confusion.

gregid
01-12-2010, 04:49 AM
Thanks Dierk,
Your answer clears the misunderstanding and confusion.

NinjaTrader_Dierk
01-12-2010, 06:20 AM
Excellent. Thanks

Light
04-18-2010, 07:01 PM
Guys, in 7.0.0.14, I am unable to turn off Inline Syntax Checking (assuming this is the red markings showing check-as-you-go programming errors in the NinjaScript Editor window). Right-clicking in the editor window, then checking/unchecking the box next to "Inline Syntax Checking" has no effect. The editor continues to check syntax regardless of whether the box on the context menu is "checked" or not.

I noticed because with my largest program (a few thousand lines), syntax checking is slowing down my computer. Text appears significantly slower in the editor window because of the time it takes the syntax checker to run (apparently). Is there another way besides Ctrl+S, or right-click > context menu, to turn off Inline Syntax Checking?

Thanks for your help. NT7 is otherwise doing great...

Light

NinjaTrader_Dierk
04-18-2010, 10:13 PM
There is a misunderstanding: if you have inline syntax checking then you'll see errors plotted in a grid like compile errors at the bottom. The red markers always are on. BTW: same with NT6.5, nothing has changed in that regard.