Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exporting Drawing Objects Values to CSV

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

    Exporting Drawing Objects Values to CSV

    Hello,
    I am looking for a way to export all the values of drawing objects on a chart that were created by some proprietary indicators (I don't have access to source code). I would like to export the Start Time, Start Y, End Time, and End Y into a csv file.

    Is there any way to implement this?
    Possibly created an indicator of some sort that could extract the data.

    Thank you.​
    Attached Files

    #2
    Hello trader07,

    Thanks for your post.

    The DrawObjects collection could be looped through to detect objects drawn on the chart from other NinjaScripts or objects drawn manually on the chart.

    See this help guide page for more information about looping through the DrawObjects collection and sample code: https://ninjatrader.com/support/help...rawobjects.htm

    And, see this help guide page about the DrawingTool values you could access: https://ninjatrader.com/support/help...rawingtool.htm

    That information could be exported to a CSV file by using a StreamWriter. See the reference sample from the help guide linked below which demonstrates how a StreamWriter could be used.

    StreamWriter:https://ninjatrader.com/support/help...o_write_to.htm
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

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