Advertisement
Shiemmi

legion of Boom

Feb 21st, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. Uses math.random to randomly increase bets. Start out covering a long losing streak and occasionally bet a shorter streak. Betting is based on balance. easy to change.
  2.  
  3.  
  4. chance = 39.6
  5. martimulti = 1.85 --multiplier for loses
  6. streak = 20 -- cover 20 bets
  7. risk = (martimulti ^ streak) * (streak/(streak *(martimulti - 1)))
  8.  
  9. boomstreak = 13 -- cover 13 bets on a Boom
  10. boomrisk = (martimulti ^ boomstreak) * (boomstreak/(boomstreak *(martimulti - 1)))
  11.  
  12.  
  13. startbalance = balance
  14. nextbet = balance / risk
  15. basebet = balance / risk
  16.  
  17. stoponprofit = true -- stop when you reach profitstop
  18. profitstop = 3
  19.  
  20. savefactor = 1.5 -- save factor from starting balance
  21. target = .01 -- Amount to incrementally save
  22. targetbalance = balance + target
  23. bethigh = true
  24. low = 0
  25. high = 0
  26. losecount = 0
  27. stopnow = false
  28. boom = false
  29. totallose = 0
  30. wincount = 0
  31. nextwinbet = basebet * martimulti
  32.  
  33.  
  34. function dobet()
  35.  
  36.  
  37. if (win) then
  38. wincount += 1
  39. totallose = 0
  40. newbalance = balance
  41. nextbet = balance / risk
  42. base = true
  43. if (stopnow) then stop() end
  44. if (stoponprofit and profit > profitstop) then stop() end
  45. if (wincount > 2 ) then
  46. nextbet = previousbet + ((lastBet.profit - previousbet)/2)
  47. base = false
  48. else
  49. if(math.random(1,5) == 4) then
  50. nextbet = balance / boomrisk
  51. print("BOOM")
  52. boom = true
  53. else
  54. boom = false
  55. end
  56. end
  57. losecount = 0
  58. if (balance > targetbalance) then
  59. invest((balance - targetbalance)+target)
  60. targetbalance = targetbalance + target
  61. newbalance = targetbalance
  62. end
  63. if (newbalance > startbalance * savefactor) then
  64. invest(balance-startbalance)
  65. targetbalance = startbalance + target
  66. startbalance = startbalance * savefactor
  67. end
  68. else
  69. if (losecount == 0 and !base) then
  70. nextbet = balance / risk
  71. base = true
  72. boom = false
  73. else
  74. nextbet = previousbet * martimulti
  75. base = false
  76. end
  77. losecount += 1
  78. print(losecount)
  79. if (losecount == 15 or (losecount == 10 and boom)) then
  80. repeat
  81. io.write("high or low (h/l)? ")
  82. io.flush()
  83. answer=io.read()
  84. until answer=="h" or answer=="l"
  85. if (answer == "h") then
  86. bethigh = true
  87. else
  88. bethigh = false
  89. end
  90. end
  91. if ((math.random() < .1) and (losecount < 15)) then bethigh = !bethigh end
  92. wincount = 0
  93. end
  94.  
  95. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement