Basebet = 0.00000001
Chance = 4.95
Bethigh = false
Nextbet = basebet
Target = 1
Old = balance
Lol = 0
Resetstats()

Function dobet()
If win then
Bethigh = !bethigh
Lol = 0
Else
Lol = lol+1
End
If lol>=15 then
Nextbet = previousbet*2
Lol = 0
End
If balance>=old then
Lol = 0
Nextbet = basebet
Old = balance
End
If (balance>target) then
Stop()
End
End