I am developing several indicators in a hyerarchical framework and need to make use of NS folders to keep things separate. While copying indicators from folder to folder NS Editor complains about namespaces issues. Is there a source where I can study what a folder is from a programmatic stand point? I can see that folder in NS Editor are "physically" created on filesystem, but is it true that when I create a folder in NS Editor I am actually creating a namespace? Please shed some light... thanks!
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
NinjaScript folders and namespaces... what the relation is?
Collapse
X
-
NinjaScript folders and namespaces... what the relation is?
Hi NT,
I am developing several indicators in a hyerarchical framework and need to make use of NS folders to keep things separate. While copying indicators from folder to folder NS Editor complains about namespaces issues. Is there a source where I can study what a folder is from a programmatic stand point? I can see that folder in NS Editor are "physically" created on filesystem, but is it true that when I create a folder in NS Editor I am actually creating a namespace? Please shed some light... thanks!Tags: None
-
Hello afoschini,
Thank you for the post.
Making a folder or moving an existing file into a folder within the NinjaScript editor will automatically change the namespace of the script to the name of the folder for organizational purposes. If you move the script files into folders from the Windows file explorer, the indicator's namespace will not change.
Please let me know if I can assist further.Chris L.NinjaTrader Customer Service
- Likes 1
-
Thank you Chris, I re-edit this post to add a piece of information I would like to get confirmation on.
If I move script files into folders from the Windows file explorer, the indicator namespace will not change but what is really important, Ninjatrader won't allow to add the indicators moved into a chart. Altough if I edit the indicator with NS, modifying the namespace to match the folder I moved the indicator into, then NT will display the indicator into the indicator list and allow me to add to a chart. Is this the correct behaviour?
Thanks.
Andrea
Originally posted by NinjaTrader_ChrisL View PostHello afoschini,
Thank you for the post.
Making a folder or moving an existing file into a folder within the NinjaScript editor will automatically change the namespace of the script to the name of the folder for organizational purposes. If you move the script files into folders from the Windows file explorer, the indicator's namespace will not change.
Please let me know if I can assist further.Last edited by afoschini; 10-29-2018, 04:54 AM. Reason: I re-edit this post to add a piece of information I would like to get confirmation on.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rbeckmann05, Yesterday, 06:48 PM
|
1 response
12 views
0 likes
|
Last Post
by bltdavid
Today, 05:43 AM
|
||
Started by llanqui, Today, 03:53 AM
|
0 responses
6 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
10 views
0 likes
|
Last Post Today, 12:38 AM | ||
Started by AaronKoRn, Yesterday, 09:49 PM
|
0 responses
15 views
0 likes
|
Last Post
by AaronKoRn
Yesterday, 09:49 PM
|
||
Started by carnitron, Yesterday, 08:42 PM
|
0 responses
11 views
0 likes
|
Last Post
by carnitron
Yesterday, 08:42 PM
|
Comment