i don't think replace the cable will help you, because i have the same problem
and i found a way to fix it , i use a program to help me the program name is TG PRO u have to buy it
when you start your computer he was in sleep mode or turned off your mac gonna be cold or adapt to the room temperature when its to cold your screen gonna flickering so... what u have to do is : open TG PRO>Fan>Manual and Slide it to the Right and after that your mac Gonna Stop flickering. its Work!!!