Close the current position when the price hits a moving average

Does any expert get such kind of EA?

Close the current position when the price hits a moving average.

Thanks