Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Auto export trade data

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

    Auto export trade data

    Is there any programming facility in NT to export trade data to a file? I am looking to create the same data as you can manually export to a csv file from the Strategy Performance report window, trades tab. But I want to update the file as trades execute live. I know how to approach this by writing my own C# code, but I'd like to find out if NT has any support? For example, is there something like a "dumpTradeData" call? Also, is there a way to access the commissions or slippage settings?

    Another question is where do the log files for NT live? Can I gather the trade data from the contents of the log files? I am really asking if the log files can be accessed outside of NT and are they clear text or encrypted? ... I did find the /Ninjatrader7/logs directory and it has an Executions.txt file. But it doesn't have the associated strategy name, so you can't determine where the execution came from.
    Last edited by tradetree; 10-28-2011, 10:59 PM.

    #2
    tradetree,

    I am happy to assist.

    Here are some helpful links to reference samples.

    Using StreamWriter : http://www.ninjatrader.com/support/f...ead.php?t=3475

    Using StreamReader : http://www.ninjatrader.com/support/f...ead.php?t=3476

    You just need to output in the correct formatting for CSV files (comma separated value)

    There is more information about trades, etc. in your Documents\NinjaTrader 7\trace and \Documents\NinjaTrader 7\log files in the files which have dates on them in MMDDYYYY format.

    Please let me know if I may assist further.
    Adam P.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
    574 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