False breakouts

 

   Hello dear Coders ! I shall want an idea how to detect with some conditionals a false breakout ? First of all I shall need support and resistance levels to be calculated and then

    some conditionals to detect if it is a breakout and that breakout is a true breakout OR false breakout.Anyone an idea ?