It would help to know what your driving, I am assuming a Ford Explorer but
what year? Most likely the problem is the sensor near the output shaft of
the tranny. Mine recently went and I had the flashing lights. Cost was about
15 bucks and it took all of 15 min. Of course I have a lift . It may take
longer under the vehicle on the ground.