NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 02-11-2008, 01:43 PM   #1
woodside
Member
 
Join Date: Sep 2007
Posts: 72
Thanks: 0
Thanked 0 times in 0 posts
Default issues with stop limit orders

I am having the following issue.

I user enterlongstoplimit and entershortstoplimit orders. I'm getting the following errors. I believe it happens when the stop portion of the order gets hit, but the limit doesn't and my strategy tries to reset the order. (with MBT).


Quote:
Strategy 'RegressionStop' submitted an order that generated the following error 'UnableToChangeOrder'. Strategy has sent cancel requests
Replace rejected for reason: General Order Replace Error Affected Order: Buy 1 StopLimit @ 12230 x 12224


For the error above, if the price touches 12230, it sets a limit order at 12224. The limit order isn't filled and my strategy tries to reset the stop and limit amounts to different values.

Is this a bug, or am I doing something wrong? Would it be possible to have a "simulated" value for stoplimitorders where the stop portion would be simulated and if touched would just send a limit order?

-Erik
Last edited by woodside; 02-11-2008 at 01:54 PM.
woodside is offline  
Reply With Quote
Old 02-11-2008, 02:02 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
Default

Could you send via Help > Mail To Support a message and include in the subject "For Dierk" and reference this post.

We will check into this. Thanks.
NinjaTrader_Ray is offline  
Reply With Quote
Old 02-11-2008, 02:09 PM   #3
woodside
Member
 
Join Date: Sep 2007
Posts: 72
Thanks: 0
Thanked 0 times in 0 posts
Default

Email sent.

I had the same strategy running on an account at MBT and an account at IB, the strategy on MBT errored and quit, the IB one placed the order and completed properly.

-Erik
woodside is offline  
Reply With Quote
Old 02-12-2008, 09:43 AM   #4
woodside
Member
 
Join Date: Sep 2007
Posts: 72
Thanks: 0
Thanked 0 times in 0 posts
Default

Apparently this is an issue with MBT with no workaround other than not using stoplimit orders or managing orders manually with 6.5 order handling.

I requested to Dierk that a "simulated" value gets added to the stoplimit orders where the stop is simulated via NT, then just regular limit orders get sent.

Just updating this thread in case anyone else comes across this issue.

This is an MBT issue, the strategy works fine on IB.

-Erik
woodside is offline  
Reply With Quote
Old 02-12-2008, 09:45 AM   #5
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Potential work arounds:
- use stop market instead of stop limit
- turn off strategy error handling and apply custom handling for order status events
NinjaTrader_Dierk is offline  
Reply With Quote
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
Stop Limit orders... pgabriel SuperDOM and other Order Entry Windows 16 03-14-2008 02:19 PM
Stop or Limit Orders? davidfw1866 ATM Strategies (Discretionary Trading) 3 11-07-2007 03:01 PM
Stop Limit Orders jeremymgp Strategy Development 1 08-12-2007 11:25 PM
Negative Limit - Stop Limit Entry Orders biswar Automated Trading 1 10-18-2005 12:58 AM
Targets - Stop Orders or Stop Limit Orders? Nereus ATM Strategies (Discretionary Trading) 3 05-31-2005 07:13 AM


All times are GMT -6. The time now is 05:54 PM.