The currentstreak variable is your current winning (+) or losing (-) streak. For example, when currentstreak is 3, you have won 3 bets in a row, if it is -4, you have lost 4 bets in a row.

Alternatively, there's the wins variable, which is the total number of wins you've had since starting the bot or since you last reset your stats.

You can use the modulus operator to determine when something is a factor of something else, for example

`if currentstreak%3==0 and win then`

--this will execute after EVERY 3 winning bets in a row, so after 3 in a row, 6 in a row, 9 in a row etc

end

if currentstreak==3 then

--this will execute after exactly 3 wins in a row

end

if wins%3==0 and win then

--after every 3 wins, regardless of whether they are in a streak or not

end

if wins == 3 then

--after you've won exactly 3 bets and then never again

end