Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Added reference to strategy and now can't use it or backtest/optimize

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

    Added reference to strategy and now can't use it or backtest/optimize

    I added a reference to a custom DLL file in my strategy and now I can't backtest or add the strategy to the chart. It's just not an option, it isn't in the list of strategies.

    I understand that this isn't supported so more so than NinjaTrader support, I'm looking for guys that have experience doing this.

    Thanks.

    #2
    Zwentz, try taking a look in the logs (right-most tab in Control Center). An entry is usually added to the log when something goes wrong.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Hey Austin,

      Thanks for the help! The problem is it compiles and all, but I can't do anything with it. So the logs have nothing to show me either.
      Last edited by zwentz; 07-14-2009, 08:48 AM.

      Comment


        #4
        Zwentz, you can try testing to see if the strategy compiles and runs fine without the custom DLL. If it does, you know where the problem lies.
        AustinNinjaTrader Customer Service

        Comment


          #5
          I know what it is now. The DLL I'm using as a reference uses .NET version 3.5.

          However, I am able to still have it as a reference and it compiles fine, but I commented out the using statements and all references to the members of the DLL and it is available to me again. But it can't be a .NET conflict if it is allowed to compile and be used as a reference, can it?

          Edit: Here's where I have narrowed my problem down to:

          Code:
          network = (BasicNetwork)SerializeObject.Load(Filename);
          Could loading a file be the problem? I only do it once, but could this be a conflict? Thanks for helping by the way, I know you guys don't support this.
          Last edited by zwentz; 07-14-2009, 08:48 AM.

          Comment


            #6
            Maybe you could try a fresh .NET install. Unfortunately, we can't provide any more support. Thank you for understanding.
            AustinNinjaTrader Customer Service

            Comment


              #7
              I understand, I actually think it has to do with the loading of a file. Thanks for helping!

              Comment


                #8
                I figured it out, I was declaring a new instance of a member in my custom DLL in outside of a function and it was creating a conflict. Everything is in ship-shape now. Thanks again Austin!

                Comment


                  #9
                  Great to hear you've got it figured out!
                  AustinNinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

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