Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ChartAnchors & Draw.PathTool

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

    ChartAnchors & Draw.PathTool

    Hello,

    Just FYI.

    It seems that the documentation example here may be invalid. There is no constructor currently that seems to match this code in the example.



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

    Oddly, the only matching constructor for a list does not allow you to specify the colour as per the example (which would be preferred),. Not sure if the code is changed or the documentation is wrong.


    Click image for larger version  Name:	image.png Views:	0 Size:	34.3 KB ID:	1257021

    #2
    Hello pjsmith,

    Where did you obtain this code sample?

    The code sample from the help guide is:
    Code:
    Draw.PathTool(this, "tag1", false, anchors, Brushes.CornflowerBlue, DashStyleHelper.Solid);
    Notice there is no number on the end as the last parameter in the help guide example.

    The overload for the help guide code sample would be:
    Code:
    Draw.PathTool(NinjaScriptBase owner, string tag, bool isAutoScale, List<ChartAnchor> chartAnchors, Brush brush, DashStyleHelper dashStyle)
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi - It was from the link I pasted in the original msg. But, on visiting that link, I can see if is now changed. I cut and pasted the code in the message directly from that page, so someone has updated it! So, I guess, all good!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      558 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      324 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      545 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X