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