You almost understood. Come on. See the figure below:

The red line was a false break because it did not close above the line.
The blue line was a real break because it closed above the red line, and rose to the previous maximum.
I need the line to just go up when there's a real break.


