Errors when compiling indicators (using cjbooth's system) - NinjaTrader | futures io social day trading
futures io futures trading


Errors when compiling indicators (using cjbooth's system)
Updated: Views / Replies:3,982 / 32
Created: by gloricle Attachments:12

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

Errors when compiling indicators (using cjbooth's system)

  #1 (permalink)
Elite Member
Sydney, Australia
 
Futures Experience: Beginner
Platform: Metatrader 4
Broker/Data: FXPro, IC Markets
Favorite Futures: Forex, DAX, WTI, SPI
 
Posts: 28 since Feb 2011
Thanks: 38 given, 31 received

Errors when compiling indicators (using cjbooth's system)

Hi all,

I get the following error: "CS0101 - click here for more info".

In the description it says that there is "already" a definition for "....."

See the attached picture.

Please advise me how to fix this problem, and/or explain what is causing this?

Attached Thumbnails
Errors when compiling indicators (using cjbooth's system)-compile-errors-nt7.jpg  
Reply With Quote
 
  #2 (permalink)
Elite Member
Dartmouth NS
 
Futures Experience: Intermediate
Platform: MC, MC.Net, NT, TWS
Broker/Data: IB / IQFeed / Kids
Favorite Futures: Forex, stocks
 
bnichols's Avatar
 
Posts: 638 since Feb 2010
Thanks: 64 given, 459 received

This is the kind of NT error that wore me down when I used it. Guessing either the indicator (or attached DLL) redefines the stock indicators referred to (e.g., in a helper file perhaps). Can you post what you imported or cut/paste into the indicator?

Reply With Quote
 
  #3 (permalink)
Elite Member
Sydney, Australia
 
Futures Experience: Beginner
Platform: Metatrader 4
Broker/Data: FXPro, IC Markets
Favorite Futures: Forex, DAX, WTI, SPI
 
Posts: 28 since Feb 2011
Thanks: 38 given, 31 received


I didn't import or cut/paste anything. I only double-clicked on it, and clicked compile, and it came up with the errors.

*scratches head*

Reply With Quote
 
  #4 (permalink)
Elite Member
Dartmouth NS
 
Futures Experience: Intermediate
Platform: MC, MC.Net, NT, TWS
Broker/Data: IB / IQFeed / Kids
Favorite Futures: Forex, stocks
 
bnichols's Avatar
 
Posts: 638 since Feb 2010
Thanks: 64 given, 459 received

Ah so. Assuming the code is free and in the public domain (since otherwise you would be petitioning the provider rather than futures.io (formerly BMT) ) can you post a link to the code?

Reply With Quote
 
  #5 (permalink)
Elite Member
Sydney, Australia
 
Futures Experience: Beginner
Platform: Metatrader 4
Broker/Data: FXPro, IC Markets
Favorite Futures: Forex, DAX, WTI, SPI
 
Posts: 28 since Feb 2011
Thanks: 38 given, 31 received

Code can be downloaded from here: https://futures.io/forex-currency-trading/10920-my-6e-euro-eur-usd-futures-contract-trading-strategy-3.html

It's a bit past halfway down the page, post #29.

Thanks.

Reply With Quote
 
  #6 (permalink)
Elite Member
Dartmouth NS
 
Futures Experience: Intermediate
Platform: MC, MC.Net, NT, TWS
Broker/Data: IB / IQFeed / Kids
Favorite Futures: Forex, stocks
 
bnichols's Avatar
 
Posts: 638 since Feb 2010
Thanks: 64 given, 459 received

Alrighty...I downloaded all 4 indicators in the post and imported (hence compiled them) into NT with no issues (screenshot with all 4 indicators installed below). I'm familiar with all of them and already had a newer version of SuperTrend installed, which was overwritten for the purpose of this experiment.

This is where the fun begins. Since the problem is not with the indicators it is either with your NT installation (which might have become corrupt in one way or another for one reason or another) or with the environment in which NT is running.

I've run into the same error often myself after making changes to NT and IIRC was able to resolve the problem by reversing recent changes (deleting indicators perhaps, in this case) until I got the right one, then retrying to install & looking for clues or patterns in the way it fails, if necessary. It's been a while but sometimes the actual cause of the error is (or may seem) unrelated to the indicators themselves, but to reiterate usually related to any recent change to the system or to NT (including changes made by gremlins it seems to me).

Failing that, you might try what I used to do as a last resort after a suitable amount of hair tearing; namely, blow away the NT installation and reinstall from scratch.

Hopefully someone more knowledgeable (and less jaded) about NT will chime in Good luck!

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Last edited by bnichols; November 23rd, 2012 at 01:05 AM.
Reply With Quote
 
  #7 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,246 given, 2,635 received

It is very simple

The problem is obvious and is not addressed in the previous responses, which you would do well to disregard.

Those errors PROBABLY mean that you have more than one cs file for each of those indicators EMA, LinReg, ATR, etc.

If you look in your Indicator

(..MyDocuments\Ninjatrader 7\bin\Custom\Indicator)

folder you will probably find two files for EMA, two files for LinReg, two files for ATR, etc.

They won't all have the same name. For example you might find one called @EMA and another one called EMA.

In any case like that where you have two cs files with the same name except that one has a leading ampersand @, delete the one without the leading ampersand. The error probably happened because somebody put misnamed files for system indicators, missing the ampersand, into an installation package that you imported.

Technically the problem is that for the EMA example, both files EMA.cs and @EMA.cs will be trying to implement a CLASS called EMA. However, every CLASS implemented within the Indicator NAMESPACE must have a unique name.

Also, make sure you do not have any copies of those EMA or @EMA, ATR or @ATR, etc .cs files in the ...\Ninjatrader 7\bin\Custom folder.


Last edited by Zondor; November 23rd, 2012 at 04:24 AM.
Reply With Quote
The following user says Thank You to Zondor for this post:
 
  #8 (permalink)
Elite Member
Sydney, Australia
 
Futures Experience: Beginner
Platform: Metatrader 4
Broker/Data: FXPro, IC Markets
Favorite Futures: Forex, DAX, WTI, SPI
 
Posts: 28 since Feb 2011
Thanks: 38 given, 31 received

OK, so I've deleted all the indicators in the custom/indicator folder and have only the ones for the cjbooth system in there.

I get some different errors this time, see attached picture.

Attached Thumbnails
Errors when compiling indicators (using cjbooth's system)-compile-errors-no.-2.jpg  
Reply With Quote
 
  #9 (permalink)
Elite Member
Athens - Greece
 
Futures Experience: Intermediate
Platform: Metastock
 
Posts: 75 since Jul 2010
Thanks: 202 given, 32 received

indicators


bnichols View Post
Alrighty...I downloaded all 4 indicators in the post and imported (hence compiled them) into NT with no issues (screenshot with all 4 indicators installed below). I'm familiar with all of them and already had a newer version of SuperTrend installed, which was overwritten for the purpose of this experiment.

This is where the fun begins. Since the problem is not with the indicators it is either with your NT installation (which might have become corrupt in one way or another for one reason or another) or with the environment in which NT is running.

I've run into the same error often myself after making changes to NT and IIRC was able to resolve the problem by reversing recent changes (deleting indicators perhaps, in this case) until I got the right one, then retrying to install & looking for clues or patterns in the way it fails, if necessary. It's been a while but sometimes the actual cause of the error is (or may seem) unrelated to the indicators themselves, but to reiterate usually related to any recent change to the system or to NT (including changes made by gremlins it seems to me).

Failing that, you might try what I used to do as a last resort after a suitable amount of hair tearing; namely, blow away the NT installation and reinstall from scratch.

Hopefully someone more knowledgeable (and less jaded) about NT will chime in Good luck!

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Dear bnichols, I would like to ask you the favor to address me where to find the indicators you are using in your chart .... with prefix ... TD ... TDMACD , TDStochastics , TDSMA ....
Thank you in advance for your cooperation.

Best Regards
Dimitri

Reply With Quote
 
  #10 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,246 given, 2,635 received



Quoting 
OK, so I've deleted all the indicators in the custom/indicator folder and have only the ones for the cjbooth system in there.

I get some different errors this time, see attached picture.


Since your screen shot does not show the complete error messages and I lack psychic ability, I do not know what those errors are.

You were only supposed to delete DUPLICATE files that did not belong in that folder. If you deleted all of the files in the folder, you will now have a big problem.

If that is the case, probably best for you to reinstall Ninjatrader and not use any custom indicators at all.


Last edited by Zondor; November 23rd, 2012 at 09:17 AM.
Reply With Quote

Reply



futures io > > > > Errors when compiling indicators (using cjbooth's system)

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
Trade Size Analyzer compiling error sudhirc The Elite Circle 1 March 16th, 2012 01:26 PM
Does anyone know of the Winning Edge System indicators? (www.winningedgesystem.com) Dillons Grandpa Trading Reviews and Vendors 5 August 19th, 2011 05:32 PM
Error compiling indicators rltheg NinjaTrader Programming 13 March 29th, 2011 05:10 PM
NT indicator script compiling issuses / error while importing skyfly NinjaTrader Programming 8 July 20th, 2010 01:56 AM
C# Math.net and compiling tinkerz NinjaTrader Programming 1 April 6th, 2010 06:33 PM


All times are GMT -4. The time now is 07:12 PM.

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-14 in 0.16 seconds with 20 queries on phoenix via your IP 54.226.227.175