"Lock" Metatrader 4 account after loss?

Hey guys. Is there a way (like an EA or something) that can lock my metatrader account after I have taken a few losses in a row? Or lost a predefined amount? So that i do not have the ability to try and “make it all back” because most of the time it does not work anyway and the loss for the day becomes huge. Anybody knows of that kind of a program?