check engein light is on and the box around the d4 is flashing what is up ? on 1999 Honda Civic

just had the motor rebuild and i have all so tryed changing the ATF a few times it only helps for a few days the wright back on

Asked by for the 1999 Honda Civic
Have the trans scanned for codes. Check and make sure all the connections on the trans are plugged in completely.----BIASED suggestion---use only Honda ATF.