Interactive Brokers has a setting to choose which positions to liquidate last on a margin call. Is it possible to configure this in a QuantConnect algortihm for both a backtest and live trading? Essentially, what I'd like to do is have some control over which positions get liquidated in the event of a margin call.

Author