Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. -- Copyright © 2017, BITCOIN_Capital
  2. -- Email: bitcoin.capital@yandex.ru
  3. -- Telegram: @BITCOIN_Capital
  4. --
  5. base = 0.0001
  6. lossStartMult = 1
  7. bethigh = false
  8. randomHighLow = true
  9. useDebugInfo = true
  10. stopnow = false
  11. lossCount = 0
  12. maxLosses = lossStartMult + 10
  13. chance = 90.00
  14. curbet = base
  15. nextbet = base
  16. biggestLossStreak = 0
  17. biggestBet = 0
  18. roundprofit = 0
  19. function sleep(n)
  20. t0 = os.clock()
  21. while os.clock() - t0 <= n do end
  22. end
  23. function dobet()
  24. sleep(1)
  25. roundprofit += currentprofit
  26. resetseed()
  27. if (randomHighLow) then
  28. if (math.random() < .1) then bethigh = !bethigh end
  29. end
  30. if (stopnow and win) then
  31. debugInfo()
  32. stop()
  33. end
  34. if roundprofit > 0 then roundprofit = 0
  35. chance = 90.00
  36. end
  37. end
  38. if (!win) then
  39. lossCount += 1
  40. else
  41. lossCount = 0
  42. end
  43. if (lossCount < lossStartMult) then
  44. chance = 24.00
  45. curbet = base
  46. nextbet = curbet
  47. end
  48. if (lossCount == lossStartMult) then
  49. curbet = base * 1
  50. nextbet = curbet
  51. end
  52. if (lossCount > lossStartMult and lossCount < maxLosses) then
  53. curbet = curbet * 1.33
  54. nextbet = curbet
  55. end
  56. if (lossCount == maxLosses) then
  57. chance = 79.75
  58. curbet = (roundprofit* -1) * 5
  59. nextbet = curbet
  60. sleep(5)
  61. end
  62. if (lossCount > maxLosses) then
  63. curbet = curbet * 5
  64. nextbet = curbet
  65. end
  66. if (lossCount > biggestLossStreak) then
  67. biggestLossStreak = lossCount
  68. end
  69. if (nextbet > biggestBet) then
  70. biggestBet = nextbet
  71. end
  72. if (useDebugInfo) then debugInfo() end
  73. end
  74. function debugInfo()
  75. print("\nBetHigh = " .. tostring(bethigh))
  76. print("Шанс = " .. chance)
  77. print("Ставка = " .. string.format("%9.8f", curbet))
  78. print("Серия потерь = " .. lossCount)
  79. print("Максимальная серия потерь = " .. biggestLossStreak)
  80. print("Максимальная ставка = " .. string.format("%9.8f", biggestBet))
  81. print("Профит = " .. string.format("%9.8f", profit))
  82. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement