yes, you pretty much got how it works, once you took a position, your maintenance margin becomes important (don't have the exact figure here for IB), if you go below that IB closes your position (IB doesn't do margin calls). Also at the close IB goes to overnight margins which are twice as high...