Quote from PointOne:
Then sum only the 1s from the bottom of the list - et voila, the total number of winning trades in each streak is at the top:
e.g. in column C
=if(B42=0,0,b42+c43)
Copy formula upwards. The winning streaks are reset to start from 0 each time given your format.