Need Help with a simple EA

 

I have a EA that open a lot of profits trades, but open a few very unprofitable ones. I need to create a EA that open a trade in the opposite direction when the price reach -100 with a step loss of 20 and take profit 400 (could be variable). If the trade move to -120 move the stop loss to the start price to break even. This way if the lossing trade go more the 500 pts, only loss 100 pts. If the trade come back to the positive, I shouldn't lose any money. The initial stop loss of 20 is in case the trade zig zag on the 100 mark. Can anyone can help me with this and probably I can provide him with a very profitable EA.

Thanks,

Xavier