Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

missing directive or an assembly reference

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

    missing directive or an assembly reference

    Created a zip file to export to a new pc.... Getting the (are you missing a using directive or an assembly reference?) on import.. What do I have to include in my zip file to take care of this or what do I have to add to the New install of NT?
    Attached Files

    #2
    Hello gg80108,

    Please see here for common export problems.

    Depending on what exactly is missing, you may need to add additional files to the export, or manually add the reference on the new pc through the right click > references screen.

    To track down what is missing, you can attempt to manually copy over the files into the new installation and then compile. It will tell you exactly what's missing in order to compile successfully.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      this seems really strange,, this came from your SampleBoolSeries (indicator) and SampleBoolSeriesStrategy(strategy) sample code, so when I imported these to my original PC this put the proper references on my pc also behind the scenes? Would these two samples have a hint as to what its looking for? This would save me alot of hunting and pecking...

      Comment


        #4
        Your trace file indicates the issue is with file EmaTSSupertrend.cs where "NinjaTrader.Indicator.DiffIndex' does not contain a definition for BullIndication...." There is similar message for BearIndication.

        It looks like you have reference to these public properties but NT could not find them. If you did not explicitly include the files from the original reference sample, then you won't be able to import.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Please check out the picture of the DiffIndex indicator included in my first post,, is this what u are talking about ?
          Did I run into this since I used the exact names as in the sample file.. Should I have changed the names?
          Last edited by gg80108; 01-18-2011, 03:18 PM.

          Comment


            #6
            Right - and you must include everything else from that sample. The properties are linked to private variables which are also instantiated as new objects. If you're working that closely with this sample, then just include the whole file.
            Ryan M.NinjaTrader Customer Service

            Comment


              #7
              Didn't mean to work that closely,, unintended consequences,, Changed the name BullIndication/BearIndication to unique name and now ok..

              Comment

              Latest Posts

              Collapse

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