NexusFi: Find Your Edge


Home Menu

 





Outage with a live position on Ninja (yikes) what to do?


Discussion in Traders Hideout

Updated
      Top Posters
    1. looks_one mattz with 10 posts (2 thanks)
    2. looks_two Big Mike with 9 posts (6 thanks)
    3. looks_3 Fat Tails with 5 posts (10 thanks)
    4. looks_4 NinjaTrader with 5 posts (2 thanks)
      Best Posters
    1. looks_one Fat Tails with 2 thanks per post
    2. looks_two ThatManFromTexas with 1.7 thanks per post
    3. looks_3 traderwerks with 1.5 thanks per post
    4. looks_4 Big Mike with 0.7 thanks per post
    1. trending_up 20,760 views
    2. thumb_up 29 thanks given
    3. group 9 followers
    1. forum 43 posts
    2. attach_file 0 attachments




 
Search this Thread

Outage with a live position on Ninja (yikes) what to do?

  #31 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


traderwerks View Post
This is from my understanding on how Ninja/Zen handles OCO. I don't know about Rithmic, CQG

The OCO is about the cancel and where it resides. Here is an example

Say I want to go long the TF @795.0 , with a 20 tick profit and 5 tick stop loss, and the market is at 800.0

The first order is a limit order @795.0 (Order #1 ). This goes to the exchange. When you are filled,
Ninja sends two more orders. SELL LIMIT 797.0 (#2) and BUY STOP @794.5 (#3) You now have two
orders at the exchange.

Now the market rallies and your order #2 ( sell limit ) gets hit @797.0. There is only order #3 left in the market ( naked ).

On Ninja/Zen, your PC will send the cancel order for #3, with IB, once the order is hit, IB would cancel the remaining order even if your PC was not on at the time.

Correct.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
How to apply profiles
Traders Hideout
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
26 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #32 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102

Contingent orders (CO) and contingent multiple orders (CMO) are orders, whose execution or cancellation depends upon the execution of another order.

OCO orders are a common case, where a limit order (profit target) is linked to stop or stop limit order (stop loss). If one of the orders is executed, the other one will automatically be cancelled.

In most cases OCO orders are not native exchange orders, but the OCO functionality is controlled by the trading front-end or the broker. This is the check list to be followed:

(1) You enter an OCO order into your trading front-end, for example NinjaTrader

(2) If the Broker supports OCO and if the NinjaTrader/Broker API supports OCO (!), then the limit order, the stop order and the instruction to cancel one of them if the other is executed, will be transmitted to the broker.
Otherwise NinjaTrader will only send a limit and a stop order.

(3) If the condition (2) is true and the exchange natively supports OCO, and if the broker/exchange interface supports OCO(!), then the broker will transmit the limit order, the stop order and the instruction to cancel one of them if the other is executed to the exchange. Otherwise the broker will simply send unconditional limit and stop orders to the exchange.

The OCO functionality can only be guaranteed, if it is sitting in the exchange. If it is simulated by the broker or by NinjaTrader, there is always the possibility that the second leg of the OCO order is hit, before it can be removed. This is particularly true, if the two bracket orders are close to each other.


Which Exchanges Support Native OCO ?

I do not think that CME or ICE support OCO orders. The only exchange for which I know that OCO orders are accepted is EUREX.

Eurex - One-Cancels-the-Other ([AUTOLINK]OCO[/AUTOLINK]) Order

I bet that most of the brokers keep the OCO functionality on their servers, even if they could send it to the exchange. Guess it is too expensive to program the interface with the exchange required to transmit the OCO logic. For example, CQG does not send OCO to EUREX. I must admit that I even don't know whether Interactive Brokers sends an OCO order to EUREX or just a limit and a stop order, then cancelling the order from their servers, when one of them is triggered.

Reply With Quote
  #33 (permalink)
 FGBL07 
Oberhausen, Germany
 
Experience: Advanced
Platform: Sierracharts
Broker: Interactive Brokers/DTN IQFeed
Trading: Bund Future
Posts: 277 since Aug 2011
Thanks Given: 100
Thanks Received: 311


Thanks Fat Tails for this link to Eurex.

Does this mean Eurex offers this functionality via their API or their GUI only?

Because of the different scenarios discussed here I have opted (a long time ago) to not use OCO orders. I'm not using NinjaTrader.

I submit opening orders along with an attached Stop-Loss (Market) order. The SL-order is a native order and will reside on the Exchange servers (Eurex).

Target is managed on my PC, when it is hit (or I opt to click a different price) an order will be submitted.

Yes, I experience slippage due to using market orders but I accept that.

Follow me on Twitter Reply With Quote
  #34 (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,713 since May 2010
Thanks Given: 203
Thanks Received: 2,686


Big Mike View Post
Ray,

I am confused. Looking at your document:

Where do your orders reside? - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Only TDA and IB are native OCO. So let's talk about Zen Fire or Rithmic, CQG, and TT since that accounts for 99% of people on the forum.

When using Zen Fire, Rithmic, CQG or TT - and you have a stop and target defined in your ATM, are those two OCO native exchange orders?

Mike

ALL orders submitted by NinjaTrader are passed through to the broker/exchange with the exception of our optional simulated stop orders which a user would purposely select. If a set of orders have OCO functionality attached (such as our ATM stops/targets) then for IB and TDA, the OCO functionality resides on their servers otherwise the OCO functionality resides on NinjaTrader.

Follow me on Twitter Reply With Quote
  #35 (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,713 since May 2010
Thanks Given: 203
Thanks Received: 2,686


Fat Tails View Post
Contingent orders (CO) and contingent multiple orders (CMO) are orders, whose execution or cancellation depends upon the execution of another order.

OCO orders are a common case, where a limit order (profit target) is linked to stop or stop limit order (stop loss). If one of the orders is executed, the other one will automatically be cancelled.

In most cases OCO orders are not native exchange orders, but the OCO functionality is controlled by the trading front-end or the broker. This is the check list to be followed:

(1) You enter an OCO order into your trading front-end, for example NinjaTrader

(2) If the Broker supports OCO and if the NinjaTrader/Broker API supports OCO (!), then the limit order, the stop order and the instruction to cancel one of them if the other is executed, will be transmitted to the broker.
Otherwise NinjaTrader will only send a limit and a stop order.

(3) If the condition (2) is true and the exchange natively supports OCO, and if the broker/exchange interface supports OCO(!), then the broker will transmit the limit order, the stop order and the instruction to cancel one of them if the other is executed to the exchange. Otherwise the broker will simply send unconditional limit and stop orders to the exchange.

The OCO functionality can only be guaranteed, if it is sitting in the exchange. If it is simulated by the broker or by NinjaTrader, there is always the possibility that the second leg of the OCO order is hit, before it can be removed. This is particularly true, if the two bracket orders are close to each other.


Which Exchanges Support Native OCO ?

I do not think that CME or ICE support OCO orders. The only exchange for which I know that OCO orders are accepted is EUREX.

Eurex - One-Cancels-the-Other ([AUTOLINK]OCO[/AUTOLINK]) Order

I bet that most of the brokers keep the OCO functionality on their servers, even if they could send it to the exchange. Guess it is too expensive to program the interface with the exchange required to transmit the OCO logic. For example, CQG does not send OCO to EUREX. I must admit that I even don't know whether Interactive Brokers sends an OCO order to EUREX or just a limit and a stop order, then cancelling the order from their servers, when one of them is triggered.

@Fat Tails,

Thanks for this post. Everyone on this thread talks about cancellation but OCO (from NinjaTrader perspective) needs to more than that. It's also about proportional order quantity reduction on partial fills. For example, 2 lot OCO stop/target orders working. The target limit order gets a partial fill of 1. Any technology partner that we support for OCO must also have proportional quantity reduction which would then reduce the stop order to a quanty of 1. NinjaTrader's client side OCO simulation does exactly this as does IB and TDA. The risk in not doing this is that if the market travels back to your stop you will now find yourself in an opposition position with a quanity of 1 with only 1/2 protected.

Follow me on Twitter Reply With Quote
Thanked by:
  #36 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,353


Fat Tails View Post
Contingent orders (CO) and contingent multiple orders (CMO) are orders, whose execution or cancellation depends upon the execution of another order.

OCO orders are a common case, where a limit order (profit target) is linked to stop or stop limit order (stop loss). If one of the orders is executed, the other one will automatically be cancelled.

In most cases OCO orders are not native exchange orders, but the OCO functionality is controlled by the trading front-end or the broker. This is the check list to be followed:

(1) You enter an OCO order into your trading front-end, for example NinjaTrader

(2) If the Broker supports OCO and if the NinjaTrader/Broker API supports OCO (!), then the limit order, the stop order and the instruction to cancel one of them if the other is executed, will be transmitted to the broker.
Otherwise NinjaTrader will only send a limit and a stop order.

(3) If the condition (2) is true and the exchange natively supports OCO, and if the broker/exchange interface supports OCO(!), then the broker will transmit the limit order, the stop order and the instruction to cancel one of them if the other is executed to the exchange. Otherwise the broker will simply send unconditional limit and stop orders to the exchange.

The OCO functionality can only be guaranteed, if it is sitting in the exchange. If it is simulated by the broker or by NinjaTrader, there is always the possibility that the second leg of the OCO order is hit, before it can be removed. This is particularly true, if the two bracket orders are close to each other.


Which Exchanges Support Native OCO ?

I do not think that CME or ICE support OCO orders. The only exchange for which I know that OCO orders are accepted is EUREX.

Eurex - One-Cancels-the-Other ([AUTOLINK]OCO[/AUTOLINK]) Order

I bet that most of the brokers keep the OCO functionality on their servers, even if they could send it to the exchange. Guess it is too expensive to program the interface with the exchange required to transmit the OCO logic. For example, CQG does not send OCO to EUREX. I must admit that I even don't know whether Interactive Brokers sends an OCO order to EUREX or just a limit and a stop order, then cancelling the order from their servers, when one of them is triggered.

@Fat Tails

Thanks for once again, going the extra mile to furnish well researched information instead of just an opinion!


But after reading all the posts ... my standard procedure in case of a disconnect with possible open orders will continue to be ;

1. Keep Broker trade desk phone number on speed dial, land line and cell.

2. Call immediately and scream ... "What the $%#@ is my %$#@-ing position ... YES ... flatten the $%#@-er?"

Just because you are paranoid... doesn't mean you are wrong....

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote
  #37 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,444 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,607


NinjaTrader View Post
ALL orders submitted by NinjaTrader are passed through to the broker/exchange with the exception of our optional simulated stop orders which a user would purposely select. If a set of orders have OCO functionality attached (such as our ATM stops/targets) then for IB and TDA, the OCO functionality resides on their servers otherwise the OCO functionality resides on NinjaTrader.

Thanks Ray. I did not mean to imply that profit target and stop loss orders were local. I knew they were at the exchange. But they are not exchange held OCO (instead requires client to be live and well in order to be cancelled).

As @Fat Tails pointed out, it seems that CME doesn't even support native OCO. I tried to disprove this (because, surely they do!!) but so far have been unable to do so. That amazes me a bit.

So the next best thing to exchange held OCO would be server held OCO (broker gateway server), as the likelihood of a client failure (software problem, internet problem, power problem, computer crash, etc) is far higher than a server problem. So it would be nice to see more brokers supporting server held OCO capabilities - other than just IB and TDA.



Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #38 (permalink)
 
mattz's Avatar
 mattz   is a Vendor
 
Posts: 2,493 since Sep 2010
Thanks Given: 2,441
Thanks Received: 3,791


Big Mike View Post
Tit seems that CME doesn't even support native OCO. I tried to disprove this (because, surely they do!!) but so far have been unable to do so. That amazes me a bit.
Mike

Back in the day....floor brokers/locals used to take OCOs and it was up to them to cancel it and it was a common practice to place it with them. However, they did say on a "non held basis" meaning that they will used best efforts but they don't guarantee cancellation of one side if the other is filled.

I was trying to say on page # 3 of this thread that OCO are not exchange held because the exchange does not want to take the responsibility for fast markets that could trigger both stop and limit.
As a last thing I would say this: In a really fast/volatile market BOTH stop and limit could trigger even if orders are held on a server!! that means from a risk management you still have to watch position and see the cancellation for yourself especially if stop and limit are tight and close to point of entry.

Trading futures and options involves substantial risk of loss and is not suitable for all investors. Past performance is not necessarily indicative of future results. You may lose more than your initial investment. All posts are opinions and do not claim to be facts. Please conduct your own due diligence. Use only Risk capital when trading Futures.
1 800 771 6748 local 561 367 8686 email [email protected]
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #39 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,444 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,607

If a market is moving that fast, then you are going to get killed using a client-based cancellation order. At least the broker gateway server should be only microseconds from the matching engine.

But I am guessing brokers don't want the responsibility either, just like Exchange. And since most people don't ask for it or demand it, then why bother.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #40 (permalink)
 
mattz's Avatar
 mattz   is a Vendor
 
Posts: 2,493 since Sep 2010
Thanks Given: 2,441
Thanks Received: 3,791



Big Mike View Post
But I am guessing brokers don't want the responsibility either, just like Exchange. And since most people don't ask for it or demand it, then why bother.
Mike

We don't control this technology
I try to
1) Inform
2) Support during down time
3) Give honest opinion based on customer needs.
What else could we do?

Trading futures and options involves substantial risk of loss and is not suitable for all investors. Past performance is not necessarily indicative of future results. You may lose more than your initial investment. All posts are opinions and do not claim to be facts. Please conduct your own due diligence. Use only Risk capital when trading Futures.
1 800 771 6748 local 561 367 8686 email [email protected]
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote




Last Updated on April 28, 2012


© 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