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 > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 10-12-2010, 09:56 AM   #1
onurbbruno
Member
 
Join Date: Jan 2010
Posts: 41
Thanks: 0
Thanked 0 times in 0 posts
Default profit and losses of the day

In a strategy I desire to calculate the profit or the losses of my account in the day when I apply the strategy. How can I proceed?
Thanks.
onurbbruno is offline  
Reply With Quote
Old 10-12-2010, 10:15 AM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello onurbbruno,

You can use the performance class to access Pnl. These samples can help using this class.

Using trade performance statistics for money management
Halting a Strategy Once User Defined Conditions Are Met
Resetting values at the beginning of new trading sessions
NinjaTrader_RyanM 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
how to check if 2 losses are on the same day qewcool Strategy Development 3 04-01-2010 10:11 AM
setting profit margin/loss per day green Strategy Development 1 04-24-2009 10:48 AM
Highest Profit obtained for day gg80108 Miscellaneous Support 3 03-19-2009 12:05 PM
can't get stop losses or profit targets to execute leemiles Strategy Development 9 11-04-2008 08:56 AM
Ending strategy once day profit target hit? tazmaan Strategy Analyzer 6 07-18-2008 12:28 AM


All times are GMT -6. The time now is 06:56 AM.