-- made by fahmi, tele: megapro99 - sc the power of streak --
payout       = 19.8           -- set payout
setsl        = xxxx           -- set streak lose default
streak       = setsl          -- set lose streak
minbet       = 1e-8           -- set min bet
wdb          = 0              -- set wdb on=1, off=0
target       = balance * 2    -- set target profit
stoplose     = balance * 0    -- set stoplose
chance       = 99/payout
nextbet      = minbet
martimulti = 1.12       -- set multiply
ctlose       = 0
maxls        = 0
resetseed()
resetpartialprofit()
resetstats()
function dobet()
    risk      = (martimulti ^ streak) * (streak/(streak *(martimulti - 1)))
    basebet = balance / risk
    if maxls > ctlose then
         maxls = maxls
    else
         maxls = ctlose
    end
    if (streak - maxls) < 20 then
         streak = setsl+(20-(streak-maxls))
    else
         streak = setsl
    end
    if balance > target then stop() end
    if balance < stoplose then stop() end
    if win then
         bethigh = !bethigh
         nextbet = basebet
         if ctlose > (streak*0.8) or lastBet.nonce > 999 then
              resetseed()
              chance = chance + 1
           nextbet = basebet
              stop()
              sleep(5)
              resume()
         end
         resetpartialprofit()
         ctlose = 0
    else
         ctlose = ctlose + 1
         nextbet = previousbet * martimulti
         if lastBet.roll > 55 and lastBet.roll < 95 then
              bethigh = true
         else
              bethigh = false
         end
    end
    if chance > 8 then
         stop()
         sleep(10)
         start()
    end
    if nextbet < minbet then nextbet = minbet end
     log("\n\n ***** sc the power of streak ***** \n")
     log("Maxls - ct \t[ "..maxls.."\t"..ctlose.." >>>>> current Lose Streak ]")
     log("ls-risk-base \t[ "..string.format("%.0f",streak).."\
t"..string.format("%.0f",risk).."\t"..string.format("%.8f",basebet).." >>> set sc ]
\n")
     log("-=■ cProfit \t[ "..string.format("%.8f", profit).."\t"..
string.format("%.2f", (profit/(balance-profit))*100).."% ]")
     log("-=■ Basebet \t[ "..string.format("%.8f", basebet).." ]")
     log("-=■ NextBet \t[ "..string.format("%.8f", nextbet).." ]")
     log("-=■ Wager \t[ "..string.format("%.8f", wagered).."\t"..
string.format("%.2f", wagered/(balance-profit)*100).."% ]")
end