Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

6.5 to 7

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

    6.5 to 7

    Somebody can help me to traslate this lines in 6.5 to NT 7

    DrawLine(tag+"CD",FirstHigh,D,FirstLow,C,PenColor,DashStyle,PenWidt h);
    DrawLine(tag+
    "BC",FirstLow,C,SecondHigh,B,PenColor,DashStyle,PenWid th);
    DrawLine(tag+
    "AB",SecondHigh,B,SecondLow,A,PenColor,DashStyle,PenWi dth);
    DrawLine(tag+
    "XA",SecondLow,A,ThirdHigh,X[0],PenColor,DashStyle,PenWidth);

    Thanks

    #2
    Successlife, these are the DrawLine() overloads for NT7:
    Code:
    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)
     DrawLine(string tag, bool autoScale,  DateTime  startTime, double startY,  DateTime  endTime, double endY, Color color,  DashStyle  dashStyle, int width)
    So I believe you'll have to add a "false" flag after the tag in order to make your code work.
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    152 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    87 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    131 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    127 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    106 views
    0 likes
    Last Post CarlTrading  
    Working...
    X