NT indicator script compiling issuses / error while importing - NinjaTrader Programming | futures io social day trading
futures io futures trading


NT indicator script compiling issuses / error while importing
Updated: Views / Replies:2,829 / 8
Created: by skyfly Attachments:0

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
 
Thread Tools Search this Thread
 

NT indicator script compiling issuses / error while importing

  #1 (permalink)
Membership Temporarily Revoked
Texas
 
Futures Experience: Intermediate
Platform: Ninja Trader
Favorite Futures: TF
 
Posts: 113 since Jun 2010
Thanks: 8 given, 51 received

NT indicator script compiling issuses / error while importing

I downloaded the ZigZagUTC_TL_BarCount_Fibs.zip which can be found here at the top of the page

Downloads - NinjaTrader 7 Indicators - Big Mike's Day Trading Forum

Now I followed these directions on this page that some was kinda enough to give to me again, since I know you guys get this question a lot. That can be found here again at the top of the page.

https://futures.io/ninjatrader-programming/967-importing-cs-file-indicator-strategy.html

Now once I have copy and pasted and I hit the compile button I get this error message " The following Ninja Script file [s] have programming errors and must be resolved before compiling.

First in the download their are three seperate cs files. Do I place these all on the same sheet one after the other. Or do I open different sheets, and compile them seperately.

And if I do compile them seperately, on the first cs file, I'm receving the above error message.

Also I'm unsure of the name I'm supposed to copy. I think that it is in line 2, but the directions say it is "mostly" found in line 20 to 30. Is the copying of the name such a big deal? I mean would that make the code not work right? And if it is not such a big deal then the only problem I'm having is the above "error message" In detail is says

"Indicator\saedfhjasdhf.cs........The namespace "NinjaTrade.Indicator' already c....CS101 click for info...22.....18
"Indicator\ZigZagagnew.cs.......The namespace "NinjaTrader.Indicator'already c....CS101 click for info...52.....18

So their ya go, I hope someone can help, cause I have no clue

Thanks for any help, it's appreciated.

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)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,220 since Jun 2009
Thanks: 628 given, 6,318 received
Forum Reputation: Legendary


this is a zip file, you are not supposed to unzip it. copy it down then file, utility, import ninjascript, then point to the zip file to import it.

Reply With Quote
 
  #4 (permalink)
Membership Temporarily Revoked
Texas
 
Futures Experience: Intermediate
Platform: Ninja Trader
Favorite Futures: TF
 
Posts: 113 since Jun 2010
Thanks: 8 given, 51 received

Oooo...ok. Thank you for the help!

Reply With Quote
 
  #5 (permalink)
Membership Temporarily Revoked
Texas
 
Futures Experience: Intermediate
Platform: Ninja Trader
Favorite Futures: TF
 
Posts: 113 since Jun 2010
Thanks: 8 given, 51 received

yah that did not fix it, I still get the same error messages

Reply With Quote
 
  #6 (permalink)
Trading for Fun
College Point, NY (Queens)
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG
Favorite Futures: YM
 
Posts: 63 since Nov 2009
Thanks: 5 given, 20 received

This is an error generated by the C# compiler.

CS0101 - "A namespace has duplicate identifiers. Rename or delete one of the duplicate identifiers.".

Can you show the complete error message ? From your clip, I can't tell which identifier is already defined.

Reply With Quote
 
  #7 (permalink)
Membership Temporarily Revoked
Texas
 
Futures Experience: Intermediate
Platform: Ninja Trader
Favorite Futures: TF
 
Posts: 113 since Jun 2010
Thanks: 8 given, 51 received

Ok through talking with someone at NJ, through email, I figured out how to figure out where the "error" is. So here is a copya and psate of what the program is high lighting when I double click on the error message. The part that I'm being told is the "error message" is in red and underlined.
And this is just a snipit of the indicator script, just to show where the "error message" is.
"
// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
///<summary>
/// ZigZag indicator from the Ultimate Trading Guide by Hill, Pruitt, and Hill. A swing high occurs when price takes out the low of the highest bar. A swing low occurs when price takes out the high of the lowest bar. Span setting determines how many bars to look back for highest highs and lowest lows; i.e. span=5 on daily bars find weekly swings.
/// add HH/LL trend lines and rays 11/14/09 -Cory
/// add fib suite 11/25/09 - cory
///</summary>
[Description("ZigZag indicator from the Ultimate Trading Guide by Hill, Pruitt, and Hill. A swing high occurs when price takes out the low of the highest bar. A swing low occurs when price takes out the high of the lowest bar. Span setting determines how many bars to look back for highest highs and lowest lows; i.e. span=5 on daily bars find weekly swings.")]
publicclassZigZagUTC_TL_BarCount_Fibs_v5_1 : Indicator
{
#region Variables
// Wizard generated variables
privateint span = 2; // Default setting for Span


Last edited by skyfly; July 13th, 2010 at 10:20 PM. Reason: more information about the problem
Reply With Quote
 
  #8 (permalink)
Trading for Fun
College Point, NY (Queens)
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG
Favorite Futures: YM
 
Posts: 63 since Nov 2009
Thanks: 5 given, 20 received

The red above is not an error message, it's a class name. But I digress. I downloaded the zip file and it compiled fine (NT 7 beta 18).

Here's what I think happened to you ... you most likely created another .cs file containing the class name above (which you highlighted in red), by following the import directions in your first post. Can you check something out ? Is there another file in the indicators directory
with this filename ... ZigZagUTC_TL_BarCount_Fibs.cs ?

Which got there via the unzip ? If so, and the file you created is also there, this is the problem. In this case, you should probably move the file you created to another directory
(maybe a subfolder under indicators ... myfiles ?), and then recompile (you just need to open one file
... say ZigZagUTC_TL_BarCount_Fibs.cs and hit F5). The NinjaScript compiler will compile all the source files in the indicators directory into the dll.

If this works, the takeaway from this is ... for the zip files, don't create a new file (unless you need to modify the indicator), just unzip the source into the indicators dir (assuming it's an indicator and not a strategy) and compile. Voila !

BTW, cool indicator !


Last edited by kandlekid; July 14th, 2010 at 02:15 AM.
Reply With Quote
 
  #9 (permalink)
Trading for Fun
College Point, NY (Queens)
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG
Favorite Futures: YM
 
Posts: 63 since Nov 2009
Thanks: 5 given, 20 received

skyfly,

So did this work ?

Reply With Quote

Reply



futures io > > > > > NT indicator script compiling issuses / error while importing

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
Script to download nt replay data vegasfoster NinjaTrader Programming 5 October 2nd, 2012 02:24 AM
Error compiling indicators rltheg NinjaTrader Programming 13 March 29th, 2011 05:10 PM
How do you clear a NT script error from bad indi, cannot compile until addressed. dreambig The Elite Circle 6 July 6th, 2010 09:59 AM
Programming errors while importing Ninja script emini_Holy_Grail NinjaTrader Programming 8 May 20th, 2010 04:09 AM
Help Needed: Error Msg When Importing Files CTGUY NinjaTrader Programming 6 April 3rd, 2010 06:41 PM


All times are GMT -4. The time now is 02:37 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-17 in 0.15 seconds with 19 queries on phoenix via your IP 54.82.56.95