Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Indicator Conflicts

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Indicator Conflicts

    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.

    #2
    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.

    Comment


      #3
      system won't delete

      Thank you.

      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.

      What now?

      Comment


        #4
        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
        RayNinjaTrader Customer Service

        Comment


          #5
          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.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by bortz, 11-06-2023, 08:04 AM
          47 responses
          1,610 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          9 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          19 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          6 views
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          21 views
          0 likes
          Last Post Javierw.ok  
          Working...
          X