If you are going to stop or slow down when another driver does not expect it:

If you are going to stop or slow down at a place where another driver may not expect it, quickly tap your brake pedal three or four times. Your brake lights will indicate to other drivers that you plan to slow down.
DMV Writen Test