I believe that negative energies come from outside not from within.
Outer sources, such as what you attract through conscious source, or psychic vampires, who drain you, and leave you vulnerable to the negative energies.
If you can make a conscious effort to recognize the source, and strictly
will yourself to recognize it when it happens, you can exercise PEACE which brings you into the Now...remembering the now moment will release the negative energy.
Try it....what could it hurt
Peace is not merely a distant goal that we seek,
but a means by which we can arrive at that goal
Martin Luther King Jr