basebet = 0.
00007
chance = 49.5
nextbet = basebet
function dobet()
if balance >10000 then
stop()
end
if profit > 0 then
nextbet = basebet
end
if currentstreak < 0 and profit < 0.0000000001 then
nextbet = basebet
end
if currentstreak > 0 and profit < 0.0000000001 then
nextbet = -1*profit* 3.5
end
if currentstreak > 1 and profit < 0.0000000001 then
nextbet = basebet
end
if nextbet < basebet then
nextbet = basebet
end
-- Stop loss at 10% of the total balance.
if balance <= (balance + profit) * 0.9 then
stop()
end
end