Need EA to close trade based on CLOSING price of the candle instead of current price


I've searched high and low but can't seem to find anything that can do this for me.

Its basically for my STOP LOSS. In MT4 you can set a stop loss price, the only problem with this is that it will close the trade if price hits this number or goes past it. But I don't want it to do this. I only want it to close the trade if the candle CLOSES past my stop loss price.

Seems so simple I can't believe nobody else has ever needed something like this. Am I the only one out there that uses closing prices for stops instead of the current price?

Any help would be greatly appreciated.

Thank you!


It doesn't seem to difficult. If nobody helps you then I would use MQL-Programming to get this done since they are the cheapest.