NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 06-07-2010, 05:04 AM   #1
soyjesus
Senior Member
 
Join Date: Feb 2009
Posts: 125
Thanks: 5
Thanked 0 times in 0 posts
Default Write the trades in a file

How can I write the result of every trade in a text file or similar? When a trade is finished I need that the result was writed in a file for to be analyzed

Thank you and I hope you understand me (I'm from Spain).

Jesus.
soyjesus is offline  
Reply With Quote
Old 06-07-2010, 05:13 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Jesus, you can work with the Performance / TradeCollection classes for this task -

http://www.ninjatrader-support.com/H...rformance.html

To write to a txt files, please see those two reference samples here -

http://www.ninjatrader.com/support/f...ead.php?t=3477

http://www.ninjatrader.com/support/f...ead.php?t=3475
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 06-07-2010, 05:29 AM   #3
soyjesus
Senior Member
 
Join Date: Feb 2009
Posts: 125
Thanks: 5
Thanked 0 times in 0 posts
Default

Ok, thanks Bertrand.
soyjesus is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
binary file: how to Read and Write fx.practic General Programming 7 02-08-2010 01:17 PM
Strange File write behavor?! mktrend General Programming 0 10-28-2008 08:43 PM
6.5 install cannot write trace file webber Installation and Licensing 4 09-06-2008 06:34 PM
Historical interferes with file write? Burga1 Miscellaneous Support 4 05-14-2008 01:43 PM
Indicator: Using System.IO File properties to write to and read from a text file NinjaTrader_Josh Reference Samples 0 09-30-2007 10:48 PM


All times are GMT -6. The time now is 01:39 AM.