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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      63 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      91 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      48 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      105 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      63 views
      0 likes
      Last Post PaulMohn  
      Working...
      X