On Wednesday, March 23, 2011 4:56:20 AM UTC-4, Klaus wrote: > > I am no exactly sure what brings JBT to a > stall, if a order > is rejected due to too small account size, but I am worried that > this might > hint to a deeper problem that JBT is not stable if unusual or > unexpected > results come from from IB (or the expected and the real IB > behavior fall apart). > > JBT has a mechanism which prevents two orders (from two different strategies) being submitted for execution at the same time. The reason for this restriction is the IB's enforcement of the SEC rule which makes it illegal to "trade with yourself". Specifically, if you simultaneously submit two orders to buy and sell the same security, IB server will reject both orders. To avoid this eventuality, when an order is submitted, JBT sets a "order pending" flag, and will wait for that order execution before it submits any other orders. Now, what happens when you have an insufficient account size is that your order will be rejected, so JBT will wait for an execution indefinitely, and all other strategies will be prevented from trading even if they have open positions.
Handling of these rejections due to insufficient account size can be tricky. So I'd say the best way to deal with it is to make sure you don't go beyond the margin limits. -- You received this message because you are subscribed to the Google Groups "JBookTrader" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jbooktrader?hl=en.
