Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Conflict when importing.

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

    Indicator Conflict when importing.

    Hi, I'm trying to import a 3rd party indicator and get the following error message. Is there any way for me to know where the conflict is so I can fix it?

    Click image for larger version

Name:	image.png
Views:	143
Size:	7.5 KB
ID:	1324926

    Thanks, Mitch

    #2
    Hello mmenigma,

    To try and figure out which script you already have imported that is using a class name or property name also used by this new script you would have to manually add the files to the filesystem and look at the errors that appear in the NinjaScript Editor.
    This may state which assembly or open source script is already using the duplicate class or property name.

    If you open the .zip file and copy the .dll and .cs file (if one exists) into the Documents\NinjaTrader 8\bin\Custom folder, and then compile any script in the NinjaScript Editor this will show compile errors about the the issue.

    It may be easier to just remove any scripts that have a similar name or are from the same 3rd party vendor.

    To remove a third party assembly package:To remove open source indicators:To remove an open source strategy:
    • Click New -> NinjaScript Editor -> select to expand the Strategies folder
    • Right-click the strategy by name -> select Remove
    To Exclude an open source script from compilation:
    When exporting, it's suggested to export dependent classes in a separate file, and always ensure the filename, class name, Name property set in State.SetDefaults, and assembly name all match.

    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi,

      Thanks for replying with some instructions.

      When I try and manually compile the indicator, these are errors. Can you see anything on lines 218 or 222 that look wrong or what other indicator it is in conflict with?

      Click image for larger version

Name:	image.png
Views:	110
Size:	65.2 KB
ID:	1324989​​

      Comment


        #4
        Hello mmenigma,

        This script has invalid code.

        public int CBValue { get; set; } = 0;

        You cannot add an assignment after a getter and setting like this.

        Remove the '= 0;' from lines 218, 222, and any other lines with invalid code like this.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hi,

          I'm not so sure of that and I appreciate your guidance. However, I know of numerous people from the discord group I'm in that have installed this indicator without any issues. Could it be something else?

          Comment


            #6
            Hello mmenigma,

            I'm not aware of this being valid code.
            Further, the error messages are specifically stating this is wrong.

            Unfortunately, based on the error message I would not further guidance on something else to check.

            I would recommend you give it a try and see if the script compiles, which would let you know if that was an issue.

            This thread will remain open for any other community members that would like to provide guidance.


            What is that code supposed to be doing?

            If this is supposed to set a default value, the proper place to set a default value is in OnStateChange() where State == State.SetDefaults.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Thank you for your time Chelsea, The indicator places 3 CCI indicators into one. It 3 CCI oscillators in one panel and each oscillator has its own period set within the indicator settings.​ It would be nice to know where the conflict exists with my indicators as, like I said, I know of numerous other people that have this indicator loaded on their systems without the need to alter the code as you suggest. So it must be something in my system, but I can't find it.

              Click image for larger version

Name:	image.png
Views:	119
Size:	229.0 KB
ID:	1325015

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              598 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              343 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              103 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              557 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              557 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X