EA that exit trade when candle close beyond a price

 

Hey,

does anyone know if this EA are already made:

In the EA you set a price that says to the EA that "if price closes beyond this point (close above if selling, and close below if buying), then the trade should exit. You should also have the possibility to set timeframe in the EA (if it closes on 1 hr or 4 hr etc...)

The logic behind it is, if I want to sell, I consider the market to have changed direction if it closes above a resistance line, and I want to exit the trade early.

Considering coding this myself, but have limited knowledge. Want to learn :)


Thanks.