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 > Application Technical Support > Miscellaneous Support > Historical NinjaTrader 6.5 Archive > Historical NinjaTrader 6.5 Beta Threads

 
 
Thread Tools Display Modes
Old 02-12-2008, 07:12 AM   #1
SteveB
Senior Member
 
Join Date: Jan 2008
Posts: 108
Thanks: 0
Thanked 0 times in 0 posts
Default PnL #s wrong (6.5.0.7)

I am running 5 flavors of the same strategy (diff Data Series) and have a Static Super DOM open. After a few fills; The PnL in the DOM is way off; Avg Prc used in calc way off...so Control Center/Strategies/Unrealized never matches DOM.

And Control Center/Strategies/Realized never matches Control Center/Accounts/Realized PnL.

Can't trust Control Center/Strategies/UnRealized because the Realized is wrong...

At the end of the day I can reconcile Executions with Realized PnL.
SteveB is offline  
Old 02-12-2008, 08:29 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

That could be the case.

- A strategy can include historical fills in its reported PnL
- If a strategy is in a position as it is started, a virtual execution will be included in its PnL
- Right click on a strategy --> Performance --> Real-Time only. This should closely match the Performance Tab however...this can include a virtual execution.
NinjaTrader_Ray is offline  
Old 02-12-2008, 11:03 AM   #3
SteveB
Senior Member
 
Join Date: Jan 2008
Posts: 108
Thanks: 0
Thanked 0 times in 0 posts
Default

First line in OnBarUpdate:

// Make sure this strategy does not execute against historical data
if (Historical)
return;

I wipe the slate clean with Tools/Options/Simulator/Reset before each round of testing...
SteveB is offline  
Old 02-12-2008, 12:04 PM   #4
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Great.

So if you start the day fresh (no executions) run a single strategy, terminate it. Performance should match what is in the Account Performance. If you run multiple strategies on the same market in the same day, the account performance for sure will be different based since your trade pairings are create from executions at the account level independant of a strategy.
NinjaTrader_Ray is offline  
Old 03-05-2008, 08:37 AM   #5
SteveB
Senior Member
 
Join Date: Jan 2008
Posts: 108
Thanks: 0
Thanked 0 times in 0 posts
Default

I unchecked Tools/Options/General/Use last price for PnL & Use FIFO for position... and all is well.

I am guessing the problem with the DOM may be in the FIFO calc...
SteveB is offline  
 

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
What's wrong with this? fifty2aces Indicator Development 3 01-16-2008 07:50 PM
can someone suggest what I'm doing wrong? coolmoss Indicator Development 7 12-06-2007 04:23 PM
Forex trading - wrong reporting, wrong Close action, connecting jcervinka Miscellaneous Support 2 08-30-2007 09:42 AM
PnL wrong display PrTester Automated Trading 6 03-05-2007 10:24 AM
Wrong strategy executed BradB Automated Trading 1 02-21-2007 02:41 AM


All times are GMT -6. The time now is 12:01 PM.