Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT 6.5 to 7 indicator problem

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

    NT 6.5 to 7 indicator problem

    I get this, No overload for method drawline takes 8 arguments.
    Here is picture.
    What is the problem it works in 6.5

    #2

    Picture?

    Comment


      #3
      Picture not working
      Unlimited space to host images, easy to use image uploader, albums, photo hosting, sharing, dynamic image resizing on web and mobile.

      Comment


        #4
        Hello Mike_32,

        Thank you for your post.

        There have been changes to the DrawLine signature from NT V6.5. to NT V7. The correct syntax for draw line is as below:

        DrawLine(string tag,
        bool autoScale, int startBarsAgo, double startY, int endBarsAgo, double endY, Color color, DashStyle dashStyle, int width)



        Try adding "false" for the autoScale bool to your line of code and compile again.

        Click here for a PDF containing a complete list of Code Breaking Changes from 6.5 to 7
        MatthewNinjaTrader Product Management

        Comment


          #5
          Hi this one doesn't have a bool autoscale in the lines it just has this.

          DrawLine(lasthibar.ToString(), CurrentBar-lasthibar, lasthi, CurrentBar-lastlobar, lastlo, zigZagColor, DashStyle.Solid, linewidth);

          Are you telling me indicators from 6.5 have to be totally re written?
          Ill go read the pdf.

          Comment


            #6
            Mike_ 32,

            Correct, you will need to add the bool autoScale in order to fix the compile errors you are receiving.

            Yes, many functions will need to be rewritten to NT V7. Details will be contained in the PDF linked above.
            MatthewNinjaTrader Product Management

            Comment


              #7
              All it needs is the AutoScale, in that line that's pretty dumb.

              Comment


                #8
                Originally posted by NinjaTrader_Matthew View Post
                Mike_ 32,

                Correct, you will need to add the bool autoScale in order to fix the compile errors you are receiving.

                Yes, many functions will need to be rewritten to NT V7. Details will be contained in the PDF linked above.
                So just tell people to put AutoScale, in it if they ask I guess its probably not the only thing im going to come across there is another one on nogaprangebars

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by andrewtrades, Today, 04:57 PM
                1 response
                5 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by chbruno, Today, 04:10 PM
                0 responses
                3 views
                0 likes
                Last Post chbruno
                by chbruno
                 
                Started by josh18955, 03-25-2023, 11:16 AM
                6 responses
                436 views
                0 likes
                Last Post Delerium  
                Started by FAQtrader, Today, 03:35 PM
                0 responses
                7 views
                0 likes
                Last Post FAQtrader  
                Started by rocketman7, Today, 09:41 AM
                5 responses
                19 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Working...
                X