Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

[Gui.Design.DisplayName ("Show MA Lines")] generates an error

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

    [Gui.Design.DisplayName ("Show MA Lines")] generates an error

    An error is generated by the bolded line

    // Options
    [Description("Show plot of the MA lines")]
    [Category("Parameters")]
    [Gui.Design.DisplayName ("Show MA Lines")]
    public bool ShowPlot
    {
    get { return showPlot; }
    set { showPlot = value; }
    }
    that says The type or namespace name "Design" does not exist in the namespace "NinjaTrader.Gui" (are you sure...)

    What am I doing wrong?

    TY

    #2
    Hello dmking,

    Thanks for opening the thread.

    It looks like you copied some NinjaTrader 7 code into your NinjaTrader 8 script. Please see the resource below for creating user defined inputs in NinjaTrader 8:



    Also as a tip, you can right click on the Indicators folder in the NinjaScript Editor and click New Indicator to use a New Indicator Wizard to generate the syntax for input parameters.

    Please let us know if we an be of further assistance.

    Comment


      #3
      Thanks Jim,

      That's exactly what I did. I'll follow your suggestions and this thread will go in my note book.

      TY

      D

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      637 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      366 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      107 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      571 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X