Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator compiles but not on list to add to chart

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

    Indicator compiles but not on list to add to chart

    I have an indicator that shows up on the editor, compiles without error and has the correct name in the name spaces. It's not showing up as something I can add to a chart though. Please help.

    #2
    Hello ThatMikey,

    Thank you for posting.

    Is this an indicator you have created or an indicator you purchased from a 3rd party vendor?

    Thanks in advance.
    Christopher J.NinjaTrader Customer Service

    Comment


      #3
      Hi Christopher,
      I made it.

      Comment


        #4
        Hello ThatMikey,

        I've moved this post to the NinjaTrader Desktop > Indicator Development​ section of the forums as this is pertaining to a custom developed indicator.

        What is the fully qualified namespace the indicator class is in?

        May I confirm the class inherits from the Indicator class only and no other classes?

        Are there errors appearing on the Log tab of the Control Center when opening the Indicators window from a chart?
        If so, what is the full error message?

        Does the Name property set in State.SetDefaults match the classname and the filename?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          NinjaTrader.NinjaScript.Indicators

          Only inherits from the indicator class

          There are no errors in the log.

          Names all match.

          Comment


            #6
            Hello ThatMikey,

            May I test the script?

            To export a NinjaTrader 8 NinjaScript so this can be shared and imported by the recipient do the following:
            1. Click Tools -> Export -> NinjaScript Add-on...
            2. Click the 'add' link -> check the box(es) for the script(s) and reference(s) you want to include
            3. Click the 'Export' button
            4. Enter the script name in the value for 'File name:'
            5. Choose a save location -> click Save
            6. Click OK to clear the export location message
            By default your exported file will be in the following location:
            • (My) Documents/NinjaTrader 8/bin/Custom/ExportNinjaScript/<export_file_name.zip>
            Below is a link to the help guide on Exporting NinjaScripts.


            Once exported, please attach the file as an attachment to your reply.​
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              As requested.
              Attached Files

              Comment


                #8
                Hello ThatMikey,

                I think you have provided the wrong script.

                The script you provided declares 'public class BarAnalyzer : Indicator' on line 25 outside of any namespace. As this is not in the NinjaTrader.NinjaScript.Indicators namespace it isn't going to load as an indicator.

                Always create scripts using the NinjaScript Editor and do not modify the namespace or using statements to ensure the structure of the script is using the correct default structure.

                You've stated in post # 5 that the script causing the issue is declared in the NinjaTrader.NinjaScript.Indicators namespace.

                May I have the script you are actually testing that has the class declared in the NinjaTrader.NinjaScript.Indicators namespace?
                Chelsea B.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                596 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
                556 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                554 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X