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 Jon17, Today, 04:33 PM
                0 responses
                1 view
                0 likes
                Last Post Jon17
                by Jon17
                 
                Started by Javierw.ok, Today, 04:12 PM
                0 responses
                4 views
                0 likes
                Last Post Javierw.ok  
                Started by timmbbo, Today, 08:59 AM
                2 responses
                10 views
                0 likes
                Last Post bltdavid  
                Started by alifarahani, Today, 09:40 AM
                6 responses
                41 views
                0 likes
                Last Post alifarahani  
                Started by Waxavi, Today, 02:10 AM
                1 response
                19 views
                0 likes
                Last Post NinjaTrader_LuisH  
                Working...
                X