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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      210 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      120 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      145 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      227 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      188 views
      0 likes
      Last Post CarlTrading  
      Working...
      X