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 04-08-2010, 08:51 AM   #1
ryarom
Junior Member
 
Join Date: Nov 2008
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
Default Order Rejection warning window

Hi, everyone.
I am developing very simple market making strategy using unmanaged order functionality in NT7.
Everything is working fine when testing on Market Replay. However, when connected to real-time IB order rejection windows start popping up: "can't modify order when in it is filled". Even before i modify the order i check if it fills or not, still have this problem. I don't mind to have this order rejection, but those warning windows slow down significantly the performance and some time freeze the whole computer.
Can you please make this warning windows OPTIONAL in the next beta release. Otherwise, I can't use NT for this strategy.
I was also trying to avoid modify through cancel/submit, but on the fast moving market it creates so many new orders in one direction, that IB reject them, even ignoring my cancellations.
ryarom is offline  
Old 04-08-2010, 10:26 AM   #2
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,232
Thanks: 83
Thanked 334 times in 326 posts
Default

Hello ryarom,

Can you please tell me how these pop up messages are displayed. Send me a screenshot of such an error if possible.

If these are TWS pop up windows, you can suppress them by enabling 'Run-time pop up handling' in the IB connection.
http://www.ninjatrader.com/webnew/su...ivebrokers.htm
NinjaTrader_Jason is offline  
Old 04-08-2010, 10:42 AM   #3
ryarom
Junior Member
 
Join Date: Nov 2008
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
Default

This is not IB's message window, this is NT7 warning window.
Where should i send the screenshot?
ryarom is offline  
Old 04-08-2010, 10:51 AM   #4
zweistein
Senior Member
 
Join Date: Jan 2009
Posts: 584
Thanks: 2
Thanked 21 times in 12 posts
Default

You can write your own code to suppress the NT Message windows.
I have done so and I send the content to the log, but I check every 30 s for the existence of a NT Message and then I close it.

Regards

Andreas

www.zweisteintrading.eu


P.S. I would re-think the order logic. The IB warnings make sense and your code should avoid those situations.
Last edited by zweistein; 04-08-2010 at 10:53 AM.
zweistein is online now  
Old 04-08-2010, 11:03 AM   #5
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,232
Thanks: 83
Thanked 334 times in 326 posts
Default

Hello ryarom,

I will forward your suggestion to have an option to suppress such windows by default to our development team.

Thank you for your feedback.
NinjaTrader_Jason is offline  
Old 04-08-2010, 11:17 AM   #6
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

ryarom,

If you do not want NT to do any error handling you can use this:

RealtimeErrorHandling = RealtimeErrorHandling.TakeNoAction

Please be aware that you should only use this with extreme caution. Using this means you have to self program logic for all error handling. Should you not provide error handling yourself it could have extreme negative impact on your trading account should things go awry with your orders.
NinjaTrader_Josh is offline  
Old 04-08-2010, 12:16 PM   #7
ryarom
Junior Member
 
Join Date: Nov 2008
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks, everyone for your input.
RealtimeErrorHandling = RealtimeErrorHandling.TakeNoAction option is not helping. It just allows to run the strategy if order is rejected. But windows are still popping up.

About new logic of order handling? I don't see any more choices: cancel/resubmit will create big number of orders in one derection in fast moving market, causing appearing another warning windows ( "too many orders in one direction) and modify orders will create many popup windows. So i want to go with the latter, since it less messages to the server and if there is option to suppress those windows.

I will appreciate any suggestions
ryarom is offline  
Old 04-08-2010, 02:01 PM   #8
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Right, but the strategy continues to run despite being informed so it won't stop you from trading. If this was not what you were looking for, can you please clarify? Thank you.

I am not sure what you mean by "new logic of order handling"? Can you please clarify this as well? Thanks.
NinjaTrader_Josh is offline  
Old 04-08-2010, 02:12 PM   #9
ryarom
Junior Member
 
Join Date: Nov 2008
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
Default

Strategy continue to run, but hundreds of warning windows make the program freeze, sometimes even the whole computer.
So i can't turn off the strategy, performance and position numbers in the strategy tab become wrong.
ryarom is offline  
Old 04-08-2010, 04:56 PM   #10
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

ryarom,

If you are getting hundreds of popups this is probably indicative of some improper strategy logic that needs to be reprogrammed as zweistein has pointed out. Removing the popups does not remove the underlying issue of your strategy simply sending improper orders constantly.
NinjaTrader_Josh is offline  
Old 04-08-2010, 09:17 PM   #11
ryarom
Junior Member
 
Join Date: Nov 2008
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
Default

Dear Josh,
I put the depth on both sides, meaning on bid side i have 5 orders one tick apart and on the other (ask side) one tick apart. On execution event and market data (bid or ask change) event i reconstruct my order book. Since the order book can be swept, but execution event is coming one by one , and even if I check:
if ( (book[idx] == null) ||( (book[idx].OrderState == OrderState.Filled || book[idx].OrderState == OrderState.Cancelled
|| book[idx].OrderState==OrderState.PendingCancel || book[idx].OrderState==OrderState.Rejected)))
{ book[idx]= SubmitOrder}
else
{
ChangeOrder(book[idx],......)
}
the order have been already filled, but this check above didn't catch that, So changeorder causes PopUp window to appear.

Hundreds windows appears because strategy works 12 hours unattended. Can you please advise how can i implement this the other way. I tried to use cancel and submitnew instead of change the orders, but as i said before, it dramatically increases the number of messages and also causing huge number of orders even if i try to cancel them. In both ways computer freezes, but in case of change it is more stable but still performance is terrible.
As i also said this happens in the fast moving market, but no problem when i use it in MarketReplay.
ryarom is offline  
Old 04-09-2010, 10:23 AM   #12
ryarom
Junior Member
 
Join Date: Nov 2008
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
Default

Josh, sorry.
Any comments on my previous post?
ryarom is offline  
Old 04-09-2010, 12:28 PM   #13
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

ryarom,

With such logic you would definitely run into a lot of inflight execution issues. All I can suggest is for you to reconsider trying to resubmit orders so close to the market. With inflight executions you would definitely get those popups. I put your request for disabling the popups on our feedback list, but there is currently no way you can disable them.
NinjaTrader_Josh 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
Default, Order Event Warning tooearly Automated Trading 1 06-17-2009 06:05 AM
Order Event Warning John833 Strategy Development 4 12-19-2008 10:13 AM
"Failure to verify license" warning window choices Wataizo Miscellaneous Support 1 02-26-2008 06:59 AM
Order Event Warning Moda1 Miscellaneous Support 4 02-14-2008 09:44 AM
Pop up rejection order message...... Angel Connecting 3 10-01-2007 06:58 AM


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