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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      81 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      66 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X