for a better reuse of my own entry strategy I want to extract EnterLong, EnterShort and other functions into an extra class.
Unfortunately following is not working. Is there a way to get this working?
Thanks in advance.
Cheers
public class myStrategy: Strategy
{
Ordermanager myOrders = new Ordermanager();
protected override void OnBarUpdate()
{
myOrders.Long()
}
}
public class Ordermanager : Strategy
{
public void Long()
{
var order = EnterLong(100, "name");
}
}

Comment