Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error New Indicator Wizzard

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Error New Indicator Wizzard

    8.0.0.13 64-bit (Standard) - Release Candidate 1
    When I add input parameter of type Brush, Generate indicator fails

    Time Category Message 03.10.2016 16:51:49 Default Unhandled exception: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
    Attached Files

    #2
    Hello,
    I have been unable to reproduce this behavior.
    Please send me your log and trace files so we may investigate further.
    You can do this by going to the Control Center-> Help-> Mail to Platform Support.

    Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.

    Please reference the following in the body of the email: http://www.ninjatrader.com/support/f...ad.php?t=90177
    Cody B.NinjaTrader Customer Service

    Comment


      #3
      I can reproduce if I set any text to description for parameter Brush, if description ist empty Generate works

      StackTrace from trace.txt

      2016-10-03 18:47:20:982 *************** unhandled exception trapped ***************
      2016-10-03 18:47:20:982 Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
      2016-10-03 18:47:20:984 System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
      at System.Text.StringBuilder.AppendFormatHelper(IForm atProvider provider, String format, ParamsArray args)
      at System.Text.StringBuilder.AppendFormat(IFormatProv ider provider, String format, Object[] args)
      at NinjaTrader.Gui.NinjaScript.Wizard.ScriptGenerator .Generate(ScriptProperties properties)
      at NinjaTrader.Gui.NinjaScript.Wizard.WizardViewModel .OnCommandGenerate(Object sender, RoutedEventArgs e)
      at System.Windows.Input.CommandBinding.OnExecuted(Obj ect sender, ExecutedRoutedEventArgs e)
      at System.Windows.Input.CommandManager.ExecuteCommand Binding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
      at System.Windows.Input.CommandManager.FindCommandBin ding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
      at System.Windows.Input.CommandManager.FindCommandBin ding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
      at System.Windows.Input.CommandManager.OnExecuted(Obj ect sender, ExecutedRoutedEventArgs e)
      at System.Windows.RoutedEventArgs.InvokeHandler(Deleg ate handler, Object target)
      at System.Windows.RoutedEventHandlerInfo.InvokeHandle r(Object target, RoutedEventArgs routedEventArgs)
      at System.Windows.EventRoute.InvokeHandlersImpl(Objec t source, RoutedEventArgs args, Boolean reRaised)
      at System.Windows.UIElement.RaiseEventImpl(Dependency Object sender, RoutedEventArgs args)
      at System.Windows.Input.RoutedCommand.ExecuteImpl(Obj ect parameter, IInputElement target, Boolean userInitiated)
      at MS.Internal.Commands.CommandHelpers.CriticalExecut eCommandSource(ICommandSource commandSource, Boolean userInitiated)
      at System.Windows.Controls.Primitives.ButtonBase.OnCl ick()
      at System.Windows.Controls.Button.OnClick()
      at System.Windows.Controls.Primitives.ButtonBase.OnMo useLeftButtonUp(MouseButtonEventArgs e)
      at System.Windows.RoutedEventArgs.InvokeHandler(Deleg ate handler, Object target)
      at System.Windows.RoutedEventHandlerInfo.InvokeHandle r(Object target, RoutedEventArgs routedEventArgs)
      at System.Windows.EventRoute.InvokeHandlersImpl(Objec t source, RoutedEventArgs args, Boolean reRaised)
      at System.Windows.UIElement.ReRaiseEventAs(Dependency Object sender, RoutedEventArgs args, RoutedEvent newEvent)
      at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
      at System.Windows.RoutedEventArgs.InvokeHandler(Deleg ate handler, Object target)
      at System.Windows.RoutedEventHandlerInfo.InvokeHandle r(Object target, RoutedEventArgs routedEventArgs)
      at System.Windows.EventRoute.InvokeHandlersImpl(Objec t source, RoutedEventArgs args, Boolean reRaised)
      at System.Windows.UIElement.RaiseEventImpl(Dependency Object sender, RoutedEventArgs args)
      at System.Windows.UIElement.RaiseTrustedEvent(RoutedE ventArgs args)
      at System.Windows.Input.InputManager.ProcessStagingAr ea()
      at System.Windows.Input.InputManager.ProcessInput(Inp utEventArgs input)
      at System.Windows.Input.InputProviderSite.ReportInput (InputReport inputReport)
      at System.Windows.Interop.HwndMouseInputProvider.Repo rtInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
      at System.Windows.Interop.HwndMouseInputProvider.Filt erMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
      at System.Windows.Interop.HwndSource.InputFilterMessa ge(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
      at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
      at MS.Win32.HwndSubclass.DispatcherCallbackOperation( Object o)
      at System.Windows.Threading.ExceptionWrapper.Internal RealCall(Delegate callback, Object args, Int32 numArgs)
      at System.Windows.Threading.ExceptionWrapper.TryCatch When(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

      Comment


        #4
        Hello,
        Thank you for your reply.
        I have been able to reproduce this with RC1. It appears this is set to be fixed in Release Candidate 2.
        Thank you for reporting this.
        Cody B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        4 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Started by alifarahani, Today, 09:40 AM
        6 responses
        41 views
        0 likes
        Last Post alifarahani  
        Started by Waxavi, Today, 02:10 AM
        1 response
        19 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Working...
        X