Breakout EA – exit in several steps

 

Can anybody help to code the exit?

The rules are:

Stop Loss is a fixed number of pips (is realised)

Take Profit:

Take Profit 1 should be a fixed number of pips and close ¾ of the open lots

Take Profit 2 should be either a fixed number of pips or should close the trade at a given time at the same day (for example at 19:00)

Thanks.

Files:
breakout.mq4  10 kb