I made a similar mistake. I overrode my system that uses closing prices to generate signals, and closed my position in the morning because I thought the close would not be much higher, and probably lower, than the open. I made money, but I would have made 1% more if I followed the system.