Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

assign Series<double> a double value in NT8

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

    assign Series<double> a double value in NT8

    I am converting this indicator from NT7 to NT8. In NT7 I was using

    Values[2].Set(double);

    But now NT8 help said there is no more Set. But when I try to use the '=', it gives me an errror message that says "Cannot implicitly convert double to series<double>.

    What should I use to yeild the same information in NT8 code?

    Thanks

    -Stearno

    #2
    Instead of Set(double) You will do this

    Values[2][0] = double

    Originally posted by stearno View Post
    I am converting this indicator from NT7 to NT8. In NT7 I was using

    Values[2].Set(double);

    But now NT8 help said there is no more Set. But when I try to use the '=', it gives me an errror message that says "Cannot implicitly convert double to series<double>.

    What should I use to yeild the same information in NT8 code?

    Thanks

    -Stearno

    Comment


      #3
      Originally posted by Serialcoder View Post
      Instead of Set(double) You will do this

      Values[2][0] = double
      Which number is the bars back in your example right here? The 2 or the 0?

      Comment


        #4
        The 0. Set in NT7 automatically set position 0. To simplify if you only had 1 series in your indicator/strategy then it will be

        Series<double> mySeries = new Series<double>(this);

        //then this the NT8 implementation that would be similar to mySeries.Set(value)

        mySeries[0] = value;


        Originally posted by stearno View Post
        Which number is the bars back in your example right here? The 2 or the 0?

        Comment


          #5
          Originally posted by Serialcoder View Post
          The 0. Set in NT7 automatically set position 0. To simplify if you only had 1 series in your indicator/strategy then it will be

          Series<double> mySeries = new Series<double>(this);

          //then this the NT8 implementation that would be similar to mySeries.Set(value)

          mySeries[0] = value;
          Succinctly, yes!

          Comment


            #6
            Originally posted by Serialcoder View Post
            The 0. Set in NT7 automatically set position 0. To simplify if you only had 1 series in your indicator/strategy then it will be

            Series<double> mySeries = new Series<double>(this);

            //then this the NT8 implementation that would be similar to mySeries.Set(value)

            mySeries[0] = value;
            Thanks, that was helpful!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by JoMoon2024, Today, 06:56 AM
            0 responses
            6 views
            0 likes
            Last Post JoMoon2024  
            Started by Haiasi, 04-25-2024, 06:53 PM
            2 responses
            17 views
            0 likes
            Last Post Massinisa  
            Started by Creamers, Today, 05:32 AM
            0 responses
            5 views
            0 likes
            Last Post Creamers  
            Started by Segwin, 05-07-2018, 02:15 PM
            12 responses
            1,786 views
            0 likes
            Last Post Leafcutter  
            Started by poplagelu, Today, 05:00 AM
            0 responses
            3 views
            0 likes
            Last Post poplagelu  
            Working...
            X