Advertisement
coinwalk

my settings

Jul 12th, 2020
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.25 KB | None | 0 0
  1. bdiv = 42000
  2. basebet = balance/bdiv
  3. nextbet = basebet
  4. multiplier = 1.5
  5. lodiv = 7000
  6. more = balance
  7. losebet = balance/lodiv
  8. target = balance*10
  9. chance = 50
  10. bethigh = false
  11. good = 0
  12. bad = 0
  13. bogus = 0
  14. betcount = 100 -- Number of Bets before Seed Reset
  15. counter = 0
  16. leverage = 0
  17.  
  18. resetstats()
  19.  
  20. lastWinRollCount = 0
  21. currentRollCount = 0
  22. oppositeRolls = 0
  23. oppositeArray = {}
  24. oppositeArrayCount = {}
  25. winCount = 0
  26. rollHighHigh = 0
  27. rollHighLow = 0
  28. rollLowHigh = 0
  29. rollLowLow = 0
  30. roundSpent = 0
  31.  
  32. -- Initialize system settings
  33. rollCountAverage = {}
  34. rollAverageCount = 0
  35. rollAverageIndex = 0
  36. rollAverageMax = 8-- Average roll count before a win. How many wins do you want to average?
  37.  
  38. -- Initialize the array
  39. for i=0, rollAverageMax do
  40. rollCountAverage[i] = 0
  41. end
  42.  
  43. highLowAverage = {}
  44. averageCount = 0
  45. averageIndex = 0
  46. averageMax = 8-- High / Low average switching. How many rolls do you want to average?
  47.  
  48. rollCount = 0
  49. rollSeedCount = 0
  50.  
  51. -- Initialize the array
  52. for i=0, averageMax do
  53. highLowAverage[i] = 0
  54. end
  55.  
  56. -- Start the actual betting
  57. function dobet()
  58. leverage +=1
  59. snow = balance/lodiv
  60. print("Current Balance : "..string.format("%.8f",balance))
  61. print("Current Profit : "..string.format("%.8f",profit))
  62. if balance-nextbet>=target then
  63. stop()
  64. ching()
  65. end
  66. if betcount == counter then
  67. resetseed();
  68. counter=0
  69. else
  70. counter+=1
  71. end
  72. if win then
  73. good += 1
  74. bogus += 1
  75. else
  76. bad+=1
  77. end
  78.  
  79. if (bad == 1) then
  80. nextbet = balance/lodiv
  81. end
  82.  
  83. if (bogus > 2) then
  84. nextbet = previousbet*multiplier
  85. bogus = 0
  86. end
  87. if (math.fmod(bad,4)==0) and (bad>3) then
  88. nextbet = previousbet*multiplier
  89. end
  90. if (good > 3) then
  91. nextbet = previousbet*multiplier
  92. good = 0
  93. end
  94. if (nextbet==nil) then
  95. nextbet = previousbet
  96. end
  97. if (balance > more+(snow*2)) then
  98. nextbet = balance/bdiv
  99. bad = 0
  100. good = 0
  101. bogus = 0
  102. more = balance
  103. end
  104.  
  105. currentRollCount += 1
  106. rollCount += 1
  107.  
  108. -- Store statistics for high / low rolls
  109.  
  110. if(lastBet.roll > 50 and bethigh == true) then -- High roll and was high
  111. rollHighHigh += 1
  112. end
  113.  
  114. if(lastBet.roll <= 50 and bethigh == true) then -- High roll and was low
  115. rollHighLow += 1
  116. end
  117.  
  118. if(lastBet.roll > 50 and bethigh == false) then -- Low roll and was high
  119. rollLowHigh += 1
  120. end
  121.  
  122. if(lastBet.roll <= 50 and bethigh == false) then -- Low roll and was low
  123. rollLowLow += 1
  124. end
  125.  
  126. -- We got a win, let's store some averages
  127.  
  128. if(win) then
  129. winCount += 1
  130. if(rollAverageCount == 0) then -- Initialize so we get a good starting average
  131. for i=0, rollAverageMax do
  132. rollCountAverage[i] = rollCount
  133. end
  134. rollAverageIndex += 1
  135. else
  136. rollCountAverage[rollAverageIndex] = rollCount
  137. rollAverageIndex += 1
  138. end
  139.  
  140. rollAverageCount += 1
  141.  
  142. if(rollAverageCount >= rollAverageMax) then
  143. rollAverageCount = rollAverageMax -- no need to keep this one climbing
  144. end
  145.  
  146. if(rollAverageIndex >= rollAverageMax) then
  147. rollAverageIndex = 0 -- reset
  148. end
  149.  
  150. rollCount = 0 -- reset for next rolling
  151. oppositeRolls = 0
  152. rollSeedCount = 0 -- Keep this seed for now
  153. rollHighHigh = 0 -- reset counters
  154. rollHighLow = 0 -- reset counters
  155. rollLowHigh = 0 -- reset counters
  156. rollLowLow = 0 -- reset counters
  157. roundSpent = 0
  158. end
  159.  
  160. -- Let's use the averages from previous rolls to see if the bet needs to be changed
  161.  
  162. if(!win) then
  163. oppositeTest = lastBet.roll
  164. end
  165.  
  166. if(oppositeTest > (100 - chance) and bethigh == false) then -- Test if we were rolling high
  167. -- print(oppositeTest)
  168. oppositeArray[oppositeRolls] = oppositeTest
  169. oppositeArrayCount[oppositeRolls] = rollCount
  170. oppositeRolls += 1
  171. end
  172.  
  173. if(oppositeTest < chance and bethigh == true) then -- Test if we were rolling low
  174. -- print(oppositeTest)
  175. oppositeArray[oppositeRolls] = oppositeTest
  176. oppositeArrayCount[oppositeRolls] = rollCount
  177. oppositeRolls += 1
  178. end
  179.  
  180. -- Calculate the average, and then change high / low accordingly
  181.  
  182. if(lastBet.roll >= 50) then
  183. highLowAverage[averageIndex] = 1
  184. else
  185. highLowAverage[averageIndex] = 0
  186. end
  187. averageIndex += 1
  188. averageCount += 1
  189.  
  190. if(averageIndex >= averageMax) then
  191. averageIndex = 0
  192. end
  193.  
  194. if(averageCount > averageMax) then
  195. averageCount = averageMax
  196. end
  197.  
  198. average = 0.00
  199. for i=0, averageCount do
  200. average += highLowAverage[i]
  201. end
  202.  
  203. average = average / averageCount
  204. -- print (average)
  205.  
  206. if (average >= 0.5) and (leverage>8) then
  207. bethigh = true
  208. else
  209. bethigh = false
  210. end
  211. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement