Advertisement
coinwalk

dice

Apr 2nd, 2019
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. chance = 8.91 -->> 8.91% Win Chance
  2. betfactor=0.00005
  3. base=balance*betfactor -->> 50 Sats BB at 0.01 BTC Bankroll, Auto Adjust to Increasing Bankroll
  4. prebet = 0.00000001
  5. multiplier=1.1111 -- >> 11.11% Increase on Lose
  6.  
  7. target=0.00100000 -- <<Stop at this Profit Target>>
  8.  
  9. nextbet = prebet
  10. losecount = 0
  11. betcount = 0
  12. bethigh=false
  13. wincount=0
  14. highloss=0
  15. totalloss=0
  16. total=0
  17. avehit=0
  18. counter=0
  19. b=0
  20.  
  21. low=0
  22. high=0
  23.  
  24. --resetstats()
  25. resetseed()
  26.  
  27. function dobet()
  28.  
  29. if (lastBet.roll < chance) then
  30. low += 1
  31. end
  32.  
  33. if (lastBet.roll > (100 - chance)) then
  34. high += 1
  35. end
  36.  
  37. print(" ")
  38. print("Total Bet : "..betcount)
  39. print("Current Streak Loss : "..losecount)
  40. print("Highest Loss Streak : "..highloss)
  41. print("Number of Wins : "..wincount)
  42. print("Average Losses Before Win : "..string.format("%.2f",avehit))
  43. print("Profit :"..string.format("%.8f",profit))
  44. print(" ")
  45. print("Bet Amount :"..string.format("%.8f",nextbet))
  46. print("Current Balance : "..string.format("%.8f",balance))
  47. print("High :"..high.." / ".."Low :"..low)
  48. print(" ")
  49.  
  50. if counter > 500 then
  51. resetseed()
  52. low=0
  53. high=0
  54. counter=0
  55. else
  56. counter+=1
  57. end
  58.  
  59. if win then
  60. base=balance*betfactor
  61. nextbet = prebet
  62. wincount+=1
  63. total+=1
  64. totalloss+=losecount
  65. avehit=totalloss/total
  66. losecount = 0
  67. betcount += 1
  68. b+=1
  69.  
  70. if b>1 then
  71. bethigh=!bethigh
  72. b=0
  73. end
  74.  
  75. if profit>target then
  76. stop()
  77. print("TARGET REACHED!")
  78. end
  79.  
  80. else
  81.  
  82. losecount += 1
  83. betcount += 1
  84. nextbet = prebet
  85.  
  86. end
  87.  
  88. if losecount > highloss then
  89. highloss = losecount
  90. end
  91.  
  92. if (losecount > 9) then
  93. nextbet = 0.00000002
  94. end
  95.  
  96. if (losecount > 13) then
  97. nextbet = balance*betfactor
  98. if nextbet<0.00000005 then
  99. nextbet=0.00000005
  100. end
  101. end
  102.  
  103. if (losecount > 14) then
  104. nextbet = previousbet*multiplier
  105. end
  106. end
  107. end
  108. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement