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 Kaledus, Today, 01:29 PM
            0 responses
            3 views
            0 likes
            Last Post Kaledus
            by Kaledus
             
            Started by PaulMohn, Today, 12:36 PM
            1 response
            16 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by yertle, Yesterday, 08:38 AM
            8 responses
            37 views
            0 likes
            Last Post ryjoga
            by ryjoga
             
            Started by rdtdale, Today, 01:02 PM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_LuisH  
            Started by alifarahani, Today, 09:40 AM
            3 responses
            19 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X