Greetings koningsvaren,
Welcome to the Apple Support Communities!
I understand that you connect your MacBook Pro to an external Thunderbolt display and everything works as it should while connected to power, but once power is removed from the MacBook Pro, the second display no longer functions. It sounds like you may be using this configuration with your MacBook Pro closed, otherwise known as closed-clamshell mode. In order to use a second display with your Mac portable in closed-clamshell mode, the Mac portable must be connected to power. Please refer to the attached article for more information. If this is not the case, please let me know.
How to use your Mac notebook computer in closed-clamshell (display closed) mode with an external display - Apple Support
Cheers,
Joe