namespace NinjaTrader.NinjaScript.Strategies
{
public class MyStrategy : Strategy
{
}
}
namespace NinjaTrader.NinjaScript.Indicators
{
public class MyIndicator : Indicator
{
[XmlIgnore()]
public Strategies.MyStrategy myStrat; // public MyStrategy myStrat worked in NT7
}
}
That shouldn’t be since I just created it so I know it does exist but fine – I’ll declare it like it wants.
But in the implementation where I want the indicator to call the strategy to put a stop order, I have:
Order newOrder = flagStrat.ExitShortStop( 0, true, qty, price, "Stop loss", entrySignal );
Yes it does! MyStrategy "isa" Strategies, therefore it should see Strategies methods. But for some reason it doesn't.
This is a port from functionality that worked in NT7 so something tells me this is a simple thing I’m overlooking.
What am I missing?
Thanks guys!

Comment