I'm new to NinjaTrader and NinjaScript, but have some programming background in c#.
As far as I can see all the methods are incapsulated into Strategy class
I wonder if I can do something like:
public class MyStrategy : Strategy { protected override void Initialize() { Class1 c1 = new Class1(this); c1.DoSmth(); } } public class Class1 { private readonly Strategy _strategy; public Class1(Strategy strategy) { _strategy = strategy; } public void DoSmth() { _strategy.EnterLong(); } }
Comment