• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 uiwislth, Yesterday, 11:25 PM
        0 responses
        4 views
        0 likes
        Last Post uiwislth  
        Started by Steve L, Yesterday, 10:04 PM
        0 responses
        3 views
        0 likes
        Last Post Steve L
        by Steve L
         
        Started by marianfed, Yesterday, 09:47 PM
        0 responses
        4 views
        0 likes
        Last Post marianfed  
        Started by hir04068, Yesterday, 09:29 PM
        0 responses
        2 views
        0 likes
        Last Post hir04068  
        Started by iq200, 03-11-2018, 07:49 PM
        24 responses
        1,014 views
        0 likes
        Last Post mrlucky1x  
        Working...
        X