An interesting inquiry regarding TWS

Discussion in 'Interactive Brokers' started by Petya, Sep 15, 2023.

  1. Petya

    Petya

    I wonder if i can instruct TWS to, let's say, sell my position of a company's stocks when a certain moving average is touched on the same stock's chart?

    I vaguely remember that I could do that with StreetSmartEdge, but i just can't seem to find an option for the same thing in TWS. Maybe someone can shed some light on this issue?

    Thanks!
     
  2. Petya likes this.
  3. Petya

    Petya

    Well, it looks like it. Although a bit cumbersome, I will give it a shot if there's no other (easier) way to instruct TWS to sell my position once it touches the 50 day EMA.
     
  4. I use the API for those triggers, give me a shout if you need anything with that.
     
  5. Petya

    Petya

    To be frank, i don't feel confident enough to get into writing codes and stuff. I just basically want to set up a bracket order and instruct IBKR to perform a profit-taker order once the price reaches the 9 day EMA. The other side of my bracket order would be a simple limit order.

    Wonder if I can set up a bracket order like that...?
     
  6. Bracket orders have a parent, a stop and a limit target order. If they are all limit orders, actions on the parent will propagate to the children. Normally you send the bracket order without submitting it, just to let the router know about your order, and once it is recorded submit the parent and all orders will be submitted in cascade.
     
  7. Petya

    Petya

    Yup, that's all clear to me. I want my profit-taker to be a market order that activates when the 9 day EMA is reached and my stop-loss will be a plain limit order. I guess I wasn't entirely clear about my intentions. Thank you for the feedback.