NexusFi: Find Your Edge


Home Menu

 





OCO orders, Ninja and IB


Discussion in Brokers

Updated
    1. trending_up 2,661 views
    2. thumb_up 1 thanks given
    3. group 1 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

OCO orders, Ninja and IB

  #1 (permalink)
 asiaexpat 
Chiang Mai Thailand
 
Experience: Intermediate
Platform: NT
Broker: IB/IB, AMP/CQG
Trading: ES
Posts: 129 since Feb 2013
Thanks Given: 23
Thanks Received: 53


NinjaTrader View Post
The statements above are inaccurate. With the exception of our "Simulated Stop" orders which is an optional feature in NinjaTrader, orders are not virtual but submitted to the broker/exchange.

I just posted an official response on this topic here in post #7 -

I was in a trade last night when the market closed-- totally my fault for not knowing in advance but thats besides the point. Anyway all of the sudden ninja announced "ordered cancelled'' I didnt know what happened. My stop and targets were gone from chart trader and I had no idea what happened to my position. Looked in TWS and sure enough i was naked 2 contracts of YM. So my atm stop and target were somehow cancelled by ninja when the market closed.

Spent an hour on live chat with IB and finally was able to use TWS to create an OCO that bracketed my position.

Lessons learned-- be aware of market closing times--this was a holiday--normally the market would not close at 11:30 --but NY was closed already for holiday.


Use TWS OCO to protect against possible naked positions. Actually its not a bad way do to an overnight trade.

Question--If my original order from Ninja was an OCO order would it have been cancelled when market closed or would it have stayed on the server??


happy ending--woke in morning to find my target filled

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
About a successful futures trader who didnt know anythin …
Psychology and Money Management
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #2 (permalink)
 
NinjaTrader's Avatar
 NinjaTrader  NinjaTrader is an official Site Sponsor
Site Sponsor

Web: NinjaTrader
AMA: Ask Me Anything
Webinars: NinjaTrader Webinars
Elite offer: Click here
 
Posts: 1,714 since May 2010
Thanks Given: 203
Thanks Received: 2,686


asiaexpat View Post

Question--If my original order from Ninja was an OCO order would it have been cancelled when market closed or would it have stayed on the server??


happy ending--woke in morning to find my target filled

By default with IB, NinjaTrader will submit OCO orders that reside on their server. You can check your NinjaTrader logs to see if this was in fact the case with your cancelled orders since you would not see a "Pending Cancel" order state for those cancelled orders.

Follow me on Twitter Reply With Quote
  #3 (permalink)
 asiaexpat 
Chiang Mai Thailand
 
Experience: Intermediate
Platform: NT
Broker: IB/IB, AMP/CQG
Trading: ES
Posts: 129 since Feb 2013
Thanks Given: 23
Thanks Received: 53



NinjaTrader View Post
By default with IB, NinjaTrader will submit OCO orders that reside on their server. You can check your NinjaTrader logs to see if this was in fact the case with your cancelled orders since you would not see a "Pending Cancel" order state for those cancelled orders.

here is an excerpt from my logs at the time of "order cancellation"

i removed acct numbers etc... Im not sure what it means but I know that my stop and target were cancelled without my intervention

Type=StopLimit Filled=0 Fill price=0 Error=NoError Native error=''
5/27/2013 10:33:41 PM|1|32|Order= Name='Target1' New state=PendingChange Instrument='YM 06-13' Action=Sell Limit price=15328 Stop price=0 Quantity=2 Type=Limit Filled=0 Fill price=0 Error=NoError Native error=''
5/27/2013 10:33:41 PM|1|32|Order=' Name='Target1' New state=Accepted Instrument='YM 06-13' Action=Sell Limit price=15328 Stop price=0 Quantity=2 Type=Limit Filled=0 Fill price=0 Error=NoError Native error=''
5/27/2013 10:33:41 PM|1|32|Order=' Name='Target1' New state=Working Instrument='YM 06-13' Action=Sell Limit price=15328 Stop price=0 Quantity=2 Type=Limit Filled=0 Fill price=0 Error=NoError Native error=''
5/27/2013 10:35:03 PM|1|32|Order= Name='Stop1' New state=Cancelled Instrument='YM 06-13' Action=Sell Limit price=15301 Stop price=15321 Quantity=2 Type=StopLimit Filled=0 Fill price=0 Error=NoError Native error='Order Canceled - reason: (202)'
5/27/2013 10:35:06 PM|1|32|Order=' Name='Target1' New state=Cancelled Instrument='YM 06-13' Action=Sell Limit price=15328 Stop price=0 Quantity=2 Type=Limit Filled=0 Fill price=0 Error=NoError Native error='Order Canceled - reason: (202)'

excuse my ignorance on all of this- im still new to this

Started this thread Reply With Quote
  #4 (permalink)
 
NinjaTrader's Avatar
 NinjaTrader  NinjaTrader is an official Site Sponsor
Site Sponsor

Web: NinjaTrader
AMA: Ask Me Anything
Webinars: NinjaTrader Webinars
Elite offer: Click here
 
Posts: 1,714 since May 2010
Thanks Given: 203
Thanks Received: 2,686


asiaexpat View Post
here is an excerpt from my logs at the time of "order cancellation"

i removed acct numbers etc... Im not sure what it means but I know that my stop and target were cancelled without my intervention

Type=StopLimit Filled=0 Fill price=0 Error=NoError Native error=''
5/27/2013 10:33:41 PM|1|32|Order= Name='Target1' New state=PendingChange Instrument='YM 06-13' Action=Sell Limit price=15328 Stop price=0 Quantity=2 Type=Limit Filled=0 Fill price=0 Error=NoError Native error=''
5/27/2013 10:33:41 PM|1|32|Order=' Name='Target1' New state=Accepted Instrument='YM 06-13' Action=Sell Limit price=15328 Stop price=0 Quantity=2 Type=Limit Filled=0 Fill price=0 Error=NoError Native error=''
5/27/2013 10:33:41 PM|1|32|Order=' Name='Target1' New state=Working Instrument='YM 06-13' Action=Sell Limit price=15328 Stop price=0 Quantity=2 Type=Limit Filled=0 Fill price=0 Error=NoError Native error=''
5/27/2013 10:35:03 PM|1|32|Order= Name='Stop1' New state=Cancelled Instrument='YM 06-13' Action=Sell Limit price=15301 Stop price=15321 Quantity=2 Type=StopLimit Filled=0 Fill price=0 Error=NoError Native error='Order Canceled - reason: (202)'
5/27/2013 10:35:06 PM|1|32|Order=' Name='Target1' New state=Cancelled Instrument='YM 06-13' Action=Sell Limit price=15328 Stop price=0 Quantity=2 Type=Limit Filled=0 Fill price=0 Error=NoError Native error='Order Canceled - reason: (202)'

excuse my ignorance on all of this- im still new to this

Thanks. The order cancellations were initiated by IB or, to put it another way. NinjaTrader did not initiate the cancellation. When NinjaTrader initiates a cancel, it logs a state=PendingCancel (that shows up in the log) right before a cancel request is sent to the broker. When we don't see this state, that means that broker initiated the cancel.

Follow me on Twitter Reply With Quote
Thanked by:
  #5 (permalink)
 asiaexpat 
Chiang Mai Thailand
 
Experience: Intermediate
Platform: NT
Broker: IB/IB, AMP/CQG
Trading: ES
Posts: 129 since Feb 2013
Thanks Given: 23
Thanks Received: 53


NinjaTrader View Post
Thanks. The order cancellations were initiated by IB or, to put it another way. NinjaTrader did not initiate the cancellation. When NinjaTrader initiates a cancel, it logs a state=PendingCancel (that shows up in the log) right before a cancel request is sent to the broker. When we don't see this state, that means that broker initiated the cancel.

Ok I suppose I have to take this up with IB to see why they cancelled my order.

Started this thread Reply With Quote
  #6 (permalink)
 
Jigsaw Trading's Avatar
 Jigsaw Trading  Jigsaw Trading is an official Site Sponsor
 
Posts: 2,988 since Nov 2010
Thanks Given: 831
Thanks Received: 10,393

I use these with IB & Ninja every day. It's usually very solid.

If you have any questions about the products or services provided, please send me a Private Message or use the futures.io " Ask Me Anything" thread
Visit my NexusFi Trade Journal Reply With Quote




Last Updated on May 29, 2013


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts