How come the code you posted is missing this stuff that's mentioned in the docs?
List<Order> bracketOrder = new List<Order>(); bracketOrder.Add(parent); bracketOrder.Add(takeProfit); bracketOrder.Add(stopLoss); return bracketOrder;