Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- === SmartLevelX v1.4 FINAL ===
- -- Recovery 8 level + chance random + stop profit/loss sederhana
- base = balance / 1000000
- minbet = 0.00000001
- nextbet = base
- chance = 6.5
- bethigh = true
- -- STATE
- lossStreak = 0
- level = 0
- step = 0
- spent = 0
- inRecovery = false
- profit = 0
- initialbalance = balance
- -- STOP SETTINGS
- smartTargetProfit = balance * 0.0015 -- stop profit (0.15%)
- smartStopLoss = balance * -0.005 -- stop loss (-0.5%)
- -- RECOVERY LEVELS: chance range + multiplier
- recoveryLevels = {
- [1] = { min = 4.2, max = 5.2, multiplier = 1.1 },
- [2] = { min = 5.5, max = 6.5, multiplier = 1.12 },
- [3] = { min = 6.2, max = 7.0, multiplier = 1.15 },
- [4] = { min = 7.5, max = 8.5, multiplier = 1.18 },
- [5] = { min = 10.0, max = 11.5, multiplier = 1.2 },
- [6] = { min = 13.0, max = 14.5, multiplier = 1.22 },
- [7] = { min = 17.0, max = 18.5, multiplier = 1.25 },
- [8] = { min = 22.0, max = 24.0, multiplier = 1.28 }
- }
- function randChance(min, max)
- return min + math.random() * (max - min)
- end
- function payoutFromChance(ch)
- return 99 / ch
- end
- function calculateRecoveryBet(spent, payout, multiplier)
- if payout <= 1 then payout = 1.01 end
- return (spent + base * 0.5) / (payout - 1) * multiplier
- end
- function enterRecovery()
- inRecovery = true
- level = 1
- step = 0
- local r = recoveryLevels[level]
- chance = randChance(r.min, r.max)
- end
- function upgradeRecovery()
- if level < 8 then
- level = level + 1
- step = 0
- local r = recoveryLevels[level]
- chance = randChance(r.min, r.max)
- end
- end
- function exitRecovery()
- inRecovery = false
- lossStreak = 0
- step = 0
- level = 0
- spent = 0
- chance = 6.5
- nextbet = base
- end
- function dobet()
- profit = balance - initialbalance
- -- STOP PROFIT / LOSS SIMPEL
- if profit >= smartTargetProfit then
- print("[STOP] Target profit tercapai: " .. string.format("%.8f", profit))
- stop()
- end
- if profit <= smartStopLoss then
- print("[STOP] Batas kerugian tercapai: " .. string.format("%.8f", profit))
- stop()
- end
- if win then
- if inRecovery then
- exitRecovery()
- else
- lossStreak = 0
- nextbet = base
- end
- else
- lossStreak = lossStreak + 1
- spent = spent + nextbet
- if not inRecovery and lossStreak >= 5 then
- enterRecovery()
- end
- if inRecovery then
- step = step + 1
- local r = recoveryLevels[level]
- local payout = payoutFromChance(chance)
- nextbet = calculateRecoveryBet(spent, payout, r.multiplier)
- if step >= 5 and level < 8 then
- upgradeRecovery()
- end
- if nextbet > balance * 0.5 then
- nextbet = balance / 2
- stop()
- end
- else
- nextbet = base
- end
- end
- bethigh = math.random(0,1) == 1
- end
Add Comment
Please, Sign In to add comment