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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      70 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      152 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      162 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      100 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      288 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X