Created
April 8, 2017 21:47
-
-
Save uniacid/1ee96a9341d82022eeafbb7e74ef7c4f to your computer and use it in GitHub Desktop.
pd2s
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 = 70.71 | |
bethigh = true | |
basebet = 0.00000022 | |
firstlossbet = 0.00000222 | |
secondlossbet = 0.00002222 | |
thirdlossbet = 0.00022222 | |
nextbet = basebet | |
counter=0 | |
betcount=0 | |
wincount=0 | |
totalwincount=0 | |
losscount=0 | |
totallosscount=0 | |
profittarget= 1.00000000 | |
function dobet() | |
if (win) then | |
wincount+=1 | |
totalwincount+=1 | |
-- reset to base after 3x wins | |
if (wincount == 1) then | |
wincount=0 | |
losscount=0 | |
nextbet = basebet | |
end | |
-- reset on third loss on a row after 2 wins | |
if (losscount == 2) then | |
if (wincount == 1) then | |
wincount=0 | |
losscount=0 | |
nextbet = basebet | |
end | |
end | |
if (losscount == 3) then | |
if (wincount == 1) then | |
wincount=0 | |
losscount=0 | |
nextbet = basebet | |
end | |
end | |
else | |
losscount+=1 | |
totallosscount+=1 | |
-- on first loss | |
if (losscount == 1) then | |
wincount = 0 | |
nextbet = firstlossbet | |
end | |
-- on second loss during first | |
if (losscount == 2) then | |
wincount = 0 | |
nextbet = secondlossbet | |
end | |
-- on third loss during first/second | |
if (losscount == 3) then | |
wincount = 0 | |
nextbet = thirdlossbet | |
end | |
if (losscount > 2) then | |
stop() | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment