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 Version 7 Beta Threads > Version 7 Beta General Questions & Bug Reports

Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports.

 
 
Thread Tools Display Modes
Old 03-18-2010, 06:05 PM   #1
hotdog
Member
 
Join Date: Mar 2008
Posts: 41
Thanks: 0
Thanked 0 times in 0 posts
Default DOM Calculation Incorrect

The DOM does not seem to be working correctly.

It seems that the calculation of profit/loss of number of ticks (open trade) or $$ (if selected) is off by 1 or more ticks from last trade price.

Example: YM short 4 at 10711. Current last trade = 10708. Commission is $2.1 per side.

DOM shows $11.60 open profit. Should be $51.60. Looks like it may be based on bid/ask instead of last?

Using MB Trading live data - SIM account.
YM 06-10
ATM Strategy - 1 target
hotdog is offline  
Old 03-19-2010, 02:23 AM   #2
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,232
Thanks: 83
Thanked 333 times in 325 posts
Default

Hello hotdog,

Can you please doublecheck if you are in a position for 4 contracts. When I test the YM 06-10 on my end, PnL is reported as expected.

Please create a new SuperDOM and check if the issue persists. Post a screenshot of the issue as well, if possible.
NinjaTrader_Jason is offline  
Old 03-19-2010, 06:55 AM   #3
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

Quote:
Originally Posted by hotdog View Post
The DOM does not seem to be working correctly.

It seems that the calculation of profit/loss of number of ticks (open trade) or $$ (if selected) is off by 1 or more ticks from last trade price.

Example: YM short 4 at 10711. Current last trade = 10708. Commission is $2.1 per side.

DOM shows $11.60 open profit. Should be $51.60. Looks like it may be based on bid/ask instead of last?

Using MB Trading live data - SIM account.
YM 06-10
ATM Strategy - 1 target
Also check Tools > Options in the Control Center, there is a "Use last price for PnL" option. When unchecked, bid/ask is used.
NinjaTrader_Ray is offline  
Old 03-19-2010, 09:08 AM   #4
hotdog
Member
 
Join Date: Mar 2008
Posts: 41
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks, Ray. Looks like that was the problem. Also, I discovered the other problem with orders immediately being closed and strategy orders being canceled was due to DOM resetting the Parameter Type to Price instead of TICKS.

What is the purpose of this field?

Further testing shows that setting the DOM Parameter Type default to TICKS and closing/opening DOM, default is not saved. It continues to revert to Price instead of TICKS. Looks like a bug.
Last edited by hotdog; 03-19-2010 at 09:19 AM.
hotdog is offline  
Old 03-19-2010, 09:33 AM   #5
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,232
Thanks: 83
Thanked 333 times in 325 posts
Default

Hello hotdog,

The 'Parameter type' setting will set the format of values you enter in ATM strategy fields.

Could it be you have an ATM template selected in the SuperDOM that was created when 'Parameter type' was set to Price?

Please set 'ATM strategy' to None and set the 'Parameter type' setting to your liking. Click Set Default. Check if the setting is saved.

Your ATM strategy did not work as expected, because it submitted orders at prices that most likely rejected the orders.
NinjaTrader_Jason is offline  
Old 03-19-2010, 09:44 AM   #6
hotdog
Member
 
Join Date: Mar 2008
Posts: 41
Thanks: 0
Thanked 0 times in 0 posts
Default

Thank you. I have tried your suggestion.

However, one additional step was required. The ATM Strategy had to be recreated under a new name or else the problem kept re-occurring every time a new DOM was opened.

Working well now, it seems.
hotdog 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
Incorrect average price on the DOM aldente SuperDOM and other Order Entry Windows 2 06-21-2009 09:28 PM
Incorrect calculation of trades per day in volume bar backtest RandyT Strategy Analyzer 1 10-06-2008 08:29 AM
Calculation Errors Mike Winfrey Indicator Development 9 05-12-2008 05:00 AM
Changing from Dynamic DOM to Static DOM Antraman Installation and Licensing 1 01-01-2007 03:29 AM
DOM Position Calculation Json Suggestions And Feedback 6 11-14-2006 06:01 AM


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