Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

method error

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

    method error

    Tried to import an indicator from NT 6.5 to NT 7.0. and got a methodology error.

    So I copied the .cs file into NT 7.0 custom indicator file to compile it there. No such luck.

    Please see attached.

    Thanks
    Attached Files

    #2
    It says that there is no overload with '8' parameters.
    In NT6 I also don't see that it should work. You'r missing the second parameter (bool).
    Here are the overloads:
    DrawLine(string tag, int startBarsAgo, double startY, int endBarsAgo, double endY, Color color)
    DrawLine(string tag, bool autoScale, int startBarsAgo, double startY, int endBarsAgo, double endY, Color color, DashStyle dashStyle, int width)

    First has 6 parameters and second has 9.

    Baruch

    Comment


      #3
      Thanks. The code as it stands does work in NT 6.5, However I added false as the bool AutoScale and it corrected the problem.

      DrawLine("lowertimeline", false, 1, High[0]- (TickSize*Bars.Period.Value), 0, High[0]- (TickSize*Bars.Period.Value) , Color.Black, DashStyle.Solid, 2);


      Thanks again!!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      601 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      347 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
      559 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      558 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X