namespace NinjaTrader.NinjaScript.AddOns { public class MyMethods : NinjaTrader.NinjaScript.AddOnBase { protected override void OnStateChange() { if (State == State.SetDefaults) { Description = @"Enter the description for your new custom Add on here."; Name = "MyMethods"; } else if (State == State.Configure) { } } public static void MyFunc_1(string url){ Print("a"); } ....... ......
when i call `Print` in that "MyMethods" class, i get error:
"An object reference is required for the non-static field"
Comment