I ran that just like above. Personally, decrementing the win till it's zero seemed like a waste of a lot of winning bets. Also I changed the win/lose multipliers. At 77.7% you should be winning about 3 out of 4 bets. With the multipliers I've set it take 2.5 wins to recover from 1 lose. Also by setting the lose multiplier down to 1.5 it doesn't get too out of hand. I also added a stop on win function, and invest function. Since there is no check to keep from busting I wanted to strip off some winnings before it busts.
This is on JD, so you might have to comment out the invest function if your using on a site that doesn't invest.
chance=77.7
multiplier=1.5
multiplier2=0.92
base=0.0000150
nextbet = base
bethigh = false
target = .00005
investtarget = .001
tmpprofit = 0
investprofit = 0
wincount = 10
stopnow = false
function dobet()
tmpprofit += currentprofit
investprofit += currentprofit
if win then
if (tmpprofit > target) then
tmpprofit = 0
nextbet = base
if(stopnow) then stop() end
if(investprofit > investtarget ) then
investprofit = 0
invest(investtarget)
end
else
nextbet=previousbet*multiplier2
if(nextbet < base) then nextbet = base end
end
else
nextbet=previousbet*multiplier
if(nextbet < base) then nextbet = base end
end
end
to comment out a line just put -- in the first spaces of the line.
so to comment this out.
investprofit = 0
put
-- investprofit = 0
https://i.imgur.com/s0kBRSP.png
The worse case lose I had to cover so far was .005 , So far I seems to work well...
edit: forgot to mention. When your in a lose streak, it keeps increasing your bets. Once it starts winning then back, it will reset to the base bet before it actually reaches that. So even thought you seem to be down quite a bit, it only take a few wins (8-10) at the higher bet, to get back in the green.
Hi,
Ive just joined and im trying out the above code on primedice.
Things started off well and profit was stable.
So after an hour or so I left it do its thing, Only to to see it stopped at "insufficient funds" when I returned a bit later.
it seems the bets were getting larger all the time and I eventually lost as the bets were getting too big.
Just wondering if there are any tips to slow it from betting so high.
thanks.