Global NameSpace error when saving file - futures io
futures io futures trading



Global NameSpace error when saving file


Discussion in NinjaTrader

Updated by ThatManFromTexas
      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 3,682 views
    2. thumb_up 7 thanks given
    3. group 0 followers
    1. forum 16 replies
    2. attach_file 1 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Global NameSpace error when saving file

(login for full post details)
  #1 (permalink)
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
 
ThatManFromTexas's Avatar
 
Posts: 2,302 since Feb 2010
Thanks: 1,206 given, 4,329 received

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:	49
Size:	67.3 KB
ID:	12791  
Reply With Quote

Can you help answer these questions
from other members on futures io?
Heat Map on Trendspider
Platforms and Indicators
Move indicator on Chart
NinjaTrader
Anyone with Overcharts license/experience?
Platforms and Indicators
Time Specific Volume Bars for Market Hours? Thinkorswim
ThinkOrSwim
Traderoomplus
Trading Reviews and Vendors
 
 
(login for full post details)
  #3 (permalink)
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 923 received


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

i think that should work.

max-td
Reply With Quote
 
(login for full post details)
  #4 (permalink)
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
 
ThatManFromTexas's Avatar
 
Posts: 2,302 since Feb 2010
Thanks: 1,206 given, 4,329 received


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!"
Reply With Quote
 
(login for full post details)
  #5 (permalink)
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 923 received

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
 
(login for full post details)
  #6 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,093 since Jun 2009
Thanks: 31,718 given, 95,362 received


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

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #7 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,093 since Jun 2009
Thanks: 31,718 given, 95,362 received


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

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #8 (permalink)
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 923 received

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
 
(login for full post details)
  #9 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,093 since Jun 2009
Thanks: 31,718 given, 95,362 received


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

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
The following 3 users say Thank You to Big Mike for this post:
 
(login for full post details)
  #10 (permalink)
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 923 received


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


futures io Trading Community Platforms and Indicators NinjaTrader > Global NameSpace error when saving file


May 5, 2010


Upcoming Webinars and Events
 

Order Flow Tools w/MotiveWave & Zytrade Brokerage

Oct 22
 

Technical Analysis Workshop w/NinjaTrader

Oct 27
 

Bookmap

Oct TBD
 

SharkIndicators

Oct TBD
 

Carley Garner

Oct TBD
 

GruttePier

Oct TBD
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts