0% found this document useful (0 votes)
11 views4 pages

9 3

This document outlines a betting algorithm that initializes various variables and functions to manage bets based on win/loss outcomes. It includes logic for adjusting the next bet amount, tracking wins and losses, and changing betting modes based on performance. The algorithm also incorporates randomness and conditions to determine the betting strategy dynamically.

Uploaded by

Yan Mikhlin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views4 pages

9 3

This document outlines a betting algorithm that initializes various variables and functions to manage bets based on win/loss outcomes. It includes logic for adjusting the next bet amount, tracking wins and losses, and changing betting modes based on performance. The algorithm also incorporates randomness and conditions to determine the betting strategy dynamically.

Uploaded by

Yan Mikhlin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

-- Initialize variables

chance = yourEdge / 2
nextbet = minimalbet
div = math.random(10000, 25000)
BB = balance / div
NNextBet = BB
bethigh = true
halfRange = 5000 -- Paradice value 50 Megaplay value 5000
LH = {}
bbexecute = false
currentIndex = 1
won = 0
loss = 0
ath = balance
lossCounter = 0
bet = 0

-- Initialize mode variables


lengths = {3, 4}
currentModeIndex = {}
betsInCurrentMode = 0
betsPerMode = 5 -- Change this to set how many bets per mode

function dobet()
clearConsole()
bet = bet + 1
--if (bet%10==0) then div = 10000 else div = math.random(800000, 2000000) end

BB = balance / div
betsInCurrentMode = betsInCurrentMode + 1

---- Reset LH when betting in the first element of the mode


--if (currentModeIndex[currentIndex] == 1) then
-- LH = {}
--end

if (win) then
won = won + 1
if (previousbet > minimalbet) then
NNextBet = BB
nextbet = minimalbet
end
end

if (not win) then


loss = loss + 1
lossCounter = lossCounter + 1
if (previousbet > minimalbet) then
NNextBet = previousbet * 2
nextbet = NNextBet
end
if (currentstreak<-5) then
NNextBet = BB
nextbet = minimalbet
end
end
--div = math.random(10000 - lossCounter * 500, 25000 - lossCounter * 500)
--if (div <= 10000) then
-- div = div - lossCounter * 500
--end
--if (div < 1000) then
-- div = 10000
--end

if (profit > 0) then


lossCounter = 0
if (bet%10==0) then
div = 10000
lossCounter = 0
end
end
if (bet%10==0) then
div = 10000
else
div = math.random(10000, 25000)
end
if (profit < 0) then

div = math.random(10000 - lossCounter * 500, 25000 - lossCounter *


1000)
if (bet%10==0) then
div = 10000 - lossCounter * 100
end
if (div < 1000) then
div = 10000
end
end

if (roll > halfRange) then


h = 1
LH[#LH + 1] = "H"

end
-- end
if (roll <= halfRange) then
l = 1
LH[#LH + 1] = "L"

end
---end
if (#LH == 1) then
nextbet = NNextBet
bbexecute = true
end

clearConsole()
print(#LH)

print("Current Index: " .. string.format("%s", currentIndex))


print("Bets in current mode: " .. string.format("%s", betsInCurrentMode))
print("Bets #: " .. string.format("%s", bet))
print("Divider is: " .. string.format("%s", div))
print("Won: " .. string.format("%s", won))
print("Lost: " .. string.format("%s", loss))
if (#LH == lengths[currentIndex]) then
LH = {}
nextbet = minimalbet
print("The length now is " .. lengths[currentIndex])
if betsInCurrentMode >= betsPerMode then
betsInCurrentMode = 0
currentIndex = currentIndex + 1
if currentIndex > #lengths then
currentIndex = 1
end
currentModeIndex[currentIndex] = lengths[currentIndex]
end
end
if (previousbet == minimalbet) then

if (roll > halfRange) then


flag = 1
else
flag = 2
end
if (currentIndex == 1) then
if (flag==1) then
bethigh = false
else
bethigh = true
end
end

if (currentIndex == 2) then
if (flag==1) then
bethigh = true
else
bethigh = false
end
end

-- end

elseif (roll <= halfRange) then


--flag = 2

if (currentIndex == 1) then
if (flag == 2) then
bethigh = true
else
bethigh = false
end
end
if (currentIndex == 2) then
if (flag==1) then
bethigh = true
else
bethigh = false
end
end
end
if (bet >= 10) then
bet = 0
won = 0
loss = 0
end
end

You might also like