There are various ways, there is a block called consecutive losses, try and use a loop https://fxdreema.com/shared/21tZfhREc :
image.png