Set an expiry time for opened trades

I need help with opening trades in MT4. Lets say that I am trading off the 1H chart. Once I open the trade at the beginning of the hour, I need close it when the candle closes. I want to close it automatically as I am not in front of the computer all the time. It doesn’t matter whether I am in profit. I just simply want to close the trade at a specific time. Does any one know how to do this in MT4? If not MT4 are there any other platforms that offer this?

I don’t know how personally, but on the other hand I’m a low tech man, in a high tech world. Did you try searching on the MT4 community site, I went through the code base at the bottom of the page, there was nothing there. I think it’s a great idea, I would try the MT4 site or google. If you don’t find anthing there, there are a ton of MT4 programmers on their site. So somebody would be able to write you a program, shouldn’t be to complicated. Anyway that’s what I would do. Hope this helps
Gp