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 kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        34 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        29 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        36 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        33 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        143 views
        0 likes
        Last Post SalmaTrader  
        Working...
        X