Professional Documents
Culture Documents
chance = 39.8
martimulti = 15
basebet = .00001
startbalance = balance
nextbet = basebet
savefactor = 1.25
target = .01
targetbalance = balance + target
bethigh = true
low = 0
high = 0
losecount = 0
stopnow = false
totallose = 0
wincount = 0
nextwinbet = basebet * martimulti
go = false
set = false
function dobet()
if (win) then
wincount += 1
totallose = 0
newbalance = balance
if (high > low) then
bethigh = true
else
bethigh = false
end
if (wincount == 1 and go) then
nextbet = nextwinbet
go = false
set = false
else
nextbet = basebet
end
if (wincount == 2 and previousbet != basebet)
then if (stopnow) then stop() end
martimulti = 15
nextwinbet = basebet * martimulti
set = true
losecount = 0
if (balance > targetbalance) then
invest((balance - targetbalance)+target)
targetbalance = targetbalance + target
newbalance = targetbalance
end
if (newbalance > startbalance * savefactor) then
invest(balance-startbalance) targetbalance =
startbalance + target startbalance =
startbalance * savefactor
end
end
if (wincount == 2) then go = true end
else
if (wincount == 1 and previousbet != basebet )
then nextwinbet = previousbet * martimulti
martimulti = martimulti / 2
if (martimulti < 1.85) then martimulti = 1.85 end
losecount += 1
print(losecount)
else
end
wincount = 0
totallose = totallose + 1
if (totallose == 2) then go = true end
nextbet = basebet
end
end