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 aa731, Today, 02:54 AM
            0 responses
            1 view
            0 likes
            Last Post aa731
            by aa731
             
            Started by thanajo, 05-04-2021, 02:11 AM
            3 responses
            469 views
            0 likes
            Last Post tradingnasdaqprueba  
            Started by Christopher_R, Today, 12:29 AM
            0 responses
            10 views
            0 likes
            Last Post Christopher_R  
            Started by sidlercom80, 10-28-2023, 08:49 AM
            166 responses
            2,237 views
            0 likes
            Last Post sidlercom80  
            Started by thread, Yesterday, 11:58 PM
            0 responses
            4 views
            0 likes
            Last Post thread
            by thread
             
            Working...
            X