if currentstreak==-3 then
I've been working on this for a long time and I'm very close. Please can you take 1 minute to tell me how to get bet2 to work. Right now it enters correctly but is repeating bet1. I don't understand the losecount function properly and i couldn't find any helpful info.
chance = 50
basebet = .0000001
nextbet = .0000001
bethigh = true
losecount = 0
bet1 = 0.000005
bet2 = 0.000010
function dobet()
if (win) then
nextbet = basebet
losecount = 0
else
nextbet = basebet
if (currentstreak==-3) then
losecount += 1
end
if currentstreak==-4 then
nextbet = basebet
end
if (losecount == 1) and (currentstreak==-3) then
nextbet = bet1
end
if (losecount == 2) and (currentstreak==-3) then
nextbet = bet2
end
end
end
end
You want to martingale only on the 3rd losing bet right? So multiply nextbet with your multiplier (in your case 2) on that bet, and reset your bet if it's higher.
From
https://steemit.com/dicebot/@seuntjie/dicebot-programmer-mode-tutorial-1-1-variables (See
https://bot.seuntjie.com/programmermode.aspx for links to more tutorials):
currentstreak, type double. Permission: Read Only. Shows the current winning or losing streak. When positive (>0), it's a winning streak. When negative (<0) it's a losing streak. Can never be 0. Only set after first bet.
so:
if currentstreak==-3 then
--this is exactly 3 losses is a row, do something here
else
--every bet that is NOT directly after a losing streak of exactly 3 bets will go in here.
end
You're over-complicating the problem with all of the variables and checks you're adding. If you want it to multiply after every 3rd loss, look into the modulus (%) operator.