Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator export/import broken

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

    #31
    Thanks. Works here.

    Christian, our export specialist, will follow up tomorrow morning.

    Also: Please make sure you are on latest 6.5.1000.4.

    Comment


      #32
      Sorry, we're still failing to the reproduce the issue you're experiencing.

      I suggest trying a fresh start:
      - create a backup of your settings (if needed, File->Utilities->Backup)
      - uninstall NT
      - manually remove folder <my documents>/NinjaTrader6.5/bin/Custom. Note: this will remove all your custom NinjaScript files
      - reinstall NT
      - create a new copy of e.g. the standard SMA indicator by pulling Tools->Edit NinjaScript->Indicator->Right click->Copy and provide a new name
      - try to export this freshly created copy

      Comment


        #33
        I also am getting error when I try to export an indicator I previously had been able to export. Attached is error message:
        Attached Files

        Comment


          #34
          winja, did you check into this tip from the helpguide? -> http://www.ninjatrader-support.com/H...tProblems.html

          Comment


            #35
            Thanks Bertrand,

            I get this error message CS0246;The type or namespace name 'AverageType' could not be found(are you missing a using directive or an assembly reference?)

            Following the help tip when I went to File > Utilities > Export NinjaScript in the Export NinjaScript Archive File window when I searched for the SMA indicator and other moving averages(EMA, HMA, and WMA) that I used they were not located in the left hand pane so I was not able to add them to the archive File. Is there another way I can fix this problem?

            Comment


              #36
              winja, please make sure you select 'System indicators' under Export objects to see those listed in the left pane (they will start with @, so @SMA, @EMA ...).

              Comment


                #37
                Bertrand, I am able to export other indicators with no problem. I am very puzzled with this. My version (6.5.1000.5) does not say 'System Indicators' but 'Indicators' only with no @ symbol to the left.

                I am attaching the code as a text file. Could you try to export it on your machine. I don't think I am missing a namespace.
                Attached Files

                Comment


                  #38
                  For this option you would need to upgrade to 6.5.1000.10 - from your code it seems you miss the enum declaration -
                  Code:
                   
                  public enum AverageType
                  {
                  SMA,
                  EMA,
                  HMA,
                  WMA,
                  }
                  Please check into this sample here - http://www.ninjatrader-support2.com/...ead.php?t=3420

                  Comment


                    #39
                    Thanks Bertrand, it is working now.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by argusthome, 03-08-2026, 10:06 AM
                    0 responses
                    103 views
                    0 likes
                    Last Post argusthome  
                    Started by NabilKhattabi, 03-06-2026, 11:18 AM
                    0 responses
                    52 views
                    0 likes
                    Last Post NabilKhattabi  
                    Started by Deep42, 03-06-2026, 12:28 AM
                    0 responses
                    33 views
                    0 likes
                    Last Post Deep42
                    by Deep42
                     
                    Started by TheRealMorford, 03-05-2026, 06:15 PM
                    0 responses
                    36 views
                    0 likes
                    Last Post TheRealMorford  
                    Started by Mindset, 02-28-2026, 06:16 AM
                    0 responses
                    73 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Working...
                    X