Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

The Type or namespace DataSeries could not be found

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

    The Type or namespace DataSeries could not be found

    The Type or namespace DataSeries could not be found

    Getting this error when trying to convert indicator from NT7 to NT8


    The errors refer to these lines in Properties:-

    Code:
    [Browsable(false)] 
    [XmlIgnore()]
    public DataSeries Z
    {
    get { return Values[0]; }
    }
    
    
    [Browsable(false)]
    [XmlIgnore()]
    public DataSeries Zero
    {
    get { return Values[1]; }
    }
    
    [Browsable(false)]
    [XmlIgnore()]
    public DataSeries SignalLine
    {
    get { return Values[2]; }
    }



    Any help appreciated.

    #2
    Hello, thanks for writing in. DataSeries are now Series<T> objects (typically Series<double>). See the documentation here:



    Kind regards,
    -ChrisL​

    Comment


      #3
      NinjaTrader_ChrisL

      Thank you for the help. Iv'e managed to sort that issue out.

      May I ask how I would rewrite these two NT7 lines for NT8 ?

      I'm getting the error
      "System.Windows.Media.Pen does not contain a constructor that takes 1 arguments"

      Code:
      Lines[2].Pen = new Pen (Brushes.Transparent);
      Lines[3].Pen = new Pen (Brushes.Transparent);
      Many thanks
      Last edited by dj22522; 02-03-2023, 03:49 PM.

      Comment


        #4
        Hello, thanks for the follow up. NinjaTrader 8+ uses the WPF Brush instead of the WinForms Pen. e.g.

        AddLine(Brushes.Transparent, 30, "Lower");

        You can change it through the Lines array as well:

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X