Is it possible to detect false breakouts using code?

We all know false breakouts are strong market movements. Can anybody tell some code idea how to check a false breakout?

There is no code, no crystal ball, no nothing to check for false breakout. You only know after the event if breakout was false or true.