A situation in concurrent programming where two or more threads or processes each wait indefinitely for the other to release resources, so none can proceed. While MQL is mostly single-threaded, cBot developers using multiple threads must guard against deadlocks. In the context of trading, a deadlock might occur if two threads lock each other’s resources (e.g., one locks the trading context while another waits for it).