Hi everybody

I was wondering if anyone can point me towards an existing EA, or maybe code one if none such already exists.
I'm searching for an EA that will CLOSE positions upon an hourly bar closure on the wrong side of a predetermined level.
I'd be grateful for any help or advice.