Ypleitez

Untitled

Nov 15th, 2023
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. chance = math.random(1, 80) --generate chance
  2. lsratio = 7 --max loss streak. ex. 2(multi)*7(lsratio)=14(max loss streak)
  3. edge = 1
  4.  
  5. stopOnProfit = Balance*1.3
  6.  
  7.  
  8.  
  9.  
  10. --nothing to change below. Everyhting should be calculated based on above
  11.  
  12. convertedMulti = string.format("%.4f", (100 - 1) / chance)
  13. lossStreaks = convertedMulti*lsratio
  14. if lossStreaks % 1 ~= 0 then
  15. local int_part = string.match(lossStreaks, "^%d+")
  16. lossStreaks = tonumber(int_part) + 1
  17. end
  18. bethigh = (math.random(2) == 1) and true or false
  19. increaseOnLoss = (((100-edge)/((100-edge)-chance))-1)*100.00
  20. increaseOnLossMulti = (100-edge)/((100-edge)-chance)
  21. calculateBetSize = balance * (increaseOnLoss/100) / ((1+(increaseOnLoss/100))^lossStreaks - 1)
  22. basebet = calculateBetSize-(calculateBetSize/200)
  23. nextbet = basebet
  24. print("chance "..chance)
  25. print("convertedMulti "..convertedMulti)
  26. print("lossStreaks "..lossStreaks)
  27. print("increaseOnLoss "..increaseOnLoss)
  28. print("increaseOnLossMulti "..increaseOnLossMulti)
  29. print("calculateBetSize "..calculateBetSize)
  30. print("basebet "..basebet)
  31.  
  32.  
  33.  
  34.  
  35. function dobet()
  36. if profit >= stopOnProfit then
  37. ching()
  38. stop()
  39. end
  40.  
  41. end
  42. if win then
  43. bethigh = (math.random(2) == 1) and true or false
  44. chance = math.random(1, 80)
  45. convertedMulti = string.format("%.4f", (100 - 1) / chance)
  46. lossStreaks = convertedMulti*lsratio
  47. if lossStreaks % 1 ~= 0 then
  48. local int_part = string.match(lossStreaks, "^%d+")
  49. lossStreaks = tonumber(int_part) + 1
  50. end
  51. edge = 1
  52. bethigh = (math.random(2) == 1) and true or false
  53. increaseOnLoss = (((100-edge)/((100-edge)-chance))-1)*100.00
  54. increaseOnLossMulti = (100-edge)/((100-edge)-chance)
  55. calculateBetSize = balance * (increaseOnLoss/100) / ((1+(increaseOnLoss/100))^lossStreaks - 1)
  56. basebet = calculateBetSize-(calculateBetSize/200)
  57. nextbet = basebet
  58. print("chance "..chance)
  59. print("convertedMulti "..convertedMulti)
  60. print("lossStreaks "..lossStreaks)
  61. print("increaseOnLoss "..increaseOnLoss)
  62. print("increaseOnLossMulti "..increaseOnLossMulti)
  63. print("calculateBetSize "..calculateBetSize)
  64. print("basebet "..basebet)
  65. else
  66. nextbet = previousbet*increaseOnLossMulti
  67. end
  68. end
Add Comment
Please, Sign In to add comment