![]() |
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
|
|||||||
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jan 2008
Posts: 108
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2008
Posts: 108
Thanks: 0
Thanked 0 times in 0 posts
|
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... |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jan 2008
Posts: 108
Thanks: 0
Thanked 0 times in 0 posts
|
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... |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
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 |