NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 06-05-2009, 07:30 PM   #1
leonchan1204
Junior Member
 
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 0 times in 0 posts
Default Calculating P&L by day?

Hi,

The script I'm developing is targeted to run cross multiple days. And I am trying to calculate profit and loss of current date. Is there a built-in method that could help me on this? I tried to use Performance class but seems it collects all trades of all the past days.

Thanks
leonchan1204 is offline  
Reply With Quote
Old 06-08-2009, 06:14 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,382
Thanks: 252
Thanked 967 times in 950 posts
Default

leonchan1204, welcome to our support forums and thanks for the post.

Have you already checked into this sample here?

http://www.ninjatrader-support2.com/...ead.php?t=4084
NinjaTrader_Bertrand 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
Calculating fair value? Bogan7 NinjaScript File Sharing Discussion 4 04-30-2012 01:46 PM
Dom not updating the low of day and time & sales red background chartlearner Connecting 8 10-13-2008 08:59 AM
resetting flag at end of day or a certain time of day sauer11155 Strategy Development 5 09-23-2008 08:30 AM
Day & Month in Y axis John_Aus General Programming 3 05-13-2008 09:52 PM
Calculating slope & percentage... funk101 General Programming 2 04-13-2007 03:01 AM


All times are GMT -6. The time now is 10:42 AM.