Advertisement
cryptomonkey

Whittaker martingale

Oct 15th, 2019
649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.98 KB | None | 0 0
  1. --Whittaker martingale
  2. --https://bot.seuntjie.com/scripts.aspx?id=5250
  3.  
  4.  
  5. --***
  6.  
  7.  
  8. -- SETUP
  9. enablezz = false
  10. enablesrc = false
  11. bethigh = false -- True to bet over
  12.  
  13. -- CRYPTO
  14. minibet = balance*0.0001 -- Minimum bet of your crypto
  15.  
  16. -- BANKROLL
  17. basebet = minibet
  18.  
  19. -- STRATEGY
  20. chance = 33
  21. wintarget = balance*1.15
  22. stoploss  = balance*0.70
  23. numbet = 0
  24. nextbet = minibet
  25. safe = 0.00001
  26.  
  27. -- FIBONACCI
  28. a = 0
  29. b = 1
  30. c = 0
  31. suite = {1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765,10946,17711,28657,46368,75025,121393,196418,317811,514229,832040,1346269,2178309,3524578,5702887,9227465,14930352,24157817,39088169}
  32. indice = 1
  33.  
  34. -- STRATEGY
  35. function dobet()
  36.  
  37.         function calculbet()
  38.             probabust = 0
  39.             basebet = minibet
  40.  
  41.             while probabust < safe do
  42.                 basebet = basebet + minibet
  43.                 loses = 0
  44.                 a = 0
  45.                 b = 1
  46.                 c = 0
  47.  
  48.                 while basebet*c < balance do
  49.                     loses = loses + 1
  50.                     c = a + b
  51.                     if loses == 2 then
  52.                         c = 1
  53.                     end
  54.                     a = b
  55.                     b = c
  56.                 end
  57.  
  58.                 loses = loses - 1
  59.                 probabust = (1-chance/100)^loses
  60.  
  61.             end
  62.  
  63.             basebet = math.floor(100000000*basebet)/100000000 -- Arrondir le basebet à 10^-8
  64.  
  65.             if basebet <= minibet then
  66.                 basebet = minibet
  67.             end
  68.  
  69.             print("\nBest Basebet : "..basebet.."\nBust Probability : "..probabust.."%\nNumber of losses max : "..loses.."\n")
  70.  
  71.             basebetopti = basebet
  72.  
  73.         end
  74.  
  75.         numbet = numbet + 1
  76.  
  77.         -- Reset seed every 1.000 rolls
  78.         if numbet % 1000 == 0 then
  79.             print("\n\n______________________\n")
  80.             resetseed()
  81.             print("\n______________________\n\n")
  82.         end
  83.  
  84.         -- Check balance
  85.         if balance >= wintarget and wintarget ~= 0 then
  86.             print("\n\nWinTarget Reach\n\n")
  87.             stop()
  88.         end
  89.         if balance <= stoploss and stoploss ~= 0 then
  90.             print("\n\nStoploss Reach\n\n")
  91.             stop()
  92.         end
  93.  
  94.         if win then
  95.             -- Recalculer le basebet
  96.             calculbet()
  97.             indice = 1
  98.  
  99.         else
  100.  
  101.             basebet = basebetopti*suite[indice]
  102.  
  103.             indice = indice + 1
  104.  
  105.         end
  106.  
  107.         nextbet = basebet
  108. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement