PDA

View Full Version : Mysterious sim positions


TraderTony
02-13-2006, 11:37 PM
While I am trading NT seems to be opening positions in my sim account despite having no sim dom or order entry open. I keep hearing 'stop filled' etc at times when I have no position open which is a bit freaky to put it mildly. At other times I go to exit NT and I am told I have a position open. Thankfully, this is a sim position, but again, it is not something I have opened.

Any ideas?

Also, for the past couple of days, I have had a Microsoft .NET error message everytime I try to exit NT.

NinjaTrader_Ray
02-14-2006, 12:20 AM
Please check your strategy, do you have any auto reverse options enabled? Please check your order panel and see what pending orders are active, check your position tab. Also, please click on the details button when you get the .NET error message and paste the information here.

Thanks!

TraderTony
02-14-2006, 03:07 AM
ninjatrader wrote:
Please check your strategy, do you have any auto reverse options enabled? Please check your order panel and see what pending orders are active, check your position tab. Also, please click on the details button when you get the .NET error message and paste the information here.

Thanks!

OK - Doh - in checking for any auto reverse I have found that for some reason I had a shadow strategy loading automatically with my core strategy which no doubt caused the sim positions.

Will post the error message next time I get it.

Thanks.

TraderTony
02-14-2006, 06:44 AM
Here's the error message...

NinjaTrader_Dierk
02-14-2006, 06:50 AM
a) There probably is running another instance of NT. Please check by the task manager.
b) If there is only instance: Can you please provide exacts steps on how to reproduce the problem?

Thanks

TraderTony
02-14-2006, 07:45 AM
Dierk Droth wrote:
a) There probably is running another instance of NT. Please check by the task manager.

- There is only 1 version: 1 control centre, 1 Dom, 1 chart.

b) If there is only instance: Can you please provide exacts steps on how to reproduce the problem?

- Every day every time I close a Dom or a chart

Thanks

NinjaTrader_Ray
02-14-2006, 09:56 AM
What Dierk meant was in Windows Task Manager, CTRL-ALT-DELETE, check the Processes Tab, do you see two instances of NinjaTrader.exe when you get this problem?

Ray

TraderTony
02-15-2006, 06:24 AM
Situation seems to have taken a turn for the worse today and has crashed twice in tjhe past 20 mins with the following bug message:

Task manager shows just one control centre.

NinjaTrader_Ray
02-15-2006, 09:23 AM
This is a different situation, not the same error message you provided below. What OS are you on?

Thanks

TraderTony
02-15-2006, 07:37 PM
I'm on Windows XP.

Here is the full text from the most recent .Net error message...

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.IOException: The process cannot access the file "C:\Program Files\NinjaTrader 5\workspaces\Default.xml" because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Xml.XmlDocument.Save(String filename)
at NinjaTrader.Gui.WorkspaceOptions.SaveForm(Boolean applicationExit)
at NinjaTrader.Gui.WorkspaceOptions.WorkspaceOptions_ Closing(Object sender, CancelEventArgs e)
at System.ComponentModel.CancelEventHandler.Invoke(Ob ject sender, CancelEventArgs e)
at System.Windows.Forms.Form.OnClosing(CancelEventArg s e)
at System.Windows.Forms.Form.WmClose(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
NinjaTrader
Assembly Version: 5.1.1.2
Win32 Version: 5.1.1.2
CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/NinjaTrader.exe
----------------------------------------
NinjaTrader.Core
Assembly Version: 5.1.1.2
Win32 Version: 5.1.1.2
CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/NinjaTrader.Core.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
WilsonORMapper
Assembly Version: 4.2.0.1
Win32 Version: 4.2.0.1
CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/WilsonORMapper.DLL
----------------------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------
tvjtm5wv
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
dkiceulq
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
NinjaTrader.Custom
Assembly Version: 5.1.1.2
Win32 Version: 5.1.1.2
CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/Custom/NinjaTrader.Custom.dll
----------------------------------------
System.Data.OracleClient
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.data.oracleclient/1.0.5000.0__b77a5c561934e089/system.data.oracleclient.dll
----------------------------------------
vdtxyjdo
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
3rkxm3de
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
enytrtjl
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
ziwcq7-b
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
SourceGrid2
Assembly Version: 2.2.0.0
Win32 Version: 2.2.0.0
CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/SourceGrid2.DLL
----------------------------------------
SourceLibrary
Assembly Version: 1.2.3.0
Win32 Version: 1.2.3.1
CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/SourceLibrary.DLL
----------------------------------------
System.Design
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.design/1.0.5000.0__b03f5f7f11d50a3a/system.design.dll
----------------------------------------
ogulvvoe
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
vuan_y5z
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
t9z0whjr
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Management
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.management/1.0.5000.0__b03f5f7f11d50a3a/system.management.dll
----------------------------------------
ymflhnpv
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
doj3xcaz
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
NinjaTrader.IB
Assembly Version: 5.1.1.2
Win32 Version: 5.1.1.2
CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/NinjaTrader.IB.DLL
----------------------------------------
7vfy1hxw
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
qwlnzn-9
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
oeg8iac3
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
Accessibility
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll
----------------------------------------
ht_jcj26
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
zmnkrqn9
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
a1r0uojj
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
amnrlkth
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
hfqmova8
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing.Design
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.drawing.design/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.design.dll
----------------------------------------
dunycqve
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
pi4iagxs
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.

NinjaTrader_Dierk
02-15-2006, 08:29 PM
There clearly is a file locking conflict.

Please provide exact details on how to reproduce.

Thanks

TraderTony
02-15-2006, 11:45 PM
Dierk Droth wrote: There clearly is a file locking conflict.

Please provide exact details on how to reproduce.

Thanks
I keep saying - it happens every day, every time I close either a Dom or a chart. I have rebooted, reloaded etc many times but every single time I close anything this happens.

NinjaTrader_Dierk
02-15-2006, 11:51 PM
Ok, please try this: Remove file "C:\Program Files\NinjaTrader 5\workspaces\Default.xml" from your harddrive. I suspect, the problem can arise due to inconsistent file.

Note: This will remove all your UI settings.

TraderTony
02-16-2006, 12:27 AM
First signs look good - I did this and re-started NT. I opened and then closed a Dom without the error message. Will let you know how it progresses.

Thanks for all your help.

thrunner
06-13-2007, 12:16 PM
Similar situation here after a connection outage while having a position in the simulator. Deleted \My Documents\NinjaTrader 6\workspaces\Default.xml seemed to help a little with program stability. However, there is still a x0s position (zero, with a stop loss above, not shown) that cannot be deleted (by X or Flat or Close) and the DOM cannot be scrolled any longer.
Is there a way to fix this or will this go away the next day?
Please see attached picture: http://farm2.static.flickr.com/1337/544222188_dce3cf78c1_o.png

NinjaTrader_Ray
06-13-2007, 12:28 PM
Could you press the details button and email us the text to support at ninjatrader dot com and reference this post?

Then:

Tools > Options > Simulator

Reset your sim account and restart.

thrunner
06-13-2007, 02:46 PM
Thanks for the quick reply NTRay, unfortunately I closed the error dialog before saving the details. I think you can recreate this with a NT6 Zenfire trial feed, place a few simple strategy orders with say 20 tick stops, have a few of them go through and then disable the network connection. Immediately try to place another strategy order or close a position. It is possible that NT6 will attempt to repeatedly place hundreds to a thousand of the same order and become unresponsive. If you then close NT6 and restart NT6 while the data feed is still off, NT6 may give you the first Unhandled exception error shown previously or tell you that you can't run multiple copies of NT6. If you try to reboot WinXP then reestablish datafeed and succeeded (may have to delete default.xml as outlined previously), you may get hundreds of orders in the que with Zenfire, pending submission.
Other readers please note that the 1333 series of duplicated orders never went through or got processed even in the simulator with Zenfire, although it is still online with Zenfire. Although you can't cancel them, it is likely they will be expired by the next day.
http://farm2.static.flickr.com/1107/544473138_b6a06f5674_o.png

NinjaTrader_Dierk
06-14-2007, 05:30 AM
Sorry I can not reproduce. I tried:
- connected to Zen
- entered a few strategies with 1 stop/target on Sim101 resulting in a position
- pulled the network cable
- immediately closed the position

-> nothing happens as expected

thrunner
06-15-2007, 02:19 PM
Thanks for trying NTDierk. This could be a Zenfire outage problem. In any case the spurious orders did not go away the next day and I reset the simulator account. NT6 seems to become a lot more responsive without the hundreds of Pending submission (that could be the reason the DOM wasn't scrolling properly).

This may happen only when Zenfire goes out instead of just a local network problem. Do you know if Zenfire stores these pending submission orders online on their server or is it just a local NT6 database? These spurious orders appeared only after NT6 is connected to Zenfire, but that could be just the way NT6 loading the local data for Zenfire simulation.

Thanks for the quick response. There are no further errors after the simulator data has been reset.

NinjaTrader_Dierk
06-15-2007, 10:31 PM
These orders did not make it to Zen since they are placed on the sim acount, meaning they are managed by NT only and maintained on your local PC.