max = balance
chance = 70
bb = balance*0.00001
w = 0
l = 0
nextbet = balance*0.00001
trailingstop = balance
function dobet()
if trailingstop < max/2 then
stop()
end
if win then
w = w+1
nextbet = previousbet/1.05
l = 0
else
w = 0
l = l+1
nextbet = previousbet*7.2
end
if l>1 then
nextbet = previousbet*5.1
l = 0
end
if w>20 then
w = 0
nextbet = previousbet*1.7
end
if w>45 then
w = 0
nextbet = previousbet*1.6
end
if w>75 then
w = 0
nextbet = previousbet*1.5
end
if balance>max then
max = balance
l = 0
w = 0
nextbet = balance*0.00001
end
end