Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to stop ninjascript files from opening in the editor?
Collapse
X
-
How to stop ninjascript files from opening in the editor?
Sometimes when I restart ninja or when I import ninjascript, files will load themselves in the editor. This has happened for years across multiple computers so it feels like it might be a known issue with some sort of best practice associated with it so I figured it was worthwhile to ask if anyone know how to stop this behavior?Tags: None
-
Really?Originally posted by WalterSkinner View PostSometimes when I restart ninja or when I import ninjascript, files will load themselves in the editor. This has happened for years across multiple computers so it feels like it might be a known issue with some sort of best practice associated with it so I figured it was worthwhile to ask if anyone know how to stop this behavior?
In both NT7 and NT8?
That sounds odd.
I've never had that happen.
That behavior seems abnormal to me.
I have no idea how to stop it.
-=o=-
Have you used a Windows file association?
On my computers I tell Windows to associate
file extension '.cs' with my favorite text editor,
which is 'gvim'.
If you have Visual Studio installed, it will want to
associate the '.cs' file extension with itself.
I have imported .zip files plenty of times, but I
have never had the NinjaScript Editor (or gvim,
or Visual Studio) open up unexpectedly and show
me a '.cs' file, which I assume, was just imported
from the .zip file.
I mean, an import error just produces a popup
error message, right? But I digress.
-=o=-
Anyways, maybe I'm missing something on my side,
but I have never seen the behavior you describe.
For what purpose is NinjaTrader opening the '.cs'
file in the NinjaScript Editor?
Does it open a random NinjaScript file?
Do you get an error message?
Any log messages in the Log tab?Last edited by bltdavid; 02-25-2023, 12:36 PM.
-
NT8, never used 7.Originally posted by bltdavid View PostReally?
In both NT7 and NT8?
Good question. I've recently switched over to Visual Studio over the last few months but I clearly remember this for years well before I made the switch. I've developed ninjascript in so many environments from VMs on various linux distros and also quite a few windows machines I feel like this behavior would crop up intermittently from time to time.Have you used a Windows file association?
Could be paranormal
For what purpose is NinjaTrader opening the '.cs' file in the NinjaScript Editor?
No it tends to open code that I spent a lot of time on recently but generally not the most recent version.
Does it open a random NinjaScript file?
I wish.
Do you get an error message?
Nope.
Any log messages in the Log tab?
I recorded a video of the behavior before making this post, but rather than post it and share PII I opted for replying to each question this way.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
592 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
343 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
556 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
554 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment