Your Market-On-Closer (MOC) or Limit-On-Close (LOC) order is given to the NYSE at 15:45 EST if the NYSE is the Primary exchange. If the Nasdaq is the Primary exchange, your MOC order is given to Nasdaq (Island) at 15:50 EST, while your LOC order is given to Nasdaq (Island) at 15:55 EST. After these times you will not be allowed to modify or cancel the MOC or LOC order.
For more information on these order types along with exceptions, please visit the Market-On-Close and Limit-On-Close pages on the IBKR website.