KEMBAR78
33 Lua | PDF | Wagering | Gambling
0% found this document useful (0 votes)
470 views3 pages

33 Lua

This document contains code for a betting algorithm that adjusts bet sizes based on win/loss streaks. It defines initial values like chance, bet sizes, and limits. The dobet() function contains the core logic: it makes a random bet, tracks stats, and adjusts bet sizes according to the balance and streaks to try and reach profit targets while avoiding losses.
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)
470 views3 pages

33 Lua

This document contains code for a betting algorithm that adjusts bet sizes based on win/loss streaks. It defines initial values like chance, bet sizes, and limits. The dobet() function contains the core logic: it makes a random bet, tracks stats, and adjusts bet sizes according to the balance and streaks to try and reach profit targets while avoiding losses.
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/ 3

chance = 80.

1
prebet1 = 0.0021
preroll1 = 0.0003
base = prebet1/5

prebet = prebet1
preroll = preroll1
nextbet = prebet
betlimit = prebet/45
targetBalance = balance * 1.2
profittarget = balance+base
initbalance = balance
losslimit = balance/1.90

firstbet=prebet
secondbet=prebet
temp=0
bethigh=true
betcount=0
count=0

function dobet()

chance = math.random(37*100,49*100)/100
betcount=1+betcount
count=1+count
betlimit = prebet/500
e = currentstreak+preroll

if not win and (previousbet>firstbet) then


secondbet=firstbet
firstbet=previousbet
end

-- <<Bet Randomizer>>
r=math.random(2)
if r == 1 then
bethigh=false
else
bethigh=true
end
-- <<Bet Randomizer>>

if betcount == 25 then
betcount=0
print("\n\n")
print("Balance Limit"..string.format("%.8f", initbalance))
print("Profit : "..string.format("%.8f", profit))
end

if count> 500 then


count=0
end

if balance >= profittarget then


print("\n\n")
print("=====================")
print("PROFIT SET REACHED")
print("Profit : "..string.format("%.8f", profit))
print("Final Balance : "..string.format("%.8f", balance))
print("=====================")
firstbet=prebet
secondbet=prebet
nextbet=prebet
preroll=preroll1
base=prebet*preroll
profittarget=balance+base
if bets%2==0 then losslimit=balance*1.90 end
end

if balance >= targetBalance then


ching()
stop()
print("\n\n")
print("=====================")
print("TARGET REACHED")
print("Profit : "..string.format("%.8f", profit))
print("Final Balance : "..string.format("%.8f", balance))
print("=====================")
end

if losslimit>balance then
prebet = prebet1/2
base = prebet/2
losslimit = balance*0.8
else
prebet = prebet1
base = prebet/2
end

if balance > initbalance then


if (balance-initbalance)==0 then
nextbet=prebet
end

if (balance-initbalance)>0 then
nextbet=prebet
end

initbalance=balance
firstbet=prebet
secondbet=prebet
end

if balance < initbalance then

if (initbalance-balance)==prebet then
nextbet=prebet
end

if (initbalance-balance)==(prebet*2) then
nextbet=prebet
end

if (initbalance-balance)>(prebet*2) then
if bets%2==0 then nextbet=firstbet+secondbet end
end

if win and (initbalance>balance) then


nextbet=previousbet
end
end

if not win and e==2 then


nextbet=previousbet

end --End of Dobet

if not win and e==2 then


nextbet=previousbet
end

end --End of Dobet

You might also like