EA for recent peak and trough breakout

 

Hi,

I am working on a very profitable system, all most all the trades are successful. I earn 30 pips on one trade.I need an EA which opens buy when recent prak is crossed and sell when recent trough is crossed. Two parameters stop loss and take profit are to be included with optimization code.I tried this system manually on 1h time frame and all the major pairs with success on a demo account. The system fig. is attached here with. Please help.

[ATTACH]11503[/ATTACH]

regards.

Files:
system_fig.gif  19 kb