Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Failed to call method 'Initialize' for all strategies

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

    Failed to call method 'Initialize' for all strategies

    After some recent changes to my system, I now get the above error (upon F5/compile) for all strategies and several indicators in my 'Output' window.
    Hopefully you can suggest a way for me to get Ninja working again. The system changes were:
    1. Installed Ninja 7.13 (had been 7.12). I doubt this is the issue.
    2. I have Visual Studio 2010 Express installed on my system for a long time. I was going through the installation of VS2012 Express, which may install new versions of .NET, which could be a problem.
    3. Some of my strategies have Reference to Encog (encog-core-cs.dll). I changed from an older version (3.0.1) to (3.10). (this is likely the source of the problems).

    Attempts to fix the problem included:
    1. Removing the Reference to the old dll, then adding it back (I have put the new dll in the same location as what the old one was).
    2. Restarting Ninja several times (once for 32b mode, several for 64b mode).
    3. Rebooting the PC.

    Other notes: I get the error message for most strategies, including ones I've not edited (see SampleMACrossover log below). I had been seeing it in a few Indicators, but I 'deleted' the sole indicator which had any reference to encog. Note that most (maybe ALL) of the strategies which emit this error message have no mention of Encog in their source code. (They do have the reference to Encog, as all strategies seem to share a common set of references).

    Thanks for your suggestions. (or tell me what other info to gather to help toward a resolution)

    #2
    bnehlsen, do you know perhaps in which environment the custom Encoq DLL was built / targetted for and if there was a change in the most recent update? When you leave only the 3.0.1 version installed and would remove the 3.1 version from the custom folder / references as well and would then restart - same issue seen?

    Comment


      #3
      Bertrand, thanks, that helped. Unfortunately, I need the functionality of the newer version.
      What is a tool which I can use to dump the DLL info? (I'll use it for both files).
      Are you saying that the newer one is compiled against a newer version of .NET?
      Which version(s) of .NET is NinjaTrader compatible with?

      Thanks for your help!

      Comment


        #4
        Glad to hear, just make sure the target framework of the dll is .NET 3.5 or lower - then it would be able to load. Our next major upgrade would include support for NET 4.5

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        88 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        48 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        30 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        34 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        68 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X