i toll the code out again... NT8 crashed out on this one
2015-05-12 10:54:31:099 ERROR: Error on getting/setting property 'BarsRequiredToTrade' for NinjaScript 'MicroTrends USAR Trader': Exception has been thrown by the target of an invocation.
2015-05-12 10:54:31:133 *************** unhandled exception trapped ***************
2015-05-12 10:54:31:133 'BarsRequiredToTrade' cannot be set from this state. Please see the Help Guide article on 'BarsRequiredToTrade' for more information.
2015-05-12 10:54:31:166 System.InvalidOperationException: 'BarsRequiredToTrade' cannot be set from this state. Please see the Help Guide article on 'BarsRequiredToTrade' for more information.
at NinjaTrader.NinjaScript.StrategyBase.set_BarsRequi redToTrade(Int32 value)
at NinjaTrader.NinjaScript.StrategyBase.CopyTo(NinjaS cript ninjaScript)
at NinjaTrader.NinjaScript.NinjaScript.Clone()
at NinjaTrader.Gui.NinjaScript.StrategyAnalyzer.Strat egyAnalyzerViewModel.<OnRecompile>b__34()
at System.Windows.Threading.DispatcherOperation.Invok eDelegateCore()
at System.Windows.Threading.DispatcherOperation.Invok eImpl()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowF orNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.Handle NonSuccessAndDebuggerNotification(Task task)
at System.Windows.Threading.DispatcherOperation.Wait( TimeSpan timeout)
at System.Windows.Threading.Dispatcher.InvokeImpl(Dis patcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout)
at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
at System.Windows.Threading.Dispatcher.Invoke(Action callback)
at NinjaTrader.Gui.Tools.DispatcherHelper.CheckUiInvo ke(Dispatcher uiDispatcher, Action action, Boolean async)
at NinjaTrader.Gui.NinjaScript.StrategyAnalyzer.Strat egyAnalyzerViewModel.DispatchToOwner(Action action)
at NinjaTrader.Gui.NinjaScript.StrategyAnalyzer.Strat egyAnalyzerViewModel.OnRecompile(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at NinjaTrader.Code.Compiler.Compile(Boolean checkCompileOnly, Boolean debugBuild, IEnumerable`1 filesToIgnore, IEnumerable`1 filesInTmp)
at NinjaTrader.Gui.NinjaScript.Editor.EditorViewModel .<>c__DisplayClass8c.<OnCompile>b__86(Object s)
at System.Threading.ExecutionContext.RunInternal(Exec utionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System. Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
2015-05-12 10:54:31:167 ERROR: There are no email share services defined. You need to define one and set "Default" to true for email to work.
Comment