Hey Eric,
I have a 2000 Honda Civic. The tcc is going in and out of lock-up. When this happens the D4 light flashes randomly and the rpm gauge fluctuates by about 400 rpm. I tried a different solenoid and it didn’t change anything. Also I did test both the original and the new used solenold. I tried a used ecu and it didn’t help. I cleaned the throttle body and it seemed to help. After that it would go away for three or four days and than come back for a couple days. I recently got some fuel lines replaced and after that it went away for about a week. Now its back doing it every day. Also when you shut the car of for just a second it will go away for a while. I have cleaned every electrical connection I can see on the car. Thanks!