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 CarlTrading, 03-31-2026, 09:41 PM
                1 response
                71 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by CarlTrading, 04-01-2026, 02:41 AM
                0 responses
                39 views
                0 likes
                Last Post CarlTrading  
                Started by CaptainJack, 03-31-2026, 11:44 PM
                0 responses
                63 views
                2 likes
                Last Post CaptainJack  
                Started by CarlTrading, 03-30-2026, 11:51 AM
                0 responses
                62 views
                0 likes
                Last Post CarlTrading  
                Started by CarlTrading, 03-30-2026, 11:48 AM
                0 responses
                53 views
                0 likes
                Last Post CarlTrading  
                Working...
                X