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 CaptainJack, 05-29-2026, 05:09 AM
            0 responses
            48 views
            0 likes
            Last Post CaptainJack  
            Started by CaptainJack, 05-29-2026, 12:02 AM
            0 responses
            30 views
            0 likes
            Last Post CaptainJack  
            Started by charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            99 views
            0 likes
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            177 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            170 views
            0 likes
            Last Post CarlTrading  
            Working...
            X