NexusFi: Find Your Edge


Home Menu

 





Error when trying to install indicator


Discussion in NinjaTrader

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




 
Search this Thread
  #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?
Weekend Update: First Qatari LNG Transit Attempted -- IR …
Traders Hideout
Prediction Markets Expiry Day: Trump Eyes War Exit, $230 …
Prediction Markets & Event Contracts
Beijing Summit Closes: Xi Pledges Hormuz Help -- $1.14B …
Prediction Markets & Event Contracts
OneChronos Launches First Combinatorial Auction FX Venue …
Currencies
CME Cuts Precious Metals Margins Up to 21% Starting Toda …
Commodities
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
23 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #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 X 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


© 2026 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 - Downloads - Top
no new posts