Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
How to reload script source, modified in external editor ?
Collapse
X
-
How to reload script source, modified in external editor ?
Some times ago I edit scripts in external editor (VS or UltraEditor), save code modified in this external editor and when I returned to the same code(file) opened in NinjaScriptEditor, the NinjaScriptEditor internaly determinate that the file was modified and ask me to reload new fresh source code. After reloading I simply press F5 and obtain new version of my script edited in external editor. This was a great feature! But now (in NT 7.0.1008 or in my Windows 7) something happened and NinjaScriptEditor no more see external modifications of source code, modified out of it Where I am wrong? What I need to do to return this feature?Last edited by zencoder; 01-02-2012, 08:47 AM.Tags: None
-
I do all my coding in VS, here's the process that works for me.
I have a file called __Compile (underscore to keep it at the top of the list) that has just this code in it.
namespace NinjaTrader.Custom.Indicator
{class __Compile}
{
}
Then I open the file I want to modify (or one of my template files I created with the wizard) in the NT Editor, and right-click "save as" and give it the new name. That allows the Ninjascript to rename/modify all the NinjaScript generated code at the bottom, then I compile it once in the NT Editor and then close it. Then open it and make all the modifications in VS and save the file in VS, then just f5 the __Compile file that I keep open in the NT Editor, and the changes you made in VS get compiled into the NinjaTrader.Custom.dll file and can be used by reloading NinjaScript in the chart.
I actually do things a touch different, and I posted about it on the forums, but I've got to look and find it. But that method should work.
Hope that helps.
VT
-
Originally posted by VTtrader View PostI do all my coding in VS, here's the process that works for me.
I have a file called __Compile...Last edited by zencoder; 01-02-2012, 11:10 AM.
Comment
-
Hello,
Thanks for the note.
There have been no changes to the NT code editor in releases. Not sure what would be different there in the operating system not to force the reload. No real idea's either other then make sure that the file is saved and it overwrites the file in questions and then you toggle the file to open it again in NinjaTrader.
-Brett
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ETFVoyageur, Today, 07:05 PM
|
0 responses
4 views
0 likes
|
Last Post
by ETFVoyageur
Today, 07:05 PM
|
||
Started by Orion815, 05-02-2024, 08:39 AM
|
2 responses
15 views
0 likes
|
Last Post
by Orion815
Today, 06:24 PM
|
||
Started by suroot, 02-25-2017, 04:43 AM
|
11 responses
2,549 views
0 likes
|
Last Post
by Zilvercat
Today, 05:36 PM
|
||
Started by Rogers101, 05-05-2024, 11:30 AM
|
16 responses
50 views
0 likes
|
Last Post
by Rogers101
Today, 04:44 PM
|
||
Started by ninza33, Today, 12:31 PM
|
2 responses
12 views
0 likes
|
Last Post
by ninza33
Today, 03:52 PM
|
Comment