I keep getting errors from the following code:
// Error handling:
if (handleErrors == true)
RealtimeErrorHandling = RealtimeErrorHandling.StopStrategyCancelOrdersClosePosition;
else
RealtimeErrorHandling = RealtimeErrorHandling.TakeNoAction;
Strategy\CRG_Momentum_MultiTimeFrame3.cs 'NinjaTrader.Strategy.RealtimeErrorHandling' does not contain a definition for 'StopStrategyCancelOrdersClosePosition' and no extension method 'StopStrategyCancelOrdersClosePosition' accepting a first argument of type 'NinjaTrader.Strategy.RealtimeErrorHandling' could be found (are you missing a using directive or an assembly reference?) CS1061 - click for info 123 52
[Description("Error Handling")]
[Category("Parameters")]
public bool HandleErrors
{
get { return handleErrors; }
set { handleErrors = value; }
}

Comment