Global NameSpace error when saving file - NinjaTrader Programming | futures io social day trading
futures io futures trading


Global NameSpace error when saving file
Updated: Views / Replies:2,359 / 16
Created: by ThatManFromTexas Attachments:1

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 1  
 
Thread Tools Search this Thread
 

Global NameSpace error when saving file

  #1 (permalink)
Elite Member
Houston,Tx
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Mirus Futures/Zen-Fire
Favorite Futures: TF
 
ThatManFromTexas's Avatar
 
Posts: 2,302 since Feb 2010
Thanks: 1,208 given, 4,293 received

Global NameSpace error when saving file

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

https://futures.io/ninjatrader-programming/1261-want-your-indicator-created-free-35.html

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
Global NameSpace error when saving file-ss_error.png  
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 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
 
  #4 (permalink)
Elite Member
Houston,Tx
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Mirus Futures/Zen-Fire
Favorite Futures: TF
 
ThatManFromTexas's Avatar
 
Posts: 2,302 since Feb 2010
Thanks: 1,208 given, 4,293 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
 
  #5 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 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
 
  #6 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,357 given, 83,237 received


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

https://futures.io/ninjatrader-programming/1261-want-your-indicator-created-free-35.html

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

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #7 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,357 given, 83,237 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

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #8 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 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
 
  #9 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,357 given, 83,237 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

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following 3 users say Thank You to Big Mike for this post:
 
  #10 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 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

Reply



futures io > > > > > Global NameSpace error when saving file

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strats not appearing in Strategy namespace kandlekid NinjaTrader Programming 5 August 4th, 2011 02:12 PM
Docs for the entire NinjaTrader namespace? maumau NinjaTrader 1 May 22nd, 2011 06:27 AM
Error: Type or namespace does not exist. ThatManFromTexas NinjaTrader Programming 2 May 17th, 2011 06:02 PM
When I try to input a zip file I get this import error .... skyfly NinjaTrader Programming 12 July 22nd, 2010 07:34 AM
How to remove error from ninjatrader archive file Bash NinjaTrader 4 March 15th, 2010 02:54 PM


All times are GMT -4. The time now is 10:56 AM.

Copyright © 2017 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
Page generated 2017-12-18 in 0.13 seconds with 20 queries on phoenix via your IP 54.226.113.250