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 GussJ, 03-04-2020, 03:11 PM
            11 responses
            3,227 views
            0 likes
            Last Post xiinteractive  
            Started by andrewtrades, Today, 04:57 PM
            1 response
            13 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by chbruno, Today, 04:10 PM
            0 responses
            7 views
            0 likes
            Last Post chbruno
            by chbruno
             
            Started by josh18955, 03-25-2023, 11:16 AM
            6 responses
            440 views
            0 likes
            Last Post Delerium  
            Started by FAQtrader, Today, 03:35 PM
            0 responses
            12 views
            0 likes
            Last Post FAQtrader  
            Working...
            X