Yet another order_target_percent
question, but this time it may not have to do with open orders! =)
If my portfolio starts out with 50% APPL and 50% NFLX, and i place an order_target_percent(symbol('AAPL'), 1.0)
, should the system implicitly sell ALL NFLX shares? This question goes for Live Trading with IB too since order_target_percent
seems to make a single IB API call which then relies on IB's black magic to balance out the portfolio. This example question assumes the order is placed in the morning on a trade day, and no other orders are called that day.
I'm not seeing this NFLX sale happen, but it's possible that the orders are staying open for the whole day and then being cancelled at the end of day...leaving a few shares of NFLX remaining.
Similarly, if I started out with the same conditions above (50/50), and then placed an order_target_percent
order for 25% each of INTL, CSCO, GOOG, and TSLA, should that then implicitly sell ALL APPL and NFLX to make room for these new stocks?