NexusFi: Find Your Edge


Home Menu

 





Error when trying to install indicator


Discussion in NinjaTrader

Updated
    1. trending_up 3,497 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

Error when trying to install indicator

  #1 (permalink)
 DennisA 
Andover CT USA
 
Experience: Advanced
Platform: NT7
Trading: YM
Posts: 16 since Aug 2010
Thanks Given: 2
Thanks Received: 3

I'm fairly new to programming indicators, so this is probably a basic question. I'm trying to load The "Volume Patterns" indicator in NT7. For some reason the software won't let me import indicators the easy way and says there are files that have programming errors (and I should correct them before I can import).

So I extracted and copied the .cs files to the /bin/Custom and /bin.Custom/Indicators folders (not sure which to use) I was told I need to activate (install) the indicator by bringing it up in the editor and F5 compiling it. When I hit compile I get an "Error Generating Indicator" message "The namespace 'Ninjatrader.Indicator' already contains a definition for 'Volume Patterns' " I looked at the Ninjascript but don't see any type of duplicate definition.

As I said I'm new to this, and its probably simple, but I can use some suggestions.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
Cheap historycal L1 data for stocks
Stocks and ETFs
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
What broker to use for trading palladium futures
Commodities
Trade idea based off three indicators.
Traders Hideout
 
  #3 (permalink)
 MooreTech 
Orlando, Florida
 
Experience: Advanced
Platform: NinjaTrader, TradeStation, MultiCharts, eSignal, MetaTrader
Trading: ES
Posts: 57 since Aug 2010
Thanks Given: 6
Thanks Received: 73


It is telling you that you already have an indicator named VolumePatterns. I believe this should help you out.

Find this line of code...

 
Code
                            
public class VolumePatterns Indicator 

Change to....

 
Code
                            
public class NewVolumePatterns Indicator 

Press F5 to compile.



DennisA View Post
I'm fairly new to programming indicators, so this is probably a basic question. I'm trying to load The "Volume Patterns" indicator in NT7. For some reason the software won't let me import indicators the easy way and says there are files that have programming errors (and I should correct them before I can import).

So I extracted and copied the .cs files to the /bin/Custom and /bin.Custom/Indicators folders (not sure which to use) I was told I need to activate (install) the indicator by bringing it up in the editor and F5 compiling it. When I hit compile I get an "Error Generating Indicator" message "The namespace 'Ninjatrader.Indicator' already contains a definition for 'Volume Patterns' " I looked at the Ninjascript but don't see any type of duplicate definition.

As I said I'm new to this, and its probably simple, but I can use some suggestions.


Follow me on Twitter Reply With Quote
Thanked by:
  #4 (permalink)
 DennisA 
Andover CT USA
 
Experience: Advanced
Platform: NT7
Trading: YM
Posts: 16 since Aug 2010
Thanks Given: 2
Thanks Received: 3

Thanks MooreTech. There didn't seem to be another indicator with the same name, but changing the code to a new name fixed the problem.

Dennis

Started this thread Reply With Quote




Last Updated on August 18, 2010


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts