Hello Guest

help for current streak

  • 1 Replies


  • *
  • 1
  • +0/-0
    • View Profile
help for current streak
« on: September 01, 2018, 12:55:44 pm »
I creat script but it's semi-automatique because when I Lose I must change amount of the next current streak

chance=70 --sets your chance for placing a bet
nextbet=base       --sets your first bet.
bethigh=true       --bet high when true, bet low when false

function dobet()   


 if win then   




 if currentstreak==-3 then 





But when my "currentstreak=3" is false (or low) I loss 0.001 and I must change ammount in manuel for the next "currentstreak=3" for do a profit. So the new ammount after 3 lose is
    0.003414 and if it's true I must rechange the ammount = 0.001
I do not know how to do do in automatic
Sorry for ma level in english,



  • *****
  • 247
  • +2/-2
    • View Profile
Re: help for current streak
« Reply #1 on: September 19, 2018, 07:46:33 am »
You set the bet value using nextbet=yourbetamounthere

See the quote below regarding the use of the modulus operator:
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

Code: [Select]
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
if currentstreak==3 then
--this will execute after exactly 3 wins in a row
if wins%3==0 and win then
--after every 3 wins, regardless of whether they are in a streak or not
if wins == 3 then
--after you've won exactly 3 bets and then never again