# 9%+9%

ch = 9
chance = ch
bs = 0.0001  — Начальная ставка
nextbet = bs
b = balance
bethigh = true
a = math.random(1, 2)
if (a == 1) then
bethigh = true
else
bethigh = false
end
d = 0
c = 0
v = 1
e = 0
f = 0

function dobet()

if (win) then

if (math.random(0,1) == 0) then
betHigh = !betHigh
end

d = d + 1
c = 0
v = 1
e = 0
f = 0
if (d > 10000) then
d = 0
seedclient(999999)
end
b = balance
a = math.random(1, 2)
if (a == 1) then
bethigh = true
else
bethigh = false
end
chance = ch
nextbet = bs

else

e = e + 1
d = d + 1
b = b + bs
if (a == 2) then

if (v == 1) then
if (e > 0) then
c = c + 1
if (c > 9) then
c = 0
e = 0
v = 2
chance = ch * 2
f = (b — balance) / 3.99
if (f < bs) then
f = bs
end
nextbet = f
else
if (previousbet < ch * 2) then
c = 0
e = 0
v = 2
chance = ch * 2
f = (b — balance) / 3.99
if (f < bs) then
f = bs
end
nextbet = f
else
chance = ch
f = (b — balance) / 8.99
if (f < bs) then
f = bs
end
nextbet = f
end
end
end
end

if (v == 2) then
if (e > 0) then
c = c + 1
if (c > 9) then
c = 0
e = 0
v = 3
chance = ch * 3
f = (b — balance) / 2.33
if (f < bs) then
f = bs
end
nextbet = f
else
if (previousbet < ch * 3) then
c = 0
e = 0
v = 3
chance = ch * 3
f = (b — balance) / 2.33
if (f < bs) then
f = bs
end
nextbet = f
else
chance = ch * 2
f = (b — balance) / 3.99
if (f < bs) then
f = bs
end
nextbet = f
end
end
end
end

if (v == 3) then
if (e > 0) then
c = c + 1
if (c > 7) then
c = 0
e = 0
v = 4
chance = ch * 4
f = (b — balance) / 1.497
if (f < bs) then
f = bs
end
nextbet = f
else
if (previousbet < ch * 4) then
c = 0
e = 0
v = 4
chance = ch * 4
f = (b — balance) / 1.497
if (f < bs) then
f = bs
end
nextbet = f
else
chance = ch * 3
f = (b — balance) / 2.33
if (f < bs) then
f = bs
end
nextbet = f
end
end
end
end
if (v == 4) then
if (e > 0) then
c = c + 1
if (c > 5) then
c = 0
e = 0
v = 5
chance = ch * 6
f = (b — balance) / 0.665
if (f < bs) then
f = bs
end
nextBet = f
else
if (previousbet < ch * 6) then
c = 0
e = 0
v = 5
chance = ch * 6
f = (b — balance) / 0.665
if (f < bs) then
f = bs
end
nextbet = f
else
chance = ch * 4
f = (b — balance) / 1.497
if (f < bs) then
f = bs
end
nextbet = f
end
end
end
end

if (v == 5) then
if (e > 0) then
c = c + 1
if (c > 2) then
c = 0
e = 0
v = 6
chance = ch * 8
f = (b — balance) / 0.248
if (f < bs) then
f = bs
end
nextbet = f
else
if (previousbet < ch * 7) then
c = 0
e = 0
v = 6
chance = ch * 8
f = (b — balance) / 0.248
if (f < bs) then
f = bs
end
nextbet = f
else
chance = ch * 6
f = (b — balance) / 0.665
if (f < bs) then
f = bs
end
nextbet = f
end
end
end
end

if (v == 6) then
if (e > 0) then
e = 0
v = 1
chance = ch
f = (b — balance) / 8.99
if (f < bs) then
f = bs
end
nextbet = f
end
end

else

if (v == 1) then
if (e > 0) then
c = c + 1
if (c > 9) then
c = 0
e = 0
v = 2
chance = ch * 2
f = (b — balance) / 3.99
if (f < bs) then
f = bs
end
nextbet = f
else
if (previousbet > ch * 8) then
c = 0
e = 0
v = 2
chance = ch * 2
f = (b — balance) / 3.99
if (f < bs) then
f = bs
end
nextbet = f
else
chance = ch
f = (b — balance) / 8.99
if (f < bs) then
f = bs
end
nextbet = f
end
end
end
end

if (v == 2) then
if (e > 0) then
c = c + 1
if (c > 9) then
c = 0
e = 0
v = 3
chance = ch * 3
f = (b — balance) / 2.33
if (f < bs) then
f = bs
end
nextbet = f
else
if (previousbet > ch * 7) then
c = 0
e = 0
v = 3
chance = ch * 3
f = (b — balance) / 2.33
if (f < bs) then
f = bs
end
nextbet = f
else
chance = ch * 2
f = (b — balance) / 3.99
if (f < bs) then
f = bs
end
nextbet = f
end
end
end
end

if (v == 3) then
if (e > 0) then
c = c + 1
if (c > 7) then
c = 0
e = 0
v = 4
chance = ch * 4
f = (b — balance) / 1.497
if (f < bs) then
f = bs
end
nextbet = f
else
if (previousbet > ch * 6) then
c = 0
e = 0
v = 4
chance = ch * 4
f = (b — balance) / 1.497
if (f < bs) then
f = bs
end
nextbet = f
else
chance = ch * 3
f = (b — balance) / 2.33
if (f < bs) then
f = bs
end
nextbet = f
end
end
end
end

if (v == 4) then
if (e > 0) then
c = c + 1
if (c > 5) then
c = 0
e = 0
v = 5
chance = ch * 6
f = (b — balance) / 0.665
if (f < bs) then
f = bs
end
nextBet = f
else
if (previousbet > ch * 4) then
c = 0
e = 0
v = 5
chance = ch * 6
f = (b — balance) / 0.665
if (f < bs) then
f = bs
end
nextbet = f
else
chance = ch * 4
f = (b — balance) / 1.497
if (f < bs) then
f = bs
end
nextbet = f
end
end
end
end

if (v == 5) then
if (e > 0) then
c = c + 1
if (c > 2) then
c = 0
e = 0
v = 6
chance = ch * 8
f = (b — balance) / 0.248
if (f < bs) then
f = bs
end
nextbet = f
else
if (previousbet > ch * 3) then
c = 0
e = 0
v = 6
chance = ch * 8
f = (b — balance) / 0.248
if (f < bs) then
f = bs
end
nextbet = f
else
chance = ch * 6
f = (b — balance) / 0.665
if (f < bs) then
f = bs
end
nextbet = f
end
end
end
end

if (v == 6) then
if (e > 0) then
e = 0
v = 1
chance = ch
f = (b — balance) / 8.99
if (f < bs) then
f = bs
end
nextbet = f
end
end

end
end
end

# 6 мартинов (потоков)

Играет последовательно в 6 мартинов увеличивая ставку вдвое в каждом отдельном потоке. Потоки не связаны друг с другом.

chance     = 49.95
bet1 = 0.00000001
bet2 = 0.00000001
bet3 = 0.00000001
bet4 = 0.00000001
bet5 = 0.00000001
bet6 = 0.00000001
multiplier = 2
i          = 0

function dobet()
i = i+1
if (i  == 1) then
if win then
bet1    = 0.00000001
nextbet = bet2
else
bet1 = bet1*multiplier
end
end

if (i  == 2) then
if win then
bet2    = 0.00000001
nextbet = bet3
else
bet2    = bet2*multiplier
nextbet = bet3
end
end

if (i  == 3) then
if win then
bet3    = 0.00000001
nextbet = bet4
else
bet3    = bet3*multiplier
nextbet = bet4
end
end
if (i  == 4) then
if win then
bet4    = 0.00000001
nextbet = bet5
else
bet4    = bet4*multiplier
nextbet = bet5
end

end
if (i  == 5) then
bethigh = true
if win then
bet5    = 0.00000001
nextbet = bet6
else
bet5    = bet5*multiplier
nextbet = bet6
end

end

if (i  == 6) then
if win then
bet6    = 0.00000001
nextbet = bet1
else
bet6 = bet6*multiplier
nextbet = bet1
end
i = 0
end

end