Adding a Breakeven Stop, Trailing Stop and a Daily Profit/Loss Goal to an EA.

 

Is it possible to add a Trailing and Breakeven Stop to a functioning EA? Where and what code needs to be added? Also, is it possible to run an EA that will close all open positions when a certain daily profit/loss target is met? How would this EA run? On any chart or independently?

Thank you. 

Reason: