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

Miscellaneous Support Miscellaneous support issues.

Reply
 
Thread Tools Display Modes
Old 07-11-2012, 12:10 PM   #1
RogBear
Junior Member
 
Join Date: Apr 2011
Posts: 11
Thanks: 4
Thanked 0 times in 0 posts
Default Incorrect AvgPrice on Entry

Please see the attached gif file to illustrate this issue.

When entering a new position from a flattened state on the Sim101 account, the AvgPrice is not correct, and is almost 10 points off. This results in erroneous PnL information while still in the position.

I did receive an error when entering the position: "Order has exceeded available account equity. Please reduce order size...". If this is causing the problem, shouldn't ninja recognize this condition and still be able to calculate an avg price based on the contracts it allows to enter the position?

Would this behavior be the same in a live account?

It's very confusing to see the average price and PnL so far off when trading using chart trader.

Thanks for your help and any suggestions you may have.
Attached Images
File Type: gif NinjaAvgPrice.png (37.7 KB, 8 views)
Last edited by RogBear; 07-11-2012 at 12:22 PM.
RogBear is offline  
Reply With Quote
Old 07-11-2012, 12:24 PM   #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

Hi RogBear,

Best would be to retest this same scenario while having sufficient account balance in your sim account. Resetting a simulation account will clear all historical trade data from this account. Please follow the instructions below to reset a simulation account.

From the NinjaTrader Control Center window select the menu Tools > Options
Select the "Simulator" tab
Press the "Reset" button

Positon average price can vary based on this setting under Tools > Options > Data tab. I suggest trying with that setting on / off to see the impact when scaling into positions.
Use FiFo for Position Average Price calculations.

We can check your diagnostic files to see the sequence that lead to this: Please send using Help > Mail to support feature and include reference to this thread.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 07-11-2012, 12:45 PM   #3
RogBear
Junior Member
 
Join Date: Apr 2011
Posts: 11
Thanks: 4
Thanked 0 times in 0 posts
Default

Thanks Ryan,

I did not mean to imply that I ALWAYS get the wrong entry (avg) price. As far as I know, it only happens when I try to trade too many contracts for the account and get that error. I was wondering if the same thing would happen in a live account, since in my mind, that could be dangerously misleading. I will send the log files in case they help.
RogBear is offline  
Reply With Quote
Old 07-11-2012, 12:57 PM   #4
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

Thanks. I'll see if I can reproduce that here with insufficient sim balance. If it only happens when you run out of sim money, it's not the type of issue you would see in live trading.

For live trading unrealized PnL we rely on the execution prices reported by the connection API. We aren't aware of any current issues in this area. Some providers do supply the position average price value (seen on positions tab).
Last edited by NinjaTrader_RyanM; 07-11-2012 at 01:06 PM.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 07-11-2012, 01:27 PM   #5
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

Thanks for sending in your diagnostic files. This happened after the rejection, and then you reset your sim account. Basically, if you run out of sim balance, then you can't rely on any of the reporting unless you start completely over, by resetting trade history.

I suggest providing sufficient value in the initial cash value field under simulator options so that you're less likely to run into this.
Attached Images
File Type: png sim.png (47.2 KB, 5 views)
NinjaTrader_RyanM is offline  
Reply With Quote
The following user says thank you to NinjaTrader_RyanM for this post:
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
Entry at Incorrect Time Zeos6 Strategy Development 4 06-07-2011 04:21 PM
Incorrect entry bbucha_stk Automated Trading 3 01-27-2011 08:15 AM
Incorrect entry shown on one market jtrade SuperDOM and other Order Entry Windows 7 08-30-2010 03:12 AM
Incorrect entry price displayed in SuperDOM EuroFX Miscellaneous Support 2 09-24-2006 01:34 PM
Incorrect position entry on SIM EuroFX Miscellaneous Support 12 09-24-2006 01:33 PM


All times are GMT -6. The time now is 08:33 AM.