Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw.Pathtool example gives error

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

    Draw.Pathtool example gives error

    I tried this code example from the documentation with my own list of anchor points and Im getting "No overload for method "PathTool" takes 8 arguments".
    It looks like the documentation example is wrong when comparing to the actual overload arguments. Also I can't find how I set the width of the lines?


    List<ChartAnchor> anchors = new List<ChartAnchor>();

    Draw.PathTool(this, "tag1", false, anchors, Brushes.CornflowerBlue, DashStyleHelper.Solid, Brushes.CornflowerBlue, 40);



    #2
    Hello PMitchum,

    Below is a link to the help guide on using Draw.PathTool().
    https://ninjatrader.com/support/help...pathtool().htm

    There is no overload with these parameters listed on this page.

    The closest is:
    Draw.PathTool(NinjaScriptBase owner, string tag, bool isAutoScale, List<ChartAnchor> chartAnchors, Brush brush, DashStyleHelper dashStyle)

    But the 40 at the end would not make any sense. That is not a valid parameter for this overload.

    Perhaps you were wanting to use a template?
    Draw.PathTool(NinjaScriptBase owner, string tag, bool isAutoScale, List<ChartAnchor> chartAnchors, bool isGlobal, string templateName)
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      There is no overload NOW since you obviously changed it after I pointed it out, but there clearly was since I copy pasted the bold text in my previous post straight from the documentation.
      And why are you linking to the page about it? I was literally pointing out I got the example from the documentation.

      Your comment is implying that it was never there to begin with which is a bit arrogant. A fit reply would've just been "Thank you for pointing it out, it has now been changed".

      I honestly don't know why Ninjascript draw methods insists on referencing a template instead of having an overload where you just insert brush color, dashstyle AND width instead. I don't want to have to create an extra file just because I want to draw something with a thicker line on the chart in my code. I find it just annoying.

      Comment


        #4
        Hello PMitchum,

        I have no access myself to change the help guide, our IT has to do that. I have not sent any requests to change the help guide. I promise it has not changed.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        649 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        370 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        109 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        573 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        576 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X