Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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​
    Chris L.NinjaTrader Customer Service

    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:

        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by SantoshXX, Today, 03:09 AM
        0 responses
        13 views
        0 likes
        Last Post SantoshXX  
        Started by DanielTynera, Today, 01:14 AM
        0 responses
        2 views
        0 likes
        Last Post DanielTynera  
        Started by yertle, 04-18-2024, 08:38 AM
        9 responses
        42 views
        0 likes
        Last Post yertle
        by yertle
         
        Started by techgetgame, Yesterday, 11:42 PM
        0 responses
        14 views
        0 likes
        Last Post techgetgame  
        Started by sephichapdson, Yesterday, 11:36 PM
        0 responses
        2 views
        0 likes
        Last Post sephichapdson  
        Working...
        X