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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      35 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      12 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      18 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      20 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X