Hi Zekha, I agree: the count starts over when the entry condition is met, which means price above the blue line (we sell short limit at the blue line).

Still, the behavior does not look correct to me.

Am I alone seeing that?

I rewrote the code bypassing MaxShorts=1 and it works fine