I'm planning to open an account with IB. I talked to them on the phone and they said I need a minimum of $25K to be able to trade frequently (the day trader rule of 4 or more trades in 5 business days). They also mentioned that if your balance falls below $25K the system will stop trading because the account becomes non-day-trader and will keep the open orders until the current orders are settled.

I would like to understand how QC Lean deals with such situations. For instance if your algo makes enough loss that the account falls below $25K what will happen to the rest of the orders that were submitted before that moment? will they go to a queue and wait for the settlement the next (or two) business day(s)? do they just get rejected from execution by Lean? or the algo crashes with a Runtime Error?