Chosen Solution

For some reason my macbook pro when i have a lot of application opened goes off and the battery is at 0% I have already done a test with coconut batter

Update (06/18/2019)

new result @danj

Coconut is a nice and useful little utility but nothing is perfect. Battery data seems pretty bad to me..with capacity around 60% side issues can be easily expected. Try replicating the same conditions with battery disconnected and see if the Mac still turns off..I expect it won’t. Or just wait for a few days if you can’t run just off magsafe, if it’s a battery issue things will get worse pretty soon.

Check the MagSafe connection on both the cable and the system make sure they are clean and shiny. Do another snapshot with the MagSafe charger connected (it should be Amber) and post it here for us to see, Let the system fully charge. Update (06/18/2019) OK, I don’t see anything wrong here. While your battery is showing its age I don’t think that’s your issue! Remember your system is not a desktop so you do need to manage how many apps running when its on battery. Even when you have the system plugged in your battery will be accessed to make up the needed power when you have too heavy a power draw. Things you might want to look at is the amount of RAM your system has. If you only have 4 GB I would upgrade one of the SO-DIMM’s to a 4 GB unit so you can max out your system to 6.0 GB. You also should look at your drives free space both HDD’s & SSD’s need free space to work effectively. The OS leverages the drive for virtual RAM so when you have a limited amount of RAM like you do here, the drive will be more heavy used. With HDD’s thats a lot of power being used. In the case of SSD’s they end up needing to do wear leveling which will likewise use more power. So Max out your RAM and if you don’t have much free space free up as much as you can. For HDD’s you should get a defragmentation app to clean up the drive. For SSD’s you really need to have 1/4 of the drive free.