Ea for consecutive loss alert

 

HI

Is there any Ea which alerts when a consecutive loss in a mt4 account exceeds a predefined number?

If its not there is it possible to code it?