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 charlesugo_1, 05-26-2026, 05:03 PM
                  0 responses
                  61 views
                  0 likes
                  Last Post charlesugo_1  
                  Started by DannyP96, 05-18-2026, 02:38 PM
                  1 response
                  148 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by CarlTrading, 05-11-2026, 05:56 AM
                  0 responses
                  162 views
                  0 likes
                  Last Post CarlTrading  
                  Started by CarlTrading, 05-10-2026, 08:12 PM
                  0 responses
                  98 views
                  0 likes
                  Last Post CarlTrading  
                  Started by Hwop38, 05-04-2026, 07:02 PM
                  0 responses
                  286 views
                  0 likes
                  Last Post Hwop38
                  by Hwop38
                   
                  Working...
                  X