Failed to call method 'Initialize' for indicator 'NinjaTest': Could not load file or assembly 'DotNet35Ninja, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
VERY DISAPPOINTING for a supposedly mature product! I would be surprised if others haven't tried this rather basic feature of NinjaTrader.
To replicate in a simple solution, I did the following but got the same problem:
1) created a dll in .net3.5 with the following code (assembly name DotNet35Ninja):
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DotNet35Ninja
{
public class Class1
{
public void Hello()
{
Console.WriteLine("Hello from DotNet35Ninja");
}
}
}
2) created an indicator called NinjaTest and add 2 lines to it:
using DotNet35Ninja;
...
and in
protected override void Initialize()
{
.....
Class1 c = new Class1();
}
3) put the dll at the right place added assembly to ninja and compiled. everything worked fine. no compile error etc...
When I add the indicator to a chart, it come sup with the same error as before. This is rather disappointing as you can imagine. Not hard to replicate this for any developer in a few minutes.
Any comments rather appreciated!
Comment