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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      72 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      39 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X