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