NexusFi: Find Your Edge


Home Menu

 





Global NameSpace error when saving file


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Big Mike with 7 posts (7 thanks)
    2. looks_two max-td with 5 posts (0 thanks)
    3. looks_3 ThatManFromTexas with 4 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 6,180 views
    2. thumb_up 7 thanks given
    3. group 0 followers
    1. forum 16 posts
    2. attach_file 1 attachments




 
Search this Thread

Global NameSpace error when saving file

  #1 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,348

While attempting to fill a request in the "Want Your Indicator Created Free" forum



I needed to save the SlingShot indicator under a different name and received a Global Namespace error ( See attached pic). I am not familiar with this. Can someone point me in the right direction?

Thanks!

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Attached Thumbnails
Click image for larger version

Name:	SS_Error.png
Views:	237
Size:	67.3 KB
ID:	12791  
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Request for MACD with option to use different MAs for fa …
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
58 thanks
Battlestations: Show us your trading desks!
55 thanks
NexusFi site changelog and issues/problem reporting
48 thanks
What percentage per day is possible? [Poll]
31 thanks
GFIs1 1 DAX trade per day journal
29 thanks

  #3 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927


Moin man,
try it with commenting out line 31 (this GUI.Design ....blabla-line)

i think that should work.

max-td
Reply With Quote
  #4 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,348


max-td View Post
Moin man,
try it with commenting out line 31 (this GUI.Design ....blabla-line)

i think that should work.

Thanks for the input. It will save the file but you get the error when you try to compile it. The error has something to do with the global variables;

publicenum maType
{
SMA,
EMA,
HMA,
TMA,
WMA,
VWMA
};

If you comment them out it will compile . But will that affect the indicator?

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Started this thread Reply With Quote
  #5 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

sorry - no idea with these enum-stuff - i never worked with that.

but i think they are needed in Slingshot cause they give you the MA-choise-function as far as i know.

i also often had trouble with this Slingshot - something in there is a bit tricky - but never found out what it is.

max-td
Reply With Quote
  #6 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,322 since Jun 2009
Thanks Given: 33,143
Thanks Received: 101,477


ThatManFromTexas View Post
While attempting to fill a request in the "Want Your Indicator Created Free" forum



I needed to save the SlingShot indicator under a different name and received a Global Namespace error ( See attached pic). I am not familiar with this. Can someone point me in the right direction?

Thanks!

What is the full error? Your screen shot doesn't show it.

But most likely, it's the maType enum, you probably have another indicator with a similar enum name. Change it to something unique in every instance of the file (Find/Replace, "maType" -> "ss_maType").

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #7 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,322 since Jun 2009
Thanks Given: 33,143
Thanks Received: 101,477


ThatManFromTexas View Post
Thanks for the input. It will save the file but you get the error when you try to compile it. The error has something to do with the global variables;

publicenum maType
{
SMA,
EMA,
HMA,
TMA,
WMA,
VWMA
};

If you comment them out it will compile . But will that affect the indicator?

Yes, it won't work for other people.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #8 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

so it is not possible to have 2 different indicators that uses the same enum - maType-file ?
for each new SlingShot-variation - file i have to make a new renamed maType file ?
is this the reason ?

max-td
Reply With Quote
  #9 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,322 since Jun 2009
Thanks Given: 33,143
Thanks Received: 101,477


max-td View Post
so it is not possible to have 2 different indicators that uses the same enum - maType-file ?
for each new SlingShot-variation - file i have to make a new renamed maType file ?
is this the reason ?

Correct, for public enum they should be uniquely named. I always named it to match the base name of the indicator, so that if someone saves the indicator as a new name, NT automatically did a find-replace "base name" -> "new base name", which included the public enum.

Example, indicator named "slingshot", so public enum named "slingshot_matype". If someone later saves the indicator as "slingshotv2", the public enum gets automatically renamed to "slingshotv2_matype" by the NT editor.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
The following 3 users say Thank You to Big Mike for this post:
  #10 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927


great infos mike ! thats the trick here i think!

do you have a snipet for this enum auto-rename-routine ?
or you know in wich indi you did this like this - that we can have a look at ?

max-td
Reply With Quote





Last Updated on May 5, 2010


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts