Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Global NameSpace error when saving file
Updated May 5, 2010
Global NameSpace error when saving file
May 5th, 2010, 04:58 AM
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,444 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,608
max-td
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 ?
No, but that's it, just name it the same as the Base name. The code I did was for people who hired me in the past.
Mike
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
May 5th, 2010, 05:01 AM
Frankfurt
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927
ok thanks - so just manualy renaming the used ma_file too - should be no problem.
May 5th, 2010, 05:10 AM
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,444 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,608
max-td
ok thanks - so just manualy renaming the used ma_file too - should be no problem.
I avoid coding with these extra files, they are a pain. Just embed the public enum into the original base indicator file itself, and ditch the extra file.
Mike
May 5th, 2010, 10:29 AM
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,353
Big Mike
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
If I change this:
public enum maType
{
SMA,
EMA,
};
To This:
public enum TMFT_maType
{
SMA,
EMA,
};
Do I need to change this also:
case maType.EMA:
f = EMA(Input,FastAverage)[ 0 ];
break ;
case maType.SMA :
f = SMA(Input,FastAverage)[ 0 ];
break ;
Thank you for your time and consideration.
I'm just a simple man trading a simple plan.
My daddy always said, "Every day above ground is a good day!"
May 5th, 2010, 10:32 AM
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,444 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,608
Yes:
should become
There is also going to be a section down in #Properties for the input parameter that will need to be changed as well.
Mike
May 5th, 2010, 10:33 AM
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,444 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,608
BTW,
To prevent spacing issues and word wrapping when posting code on the forum, you should paste Code wrapped inside the [code ] wrapper (the # sign on the toolbar above is code), that way the spacing and stuff is preserved.
Mike
May 5th, 2010, 01:51 PM
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,353
Big Mike
Yes:
should become
There is also going to be a section down in #Properties for the input parameter that will need to be changed as well.
Mike
That worked!
Thanks!
I'm just a simple man trading a simple plan.
My daddy always said, "Every day above ground is a good day!"
Last Updated on May 5, 2010