Thanks, but none of your links is a usable connection status flag or similar function. But if you still find one, please post it here. I know that it is difficult.

FXCM does not detect interruptions, only logouts or server outages on their side. The LastErrorCode by MT4 can return ERR_NO_CONNECTION when sending an order. But it's no good idea to send orders for testing the connection status.