Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error Message when compiling an indicator in NT 7

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

    Error Message when compiling an indicator in NT 7

    Hi

    I tried to compile a standard indicator that works fine in NT 6.5 in NT 7 but I get the following error message:

    Line 54: "No overloading of the Draw Text Method accepts 11 arguments"

    This is linew 54:

    DrawText("HighText", false, finalhigh , x, High[0]+ (TickSize * Math.Abs( Offset)) ,Color.Blue, txtFont, StringAlignment.Near, Color.Transparent, Color.Transparent, 50);

    What could be the problem? ( I went through the code breaking changes document but couldn't find anything.

    Thanks

    #2
    laocoon, just replied to your note you send to support - I think you miss the pixelOffset parameter in your call (just use Intellisense to see the expected arguments for the overload).

    Comment


      #3
      Thanks for your quick reply Bertrand.

      What bothers me is that the exact same code is working fine in NT 6.5 so there shouldn't be anything missing and the intellisense message says nothing more than what I already posted. (I have a german version of Windows and since you're located in Hamburg you'll certainly understand this:"Keine Überladung für die Draw-Text Methode nimmt 11 Argumente an".)

      Intellisense doesn't say something like "XYZ expected" so I'm at a loss.

      Thanks again

      Comment


        #4
        You're welcome laocoon, just enter your DrawText statement and remove the comma after your first string input, then add it back and you should see Intellisense offering assistance on the expected overload (there are 3 overloads available, the first should do it for you). Then you can step through each parameter and see which is the missing one, I believe the pixel offset...

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        597 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        343 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        556 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        555 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X