Advertisement
Keiich

test1

Jul 24th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.38 KB | None | 0 0
  1. -- You should have a starting balance of at least 0.01000000
  2. -- Set "lossStartMult" to anything below 12.
  3. -- Higher is safer! I would NOT recommend anything below 6
  4. -- Use the variable "stopnow" in the Console to stop betting after a win.
  5. -- Example: stopnow = 1 - Bot will continue to bet until you win
  6. -- Leave the script variables alone unless you know what you are doing
  7. -- Use "runsim(balance, 1000)" to see how the script will work for you
  8. -- "debugInfo()" is there for you to use during simulations
  9.  
  10. --@ Start User Vars
  11. base = 0.00000001
  12. lossStartMult = 9
  13. bethigh = false
  14. randomHighLow = true
  15. useDebugInfo = false
  16. --@ End User Vars
  17.  
  18.  
  19. --@ Start Script Vars
  20. stopnow = false
  21. lossCount = 0
  22. maxLosses = lossStartMult + 6
  23. chance = 24.97
  24. curbet = base
  25. nextbet = base
  26. --@ End Script Vars
  27.  
  28.  
  29. --@ Start Debug Vars
  30. biggestLossStreak = 0
  31. biggestBet = 0
  32. --@ End Debug Vars
  33.  
  34.  
  35. function dobet()
  36.   if (lossStartMult > 11) then
  37.     print("\nPlease set \"lossStartMult\" to less than 12\n")
  38.     stop()
  39.   end
  40.  
  41.   if (randomHighLow) then
  42.     if (math.random() < .1) then bethigh = !bethigh end
  43.   end
  44.  
  45.   if (stopnow and win) then
  46.     debugInfo()
  47.     stop()
  48.   end
  49.  
  50.   if (!win) then
  51.     lossCount += 1
  52.   else
  53.     lossCount = 0
  54.   end
  55.  
  56.   if (lossCount < lossStartMult) then
  57.     chance = 24.97
  58.     curbet = base
  59.     nextbet = curbet
  60.   end
  61.  
  62.   if (lossCount == lossStartMult) then
  63.     curbet = base * 4
  64.     nextbet = curbet
  65.   end
  66.  
  67.   if (lossCount > lossStartMult and lossCount < maxLosses) then
  68.     curbet = curbet * 2
  69.     nextbet = curbet
  70.   end
  71.  
  72.   if (lossCount == maxLosses) then
  73.     chance = 75.042
  74.     curbet = curbet * 12.75
  75.     nextbet = curbet
  76.   end
  77.  
  78.   if (lossCount > maxLosses) then
  79.     curbet = curbet * 7.25
  80.     nextbet = curbet
  81.   end
  82.  
  83.   if (lossCount > biggestLossStreak) then
  84.     biggestLossStreak = lossCount
  85.   end
  86.  
  87.   if (nextbet > biggestBet) then
  88.     biggestBet = nextbet
  89.   end
  90.  
  91.   if (useDebugInfo) then debugInfo() end
  92. end
  93.  
  94. function debugInfo()
  95.   --print("\nBetHigh = " .. tostring(bethigh))
  96.   --print("Chance = " .. chance)
  97.   --print("Current Bet = " .. string.format("%9.8f", curbet))
  98.   --print("Current Loss Streak = " .. lossCount)
  99.   print("Biggest Loss Streak = " .. biggestLossStreak)
  100.   print("Biggest Bet = " .. string.format("%9.8f", biggestBet))
  101.   print("Total Profit = " .. string.format("%9.8f", profit))
  102. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement