Simple breakot EA

 

Hello someone can help me? I would like to make a simple script that opens a buy when the price breaks up the day before and opening a sell when the price breaks the low of the previous candle. I just want to set the stop loss and take profit, do not want any other control.

Thanks

 
How far have you got ? show your code and where you are having problems.