Created
May 6, 2020 21:21
-
-
Save XclusiveDigital/5c4cc13e2c03b5075fdda21fa9cb5d73 to your computer and use it in GitHub Desktop.
Coqui- Added StopLoss - Original: https://bitcoinonline.io/page/view-post?id=75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chance = 61 | |
prebet1 = 0.000075 | |
preroll1 = 3 | |
base = prebet1*2 | |
prebet = prebet1 | |
preroll = preroll1 | |
nextbet = prebet | |
betlimit = prebet*15 | |
target = balance+5000 | |
profittarget = balance+base | |
initbalance = balance | |
losslimit = balance*10 | |
firstbet=prebet | |
secondbet=prebet | |
temp=0 | |
bethigh=true | |
betcount=0 | |
count=0 | |
maxLossPercentage = 10 -- StopLoss - Percentage of initbalance to risk on streak. If nextbet loss would exceed this amount, reset. | |
resetseed() | |
function dobet() | |
betcount += 1 | |
count += 1 | |
betlimit = prebet * 200 | |
e = currentstreak + preroll | |
if (!win) and (previousbet > firstbet) then | |
secondbet = firstbet | |
firstbet = previousbet | |
end | |
-- <<Bet Randomizer>> | |
r = math.random(2) | |
if (r == 1) then | |
bethigh = true | |
else | |
bethigh = false | |
end | |
-- <<Bet Randomizer>> | |
if (betcount == 25) then | |
betcount=0 | |
print("Balance :"..string.format("%.8f", initbalance)) | |
print(" ") | |
print("Profit : "..string.format("%.8f", profit)) | |
print(" ") | |
end | |
if (count > 500) then | |
resetseed() | |
count=0 | |
end | |
if (balance >= profittarget) then | |
print("=====================") | |
print("PROFIT SET REACHED!!!") | |
print("Profit : "..string.format("%.8f", profit)) | |
print("Final Balance : "..string.format("%.8f", balance)) | |
print("Stop Loss Risk: " .. string.format("%.8f",initbalance*(maxLossPercentage/100))) | |
print("=====================") | |
firstbet = prebet | |
secondbet = prebet | |
nextbet = prebet | |
preroll = preroll1 | |
base = prebet * preroll | |
profittarget = balance + base | |
losslimit = balance * 0.90 | |
end | |
if (balance >= target) then | |
stop() | |
print("") | |
print("") | |
print("=====================") | |
print("TARGET REACHED!!!") | |
print("Profit : "..string.format("%.8f", profit)) | |
print("Final Balance : "..string.format("%.8f", balance)) | |
print("=====================") | |
print("") | |
print(" ") | |
end | |
if (losslimit > balance) then | |
prebet = prebet1 * 2 | |
base = prebet * 2 | |
losslimit = balance * 0.90 | |
else | |
prebet = prebet1 | |
base = prebet * 2 | |
end | |
if (balance > initbalance) then | |
if ((balance-initbalance) == 0) then | |
nextbet = prebet | |
end | |
if ((balance-initbalance) > 0) then | |
nextbet = prebet | |
end | |
initbalance = balance | |
firstbet = prebet | |
secondbet = prebet | |
end | |
if (balance < initbalance) then | |
if ((initbalance-balance) == prebet) then | |
nextbet = prebet | |
end | |
if ((initbalance-balance) == (prebet * 3)) then | |
nextbet = prebet | |
end | |
if ((initbalance-balance) > (prebet * 4)) then | |
nextbet = firstbet + secondbet | |
end | |
if (win) and (initbalance > balance) then | |
nextbet = previousbet | |
end | |
end | |
if (!win) and (e == 2) then | |
nextbet = previousbet | |
end | |
--STOP LOSS-- | |
if ((initbalance - balance - nextbet) > initbalance * (maxLossPercentage/100)) then | |
print("=====================") | |
print("STOP LOSS REACHED!!!") | |
print("Profit : "..string.format("%.8f", profit)) | |
print("Final Balance : "..string.format("%.8f", balance)) | |
print("=====================") | |
firstbet = prebet | |
secondbet = prebet | |
nextbet = prebet | |
preroll = preroll1 | |
base = prebet * preroll | |
profittarget = balance + base | |
losslimit = balance * 0.90 | |
end | |
end --End of Dobet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment