When closing a position because it crosses back over the zero line, make sure it is the signal line that crosses the zero line, as this gives a better indication from the overall long term.
A MACD crossing the zero line can happen multiple times in an uptrend, the signal line crossing will allow you to filter out the false signals for closing.