You could just create a 2nd "betcount" variable... and do the check and increment on that as well... so instead of betcount, use lowCount and highCount...
lowcount = 0
highcount = 0
...
function dobet()
...
#check and reset on wins etc
...
if lastBet.Roll < 99.34 then
highcount += 1
else
highcount = 0
end
if lastBet.Roll > 0.66 then
lowcount += 1
else
lowcount = 0
end
if highcount > 100 then
chance = 0.66
nextbet = previousbet*1.00725
bethigh = true
bettinghigh = true
elseif lowcount > 100 then
chance = 0.66
nextbet = previoubet*1.00725
bethigh = false
bettinglow = true
end
end
You will probably need to put in checks on the "bettingHigh = true" and "bettingLow = true" flags or you might find it switches from one to the other if both high and low hit 200+ streaks
One last thing... the "max expected" loss streak for that chance over 1,000,000 rolls is something like 1400-1500... so don't be too surprised when you suddenly hit a crazy 1000+ losing streak and find you've lost 0.1 BTC+ on your martingale #justSaying
Hi, Thank you for the response on my script!!
I've been working on my script all night long and I succeeded to count both ways. Here is my improved script.
chance = 50
basebet = .0000002
highcount = 0
lowcount = 0
nextbet= basebet
bethigh = false
function dobet()
if highcount>200 and win then
chance = 50
nextbet= basebet
bethigh=false
highcount=0
end
if lowcount>200 and win then
chance = 50
nextbet= basebet
bethigh=true
lowcount=0
end
if lastBet.Roll <99.34 and lowcount<200 then
highcount +=1
end
if lastBet.Roll >=99.34 then
highcount = 0
end
if lastBet.Roll >00.66 and highcount<200 then
lowcount +=1
end
if lastBet.Roll <=00.66 then
lowcount = 0
end
if highcount >=200 and lowcount <200 then
chance = .66
nextbet = previousbet*1.00725
bethigh = true
end
if lowcount >=200 and highcount <200 then
chance = .66
nextbet = previousbet*1.00725
bethigh = false
end
end
end
However, when the martingale is triggered after 200 count, the other side stop counting at 199 so that I don't trigger the martinale on the high side while low side martingale is in action.
How could I make the other side keep counting yet it doesn't trigger the martingale to other side?
And when that is possible, Let's say after a win on a martingale on the low side, the high side has accumulated count of 400 counts, then I want to go into the high side martingale right away with the increased basebet amount that would have been betted if it was triggered at 200 count.
so when the accumulated count is 400, then I want it to start the martingale at higher bet amount instead of the basebet.
PS. when should I use "elseif" instead of "if"
What is "bettinghigh", "bettinglow" true/false ? What do they do?
Thank you for the help!!