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