what is the function of an indicator in a titration

An indicator tells you when you have reached the end point of a titration (where you quit adding titrant). You HOPE (and pray) that the end point is the same as the theoretical equivalence point of the reaction.