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 inanazsocial, Today, 01:15 AM
                0 responses
                2 views
                0 likes
                Last Post inanazsocial  
                Started by trilliantrader, 04-18-2024, 08:16 AM
                5 responses
                22 views
                0 likes
                Last Post trilliantrader  
                Started by Davidtowleii, Today, 12:15 AM
                0 responses
                3 views
                0 likes
                Last Post Davidtowleii  
                Started by guillembm, Yesterday, 11:25 AM
                2 responses
                9 views
                0 likes
                Last Post guillembm  
                Started by junkone, 04-21-2024, 07:17 AM
                9 responses
                71 views
                0 likes
                Last Post jeronymite  
                Working...
                X