Recent content by flying_dutchman

  1. F

    How to reverse a position in a bracket order when profit taker is hit?

    Thanks! That's what I was hoping for...I'll have to test it first in a paper account just to confirm. I'm thinking I can stimulate a bracket order by applying the execution condition on 2 "child" orders in an oca group that won't be active until the "parent" one has been executed. Advantage of...
  2. F

    How to reverse a position in a bracket order when profit taker is hit?

    I'm starting to realize that...when I try to write trading code that's readable, re-usable, etc. it actually does the opposite. I've given up on applying "best practices" to trading code. Side comment: do you happen to know how the execution condition work...
  3. F

    How to reverse a position in a bracket order when profit taker is hit?

    Yup, that's exactly it. I'm developing an automated trading bot. Basically, I'd like to put as much of the order management on IB's servers as much as possible, rather than having my bot run multiples times of the day and/or monitor the market in real time. Ideally, I would submit all orders...
  4. F

    How to reverse a position in a bracket order when profit taker is hit?

    You make it sound like most people don't short stocks. Is this true? I don't have as much trading experience as you do so I don't know. I would be shorting large cap stocks. No way I would short something like GME or something else with small volume.
  5. F

    How to reverse a position in a bracket order when profit taker is hit?

    Hm what condition type are you referring to? I'm familiar with the price and time conditions. Ideally, I would like to put a single order (sell limit for 20 shares) instead of 1 order to close the long position, and another to open the short position. Fewer orders would lower commission costs.
  6. F

    How to reverse a position in a bracket order when profit taker is hit?

    I tried that already and it didn't work. In a bracket order, the parent and child orders all need to have the same quantity. I also want to submit the original order to open the long position, the take profit order, and the order to reverse the position all in a single group without manual...
  7. F

    How to reverse a position in a bracket order when profit taker is hit?

    Right but I want to do it as a group, in an automated fashion. So if the order to sell 10 long shares does not execute for whatever reason, I don't want to execute the order that go 10 shares short. I tested making the order to sell 10 long shares the parent of the order to go 10 shares short...
  8. F

    How to reverse a position in a bracket order when profit taker is hit?

    It's a bracket order. https://www.interactivebrokers.com/en/trading/orders/bracket.php Parent is the main order. In a typical bracket order, the child orders is 1 take profit order and 1 stop loss order. When the parent order gets filled, the child orders begin "active". When one child order...
  9. F

    How to reverse a position in a bracket order when profit taker is hit?

    If I understand you correctly, you're saying create a parent order with a child order to sell 10 shares. Then a child of that child to sell 10 shares? Doh, I don't know why I didn't think of this...they all have the same quantity so this might work.
  10. F

    How to reverse a position in a bracket order when profit taker is hit?

    Hope everyone is having a nice holiday weekend. Let's say I have a long position in APPL with 10 shares and the current price is 100. When the price is 110, I want to not only take profit (selling my 10 shares) but also immediately be short 10 shares in the same symbol, reversing my position...
  11. F

    Rules for MOC orders

    I think you're right. I dug into the rule books for both NYSE Arca and NYSE and this is what I found: For NYSE Arca, the closing auction imbalance freeze begins 1 minute before scheduled time for closing auction. During this period, cancellation of MOO/LOO orders are rejected. Orders entered...
  12. F

    Rules for MOC orders

    Ah okay so there's no guarantee your MOC order will be executed if you submit it after 15:50. Thank you.
  13. F

    Rules for MOC orders

    Yup, that was a typo. MOC, not MOO. Sorry about that.
  14. F

    Rules for MOC orders

    True but the IB link referred to the rules as "NYSE markets rules" not "IB rules". I sent IB a message about this last week but they still haven't gotten back to me. Are they more responsive via phone than messaging in the portal?
Back
Top