Optimal filter rules for selling stocks in the emerging stock markets