View Full Version : Indicator Conflicts
08-02-2007, 07:33 AM
Attacking my problem from another direction, I am trying to modify the indicator ConstantLines.
I copied the standard indicator, renamed it and edited to find and replace all instances of ConstantLines to another name. Then saved it.
However, when I try to compile, I get an error that says there is already another version of ConstantLines - referring to a line which does not say that.
I also tried simply creating a new indicator from scratch with four variable and four plots, then inserted the ConstantLines computation logic exactly -- got the same message.
In between, I tried closing and reopening NinjaTrader several times, no luck.
I can't figure out the conflict.
08-02-2007, 07:49 AM
1) It's not recommended to manipulate NinjaScript files outside the scope of NinjaTrader, since this could screw up your installation (as you experienced).
We are unable to provide support for this.
2) Please remove your erroneous copy by Tools->Edit NinjaScript->Indicator, select the indicator and press delete.
3) Next open the ConstantLines indicator in the NS editor, right click->Save as. This should do the job.
08-02-2007, 09:27 AM
I looked for the "save as" command under the "save" button and didn't think to right click. Would have saved me much time.
Now I am really screwed up. Could not delete the new indicators because says couldn't delete while an indicator had an error.
So I removed NinjaTrader through the Control Panel, cleared my brower cache, and re-installed. No luck. When I try to edit ANY indicator, it won't compile with the same message: The namespace 'NinjaTrader Indicator' already contains a definition for 'ConstantLines'. File is @ConstantLines.cs.
There is no indicator in the c:\Documents\....\NinjaTrade 6\bin\Custom\Indicator folder that was any copy of the ConstantLines indicator.
08-02-2007, 09:31 AM
Go to the following folder and manually delete the custom files that are causing the error. Then you should be able to compile.
My Documents\NinjaTrader 6\bin\Custom\Indicator
08-02-2007, 12:10 PM
I couldn't figure out what was going on. There were no offending indicators in My Documents\NinjaTrader 6\bin\Custom\Indicator
BUT... there was an additional copy of ConstantLines in the folder one up - My Documents\NinjaTrader 6\bin\Custom. I deleted that and the skies were blue.
Thanks for all of your help. I've gotten some fairly complex and very important (to me) indicators going and every stop I've encountered along the way, you have helped me through. It's great support.
By the way, I was able to save ConstantLines to a new name and use it as a template to add some additional logic which is working great. That problem solved.