I have noticed that if you use a custom namespace in an indicator file ( for instance if you put your enum varaibles within a separate namespace) and move the file to another custom subfolder, then this namespace changes to the namespace of the subfolder. This is undesirable.
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
Namespace changes when file is moved to subfolder
Collapse
X
-
Namespace changes when file is moved to subfolder
Hello Ninja!
I have noticed that if you use a custom namespace in an indicator file ( for instance if you put your enum varaibles within a separate namespace) and move the file to another custom subfolder, then this namespace changes to the namespace of the subfolder. This is undesirable.Tags: None
-
This is what I do:
1. In my custom indicator I put my enums in a separate namespace. (One of my parameters is an enum)
2. I drag and drop the indicator file to a custom indicator subfolder.
This operation changes the namespace to the namespace of the subfolder.
I have attached a simple as possible example indicator that you can test to drag and drop to a subfolder.Attached Files
Comment
-
Hello poseidon_sthlm,
Thank you for posting the test script.
I took these steps, but the namespace "MyEnum" did not change.
1. Placed the "TestNamespace.cs" indicator in the indicators folder, compiled.
2. Closed down NinjaTrader 8, added a folder within ..\Documents\NinjaTrader 8\bin\Custom\Indicators named "MyTestFolder"
3. Placed the "TestNamespace.cs" indicator within "MyTestFolder".
4. Start NinjaTrader.
Check to see if you are on the latest version of NinjaTrader 8 (8.0.15.1). You can check by going to Help>Abount. If you are not on the latest version, please take the steps below to update your installation:
- First, copy your license key from NinjaTrader under Help> License Key then exit NinjaTrader
- Click on the link: http://ninjatrader.com/PlatformDirect
- Enter your license key and press Submit
- Select 'NinjaTrader 8'
- Select 'Download'
- Critical: Before running the installer, ensure NinjaTrader is closed.
- Run the installer
I look forward to hearing of your results.Chris L.NinjaTrader Customer Service
Comment
-
It happens when I drag and drop the indicator between folders in the 'NinjaScript Explorer' (within the NT Editor).
Comment
-
Hello,
Thanks for your patience.
This behavior would be expected through the NinjaScript editor. If you do not want the namespace so be renamed, move the files through the File Explorer rather than the NinjaScript editor.
Please let me know if I can assist further.Chris L.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by GussJ, 03-04-2020, 03:11 PM
|
15 responses
3,268 views
0 likes
|
Last Post Today, 03:15 PM | ||
Started by Tim-c, Today, 02:10 PM
|
1 response
7 views
0 likes
|
Last Post Today, 02:52 PM | ||
Started by Taddypole, Today, 02:47 PM
|
0 responses
2 views
0 likes
|
Last Post
by Taddypole
Today, 02:47 PM
|
||
Started by chbruno, 04-24-2024, 04:10 PM
|
4 responses
50 views
0 likes
|
Last Post
by chbruno
Today, 02:38 PM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
10 responses
401 views
1 like
|
Last Post
by beobast
Today, 02:35 PM
|
Comment