Bitcoin Forum
October 23, 2017, 07:08:34 PM
 News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 Home Help Search Donate Login Register
 Pages: 1 [2] 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
 Author Topic: Seuntjie' Dice bot programmers mode discussion.  (Read 48569 times)
chilly2k
Legendary

Online

Activity: 920

 July 24, 2015, 12:44:54 PM

Another twist on the 39.6% script.

This time it's a straight martingale.  Every bet counts, but, it also does a reverse martingale in a win streak.  once it hits 2 base bet wins, it increase by 1/2 of the previous wins profit.  So when the win streak ends, your always in profit, and it increases with each win.

Table bet driven, and it will bust eventually.  I know this for a fact......

Prints the total balance needed to run all bets at the very beginning.  Could add a check to make sure your balance is enough to cover all bets, but I know I need around 1.6 clams for these bets.

Also this is not meant to be the ultimate strategy, this is just something I'm playing around with.  But it does show some stuff you can do with the bot.  You can use this as a base and chance it as you see fit.

Code:
chance = 39.6
winbets = {.0000010,
.00000200,
.00000400,
.0000100,
.0000400,
.0001000,
.0004000,
.0008,
.0016,
.0040,
.01,
.04,
.1,
.2,
.4,
.8}
maxbets = #winbets
basebet = .0000005
totalneeded = basebet
Indx=0
for Indx = 1,maxbets do
totalneeded = totalneeded + winbets[Indx]
end
print(totalneeded)
startbalance = balance
nextbet = basebet
savefactor = 1.25
target = .01
targetbalance = balance + target
bethigh = true
low = 0
high = 0
losecount = 0
stopnow = false
totallose = 0
wincount = 0
nextwinbet = 0

function dobet()

if (lastBet.roll < chance) then
low += 1
end
if (lastBet.roll > (100 - chance)) then
high += 1
end

if (win) then

if (high > low) then
bethigh = true
else
bethigh = false
end

wincount += 1
totallose = 0
newbalance = balance
nextbet = basebet
if (stopnow) then stop() end
nextwinbet = 0
losecount = 0
if (currentstreak > 2) then
nextbet = basebet + (lastBet.profit /2)
end
if (balance > targetbalance) then
invest((balance - targetbalance)+target)
targetbalance = targetbalance + target
newbalance = targetbalance
end
if (newbalance > startbalance * savefactor) then
invest(balance-startbalance)
targetbalance = startbalance + target
startbalance = startbalance * savefactor
end
else
nextwinbet += 1
losecount += 1
print(losecount)
if (nextwinbet > maxbets) then stop() end
nextbet = winbets[nextwinbet]
wincount = 0
totallose = totallose + 1
end

end

 .Beyond The Void. ██▄████▄█████████████████████████████████████████████████████████████████  ██████████  ███████████████████████▄██████████████████████▄██████████████████████████████████████████████████████████████████████████████▀██████████████████████▀███▀ ██████████ ▀██████              ███ ..THE FIRST.BLOCKCHAIN RTS ✸ .FREE-TO-PLAY.MODEL. ✸ ..NEXIUM.GAME TOKEN ✸ .TRUE OWNERSHIP.CONCEPT.
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
chilly2k
Legendary

Online

Activity: 920

 July 26, 2015, 02:22:16 PM

Legion of BOOM.....

New version of the 39.6% script.  Several changes.  Same warnings apply, this can and will bust.  Your just hoping not to bust till you've made back your bankroll plus some profit.

This one is setup to bet based on your balance.  It's a martingale/reverse martingale.  The starting bet is set up to cover a 20 lose streak. (20 bets).  Randomly it will bet based on a 10 lose streak.  That's the BOOM part.  It's currently setup to try this about 5% of the time.

R = math.random(1,20)

This statement assigns R a random value between 1 and 20.

if(R == 17) then
nextbet = balance / boomrisk
print("BOOM")
end

17 is my lucky number so it R equals 17 try the higher bet.  This is only done in the section of code where we calculate a new base bet.

This does all of the same investments as the other bots.

It also randomly switches hi/lo 10% of the times on loses.

I started out trying the Boom at 1% (random number 1-100).  But it didn't hit enough for my liking.  I changed it to 5%.  The first run ended with a 10 lose streak  on the BOOM cycle.  This was after about 60% win back.  So I lost about 40% of my initial bankroll (2 Clams) (ended with 1.2).

Next run is still going, Same setup, started with 2 clams.  Current profit is 2.1 clams.  Current balance is 2.05  So this run I'm now playing with the houses clams.
I'll update once this run finishes.  EDIT: Run busted on a Boom cycle.  profit was 1.1 clams.

Code:
chance = 39.6
martimulti = 1.85
streak = 20
risk = (martimulti ^ streak) * (streak/(streak *(martimulti - 1)))
print(risk)
boomstreak = 10
boomrisk = (martimulti ^ boomstreak) * (boomstreak/(boomstreak *(martimulti - 1)))

startbalance = balance
nextbet = balance / risk
basebet = balance / risk

savefactor = 1.25
target = .01
targetbalance = balance + target
bethigh = true
low = 0
high = 0
losecount = 0
stopnow = false
totallose = 0
wincount = 0
nextwinbet = basebet * martimulti

function dobet()

if (win) then
wincount += 1
totallose = 0
newbalance = balance
nextbet = balance / risk
base = true
if (stopnow) then stop() end
if (wincount > 2 ) then
nextbet = previousbet + (lastBet.profit /2)
base = false
else
R = math.random(1,20)
if(R == 17) then
nextbet = balance / boomrisk
print("BOOM")
end
end
losecount = 0
if (balance > targetbalance) then
invest((balance - targetbalance)+target)
targetbalance = targetbalance + target
newbalance = targetbalance
end
if (newbalance > startbalance * savefactor) then
invest(balance-startbalance)
targetbalance = startbalance + target
startbalance = startbalance * savefactor
end
else
if (losecount == 0 and !base) then
nextbet = balance / risk
base = true
else
nextbet = previousbet * martimulti
base = false
end
losecount += 1
print(losecount)
if (math.random() < .1) then bethigh = !bethigh end
wincount = 0
end

end

 .Beyond The Void. ██▄████▄█████████████████████████████████████████████████████████████████  ██████████  ███████████████████████▄██████████████████████▄██████████████████████████████████████████████████████████████████████████████▀██████████████████████▀███▀ ██████████ ▀██████              ███ ..THE FIRST.BLOCKCHAIN RTS ✸ .FREE-TO-PLAY.MODEL. ✸ ..NEXIUM.GAME TOKEN ✸ .TRUE OWNERSHIP.CONCEPT.
seuntjie
Legendary

Offline

Activity: 1414

 July 26, 2015, 04:29:23 PM

Legion of BOOM.....

New version of the 39.6% script.  Several changes.  Same warnings apply, this can and will bust.  Your just hoping not to bust till you've made back your bankroll plus some profit.

This one is setup to bet based on your balance.  It's a martingale/reverse martingale.  The starting bet is set up to cover a 20 lose streak. (20 bets).  Randomly it will bet based on a 10 lose streak.  That's the BOOM part.  It's currently setup to try this about 5% of the time.

R = math.random(1,20)

This statement assigns R a random value between 1 and 20.

if(R == 17) then
nextbet = balance / boomrisk
print("BOOM")
end

17 is my lucky number so it R equals 17 try the higher bet.  This is only done in the section of code where we calculate a new base bet.

This does all of the same investments as the other bots.

It also randomly switches hi/lo 10% of the times on loses.

I started out trying the Boom at 1% (random number 1-100).  But it didn't hit enough for my liking.  I changed it to 5%.  The first run ended with a 10 lose streak  on the BOOM cycle.  This was after about 60% win back.  So I lost about 40% of my initial bankroll (2 Clams) (ended with 1.2).

Next run is still going, Same setup, started with 2 clams.  Current profit is 2.1 clams.  Current balance is 2.05  So this run I'm now playing with the houses clams.
I'll update once this run finishes.

Code:
chance = 39.6
martimulti = 1.85
streak = 20
risk = (martimulti ^ streak) * (streak/(streak *(martimulti - 1)))
print(risk)
boomstreak = 10
boomrisk = (martimulti ^ boomstreak) * (boomstreak/(boomstreak *(martimulti - 1)))

startbalance = balance
nextbet = balance / risk
basebet = balance / risk

savefactor = 1.25
target = .01
targetbalance = balance + target
bethigh = true
low = 0
high = 0
losecount = 0
stopnow = false
totallose = 0
wincount = 0
nextwinbet = basebet * martimulti

function dobet()

if (win) then
wincount += 1
totallose = 0
newbalance = balance
nextbet = balance / risk
base = true
if (stopnow) then stop() end
if (wincount > 2 ) then
nextbet = previousbet + (lastBet.profit /2)
base = false
else
R = math.random(1,20)
if(R == 17) then
nextbet = balance / boomrisk
print("BOOM")
end
end
losecount = 0
if (balance > targetbalance) then
invest((balance - targetbalance)+target)
targetbalance = targetbalance + target
newbalance = targetbalance
end
if (newbalance > startbalance * savefactor) then
invest(balance-startbalance)
targetbalance = startbalance + target
startbalance = startbalance * savefactor
end
else
if (losecount == 0 and !base) then
nextbet = balance / risk
base = true
else
nextbet = previousbet * martimulti
base = false
end
losecount += 1
print(losecount)
if (math.random() < .1) then bethigh = !bethigh end
wincount = 0
end

end

Again,could you upload these to bot.seuntjie.com when you have the time. Would be much appreciated

anp31
Jr. Member

Offline

Activity: 54

 August 03, 2015, 11:26:44 PM

Hi chilly.
I have this (it's working):

chance=49.5
multiplier=1.05
multiplier2=0.95
base=0.00001000
nextbet = base
bethigh = false
target = .0001

function dobet()

if win then
nextbet=previousbet*multiplier2
else
nextbet=previousbet*multiplier
end
end

Now i want to add reset bets function, same like you have in your strategy (reset when target balance is met)
In other words i want to start with 1 btc, startbet(0.00001000) target(0.00000100) when i make my target i want to automatically reset bets and start over with new balance.
Can you help me with that?

chilly2k
Legendary

Online

Activity: 920

 August 04, 2015, 03:31:14 AM

Hi chilly.
I have this (it's working):

chance=49.5
multiplier=1.05
multiplier2=0.95
base=0.00001000
nextbet = base
bethigh = false
target = .0001

function dobet()

if win then
nextbet=previousbet*multiplier2
else
nextbet=previousbet*multiplier
end
end

Now i want to add reset bets function, same like you have in your strategy (reset when target balance is met)
In other words i want to start with 1 btc, startbet(0.00001000) target(0.00000100) when i make my target i want to automatically reset bets and start over with new balance.
Can you help me with that?

I think I understand what your asking.  But I think you have your startbet and target reversed in the comment above.  (not the code).  first you need to save your balance.  I created savebalance in the init section (before the dobet function).  I'm setting it equal to balance, which is a special variable that the bot fills in.  So in theory we should now have the balance before any bets are placed.  In reality you should issue one bet from the bot before starting your script.  Then balance will be correct.  But even if you forget it will correct itself pretty quick.

now that you have your initial balance, you only need to check for the target in the win path.  IE you can't reach your target on a lose.  so we can add another if statement before you set nextbet.  This checks and if the current balance minus the saved balance is greater then your target, save the new balance and reset the bet to the base.  if you didn't reach the target, increase your bet.

here is the code.

Code:
chance=49.5
multiplier=1.05
multiplier2=0.95
base=0.00001000
nextbet = base
bethigh = false
target = .0001
savebalance = balance

function dobet()

if win then
if ((balance - savebalance) > target) then
savebalance = balance
nextbet = base
else
nextbet=previousbet*multiplier2
end
else
nextbet=previousbet*multiplier
end
end

 .Beyond The Void. ██▄████▄█████████████████████████████████████████████████████████████████  ██████████  ███████████████████████▄██████████████████████▄██████████████████████████████████████████████████████████████████████████████▀██████████████████████▀███▀ ██████████ ▀██████              ███ ..THE FIRST.BLOCKCHAIN RTS ✸ .FREE-TO-PLAY.MODEL. ✸ ..NEXIUM.GAME TOKEN ✸ .TRUE OWNERSHIP.CONCEPT.
Enzyme
Sr. Member

Offline

Activity: 420

 August 04, 2015, 03:55:19 AM

Legion of BOOM.....

New version of the 39.6% script.  Several changes.  Same warnings apply, this can and will bust.  Your just hoping not to bust till you've made back your bankroll plus some profit.

This one is setup to bet based on your balance.  It's a martingale/reverse martingale.  The starting bet is set up to cover a 20 lose streak. (20 bets).  Randomly it will bet based on a 10 lose streak.  That's the BOOM part.  It's currently setup to try this about 5% of the time.

R = math.random(1,20)

This statement assigns R a random value between 1 and 20.

if(R == 17) then
nextbet = balance / boomrisk
print("BOOM")
end

17 is my lucky number so it R equals 17 try the higher bet.  This is only done in the section of code where we calculate a new base bet.

This does all of the same investments as the other bots.

It also randomly switches hi/lo 10% of the times on loses.

I started out trying the Boom at 1% (random number 1-100).  But it didn't hit enough for my liking.  I changed it to 5%.  The first run ended with a 10 lose streak  on the BOOM cycle.  This was after about 60% win back.  So I lost about 40% of my initial bankroll (2 Clams) (ended with 1.2).

Next run is still going, Same setup, started with 2 clams.  Current profit is 2.1 clams.  Current balance is 2.05  So this run I'm now playing with the houses clams.
I'll update once this run finishes.  EDIT: Run busted on a Boom cycle.  profit was 1.1 clams.

Code:
chance = 39.6
martimulti = 1.85
streak = 20
risk = (martimulti ^ streak) * (streak/(streak *(martimulti - 1)))
print(risk)
boomstreak = 10
boomrisk = (martimulti ^ boomstreak) * (boomstreak/(boomstreak *(martimulti - 1)))

startbalance = balance
nextbet = balance / risk
basebet = balance / risk

savefactor = 1.25
target = .01
targetbalance = balance + target
bethigh = true
low = 0
high = 0
losecount = 0
stopnow = false
totallose = 0
wincount = 0
nextwinbet = basebet * martimulti

function dobet()

if (win) then
wincount += 1
totallose = 0
newbalance = balance
nextbet = balance / risk
base = true
if (stopnow) then stop() end
if (wincount > 2 ) then
nextbet = previousbet + (lastBet.profit /2)
base = false
else
R = math.random(1,20)
if(R == 17) then
nextbet = balance / boomrisk
print("BOOM")
end
end
losecount = 0
if (balance > targetbalance) then
invest((balance - targetbalance)+target)
targetbalance = targetbalance + target
newbalance = targetbalance
end
if (newbalance > startbalance * savefactor) then
invest(balance-startbalance)
targetbalance = startbalance + target
startbalance = startbalance * savefactor
end
else
if (losecount == 0 and !base) then
nextbet = balance / risk
base = true
else
nextbet = previousbet * martimulti
base = false
end
losecount += 1
print(losecount)
if (math.random() < .1) then bethigh = !bethigh end
wincount = 0
end

end

Good method, will test it out with a few dollars.
anp31
Jr. Member

Offline

Activity: 54

 August 04, 2015, 04:11:49 AM

Hi chilly.
I have this (it's working):

chance=49.5
multiplier=1.05
multiplier2=0.95
base=0.00001000
nextbet = base
bethigh = false
target = .0001

function dobet()

if win then
nextbet=previousbet*multiplier2
else
nextbet=previousbet*multiplier
end
end

Now i want to add reset bets function, same like you have in your strategy (reset when target balance is met)
In other words i want to start with 1 btc, startbet(0.00001000) target(0.00000100) when i make my target i want to automatically reset bets and start over with new balance.
Can you help me with that?

I think I understand what your asking.  But I think you have your startbet and target reversed in the comment above.  (not the code).  first you need to save your balance.  I created savebalance in the init section (before the dobet function).  I'm setting it equal to balance, which is a special variable that the bot fills in.  So in theory we should now have the balance before any bets are placed.  In reality you should issue one bet from the bot before starting your script.  Then balance will be correct.  But even if you forget it will correct itself pretty quick.

now that you have your initial balance, you only need to check for the target in the win path.  IE you can't reach your target on a lose.  so we can add another if statement before you set nextbet.  This checks and if the current balance minus the saved balance is greater then your target, save the new balance and reset the bet to the base.  if you didn't reach the target, increase your bet.

here is the code.

Code:
chance=49.5
multiplier=1.05
multiplier2=0.95
base=0.00001000
nextbet = base
bethigh = false
target = .0001
savebalance = balance

function dobet()

if win then
if ((balance - savebalance) > target) then
savebalance = balance
nextbet = base
else
nextbet=previousbet*multiplier2
end
else
nextbet=previousbet*multiplier
end
end

chilly2k
Legendary

Online

Activity: 920

 August 04, 2015, 04:23:08 AM

Glad it helped.  I played with it as is.  It worked great for several thousand bets then I got on a real bad streak and tanked.  I think I lost about .03 USD worth of clams...

Figuring out a way/timing/sequence to switch high/low would help.  Maybe resetting the seed if you get x far in the hole.

I have to keep reminding myself, no matter what you try, you will eventually lose.

I might try tightening up the target/base bet a little and see how that works.

Any way I fixed my Sig file, so now the donation addresses show...     Have fun and good luck....

 .Beyond The Void. ██▄████▄█████████████████████████████████████████████████████████████████  ██████████  ███████████████████████▄██████████████████████▄██████████████████████████████████████████████████████████████████████████████▀██████████████████████▀███▀ ██████████ ▀██████              ███ ..THE FIRST.BLOCKCHAIN RTS ✸ .FREE-TO-PLAY.MODEL. ✸ ..NEXIUM.GAME TOKEN ✸ .TRUE OWNERSHIP.CONCEPT.
anp31
Jr. Member

Offline

Activity: 54

 August 04, 2015, 04:39:26 AM

i sent you some clam, would be great if you could add hi/lo switch , i think switch after 1 loss will be best, player can get all winning streaks
seuntjie
Legendary

Offline

Activity: 1414

 August 04, 2015, 06:01:19 AM

Hi chilly.
I have this (it's working):

chance=49.5
multiplier=1.05
multiplier2=0.95
base=0.00001000
nextbet = base
bethigh = false
target = .0001

function dobet()

if win then
nextbet=previousbet*multiplier2
else
nextbet=previousbet*multiplier
end
end

Now i want to add reset bets function, same like you have in your strategy (reset when target balance is met)
In other words i want to start with 1 btc, startbet(0.00001000) target(0.00000100) when i make my target i want to automatically reset bets and start over with new balance.
Can you help me with that?

An alternative and maybe a better way to do this is to have a temp profit value, instead of saving and using the balance. When using such a temp profit value, it's independent of actions other than bets placed by the bot. For instance, if you're chatting on the site and send someone a tip while betting, or receive a tip or a deposit, it will not affect the betting.

Code:
chance=49.5
multiplier=1.05
multiplier2=0.95
base=0.00001000
nextbet = base
bethigh = false
target = .0001
tmpProfit = 0

function dobet()
tmpProfit += currentProfit
if win then
if (tmpProfit  > target) then
tmpProfit = 0
nextbet = base
else
nextbet=previousbet*multiplier2
end
else
nextbet=previousbet*multiplier
end
end

Note: I didn't actually test this code, But it should work.
Note 2: This can be done with the advanced settings

chilly2k
Legendary

Online

Activity: 920

 August 04, 2015, 01:53:29 PM

Hi chilly.
I have this (it's working):

chance=49.5
multiplier=1.05
multiplier2=0.95
base=0.00001000
nextbet = base
bethigh = false
target = .0001

function dobet()

if win then
nextbet=previousbet*multiplier2
else
nextbet=previousbet*multiplier
end
end

Now i want to add reset bets function, same like you have in your strategy (reset when target balance is met)
In other words i want to start with 1 btc, startbet(0.00001000) target(0.00000100) when i make my target i want to automatically reset bets and start over with new balance.
Can you help me with that?

An alternative and maybe a better way to do this is to have a temp profit value, instead of saving and using the balance. When using such a temp profit value, it's independent of actions other than bets placed by the bot. For instance, if you're chatting on the site and send someone a tip while betting, or receive a tip or a deposit, it will not affect the betting.

Code:
chance=49.5
multiplier=1.05
multiplier2=0.95
base=0.00001000
nextbet = base
bethigh = false
target = .0001
tmpProfit = 0

function dobet()
tmpProfit += currentProfit
if win then
if (tmpProfit  > target) then
tmpProfit = 0
nextbet = base
else
nextbet=previousbet*multiplier2
end
else
nextbet=previousbet*multiplier
end
end

Note: I didn't actually test this code, But it should work.
Note 2: This can be done with the advanced settings

Yes, for resetting the bet, your right using the profit vs balance is much better.  I tested your code and it works fine.

To understand the difference.  I was trying to play through that bad streak I was having.  I hit a few faucets , to get my balance back up, then resumed the script.  As soon as I hit a winner it reset the bet, even though I was still quite a bit in the hole.

 .Beyond The Void. ██▄████▄█████████████████████████████████████████████████████████████████  ██████████  ███████████████████████▄██████████████████████▄██████████████████████████████████████████████████████████████████████████████▀██████████████████████▀███▀ ██████████ ▀██████              ███ ..THE FIRST.BLOCKCHAIN RTS ✸ .FREE-TO-PLAY.MODEL. ✸ ..NEXIUM.GAME TOKEN ✸ .TRUE OWNERSHIP.CONCEPT.
ripzombie
Full Member

Offline

Activity: 226

Bitcoin

 August 04, 2015, 02:28:48 PM

How do we use it?

1-programmer mode open
2-code copy - paste
3- ?? How do I start ??

Space for rent (you ad here) 0.01BTC per month
chilly2k
Legendary

Online

Activity: 920

 August 04, 2015, 03:10:33 PM

How do we use it?

1-programmer mode open
2-code copy - paste
3- ?? How do I start ??

First make sure you understand what the script is going to do.  Then make sure your balance is not larger then your willing to lose.

If your still ok, then at the top of that programmer mode panel, there are 2 tabs code/console.  Your on the code tab now.  Switch (click on) the console tab.

The top part is the output, the bottom is for your input.

Click on the bottom section, and type in start().

The script should start running.

You can also test the script by using the runsim() command.

runsim(double startingBalance, int NumberOfBets)

runsim( x,y)

x can handle decimals.  So you could say 1 or 1.00000010   Thats the starting balance
y must be a whole number                                               This is the number of rolls to simulate.

 .Beyond The Void. ██▄████▄█████████████████████████████████████████████████████████████████  ██████████  ███████████████████████▄██████████████████████▄██████████████████████████████████████████████████████████████████████████████▀██████████████████████▀███▀ ██████████ ▀██████              ███ ..THE FIRST.BLOCKCHAIN RTS ✸ .FREE-TO-PLAY.MODEL. ✸ ..NEXIUM.GAME TOKEN ✸ .TRUE OWNERSHIP.CONCEPT.
ripzombie
Full Member

Offline

Activity: 226

Bitcoin

 August 04, 2015, 03:26:03 PM

It works very nicely. thanks for support

Space for rent (you ad here) 0.01BTC per month
ripzombie
Full Member

Offline

Activity: 226

Bitcoin

 August 05, 2015, 01:35:02 PM

hi, use this code, running good.

Code Settings : IF WIN decrease - IF LOSE increase
When working for a while BET 0.00000000

I want to Bet is 0.00000000 script RESTART and continuous loop..
Is it possible ? how can I do ?

Quote
chance=77.7
multiplier=2
multiplier2=0.70
base=0.0000150
nextbet = base
bethigh = false
target = .00005
savebalance = balance
wincount = 10

function dobet()

if win then
if ((balance - savebalance) > target) then
savebalance = balance
nextbet = base
else
nextbet=previousbet*multiplier2
end
else
nextbet=previousbet*multiplier
end
end

Space for rent (you ad here) 0.01BTC per month
chilly2k
Legendary

Online

Activity: 920

 August 05, 2015, 01:50:31 PM

hi, use this code, running good.

Code Settings : IF WIN decrease - IF LOSE increase
When working for a while BET 0.00000000

I want to Bet is 0.00000000 script RESTART and continuous loop..
Is it possible ? how can I do ?

Quote
chance=77.7
multiplier=2
multiplier2=0.70
base=0.0000150
nextbet = base
bethigh = false
target = .00005
savebalance = balance
wincount = 10

function dobet()

if win then
if ((balance - savebalance) > target) then
savebalance = balance
nextbet = base
else
nextbet=previousbet*multiplier2
end
else
nextbet=previousbet*multiplier
end
end

Add a check at the beginning of the dobet function.

Code:
chance=77.7
multiplier=2
multiplier2=0.70
base=0.0000150
nextbet = base
bethigh = false
target = .00005
savebalance = balance
wincount = 10

function dobet()

if(previousbet == 0) then nextbet = base end

if win then
if ((balance - savebalance) > target) then
savebalance = balance
nextbet = base
else
nextbet=previousbet*multiplier2
end
else
nextbet=previousbet*multiplier
end
end

You could also check each place that you set nextbet, and if the result is less then X reset to the base bet.  That would prevent placing a 0 bet.  The above code will place a bet for 0 but the next one would be back at the base.

if(nextbet < .00000001) then nextbet = base end

 .Beyond The Void. ██▄████▄█████████████████████████████████████████████████████████████████  ██████████  ███████████████████████▄██████████████████████▄██████████████████████████████████████████████████████████████████████████████▀██████████████████████▀███▀ ██████████ ▀██████              ███ ..THE FIRST.BLOCKCHAIN RTS ✸ .FREE-TO-PLAY.MODEL. ✸ ..NEXIUM.GAME TOKEN ✸ .TRUE OWNERSHIP.CONCEPT.
ripzombie
Full Member

Offline

Activity: 226

Bitcoin

 August 05, 2015, 02:12:39 PM

Quote
Add a check at the beginning of the dobet function.

Code:
chance=77.7
multiplier=2
multiplier2=0.70
base=0.0000150
nextbet = base
bethigh = false
target = .00005
savebalance = balance
wincount = 10

function dobet()

if(previousbet == 0) then nextbet = base end

if win then
if ((balance - savebalance) > target) then
savebalance = balance
nextbet = base
else
nextbet=previousbet*multiplier2
end
else
nextbet=previousbet*multiplier
end
end

You could also check each place that you set nextbet, and if the result is less then X reset to the base bet.  That would prevent placing a 0 bet.  The above code will place a bet for 0 but the next one would be back at the base.

if(nextbet < .00000001) then nextbet = base end

I did not want..
bet=0 Although continuing

I want , next bet<=0.00000001 script restart continuous
Exsample Session :
Quote
6172161015   8/5/2015 2:04:23 PM   0.00000002   False   77   12.28   0.0000000057142   25774
6172160891   8/5/2015 2:04:22 PM   0.00000003   False   77   17.42   0.0000000085713   25773
6172160764   8/5/2015 2:04:21 PM   0.00000004   False   77   14.72   0.0000000114284   25772
6172160629   8/5/2015 2:04:21 PM   0.00000006   False   77   5.05   0.0000000171426   25771
6172160511   8/5/2015 2:04:20 PM   0.00000008   False   77   45.45   0.0000000228568   25770
6172160385   8/5/2015 2:04:19 PM   0.00000012   False   77   49.17   0.0000000342852   25769
6172160263   8/5/2015 2:04:19 PM   0.00000017   False   77   19.62   0.0000000485707   25768
6172161154   8/5/2015 2:04:24 PM   0.00000001   False   77   0.42   0.0000000028571   25775 Restart
6172161015   8/5/2015 2:04:23 PM   0.00000002   False   77   12.28   0.0000000057142   25774
6172160891   8/5/2015 2:04:22 PM   0.00000003   False   77   17.42   0.0000000085713   25773
6172160764   8/5/2015 2:04:21 PM   0.00000004   False   77   14.72   0.0000000114284   25772
6172160629   8/5/2015 2:04:21 PM   0.00000006   False   77   5.05   0.0000000171426   25771
6172160511   8/5/2015 2:04:20 PM   0.00000008   False   77   45.45   0.0000000228568   25770
6172160385   8/5/2015 2:04:19 PM   0.00000012   False   77   49.17   0.0000000342852   25769
6172160263   8/5/2015 2:04:19 PM   0.00000017   False   77   19.62   0.0000000485707   25768

Space for rent (you ad here) 0.01BTC per month
chilly2k
Legendary

Online

Activity: 920

 August 05, 2015, 02:36:55 PM

Quote
Add a check at the beginning of the dobet function.

Code:
chance=77.7
multiplier=2
multiplier2=0.70
base=0.0000150
nextbet = base
bethigh = false
target = .00005
savebalance = balance
wincount = 10

function dobet()

if(previousbet == 0) then nextbet = base end

if win then
if ((balance - savebalance) > target) then
savebalance = balance
nextbet = base
else
nextbet=previousbet*multiplier2
end
else
nextbet=previousbet*multiplier
end
end

You could also check each place that you set nextbet, and if the result is less then X reset to the base bet.  That would prevent placing a 0 bet.  The above code will place a bet for 0 but the next one would be back at the base.

if(nextbet < .00000001) then nextbet = base end

I did not want..
bet=0 Although continuing

I want , next bet<=0.00000001 script restart continuous
Exsample Session :
Quote
6172161015   8/5/2015 2:04:23 PM   0.00000002   False   77   12.28   0.0000000057142   25774
6172160891   8/5/2015 2:04:22 PM   0.00000003   False   77   17.42   0.0000000085713   25773
6172160764   8/5/2015 2:04:21 PM   0.00000004   False   77   14.72   0.0000000114284   25772
6172160629   8/5/2015 2:04:21 PM   0.00000006   False   77   5.05   0.0000000171426   25771
6172160511   8/5/2015 2:04:20 PM   0.00000008   False   77   45.45   0.0000000228568   25770
6172160385   8/5/2015 2:04:19 PM   0.00000012   False   77   49.17   0.0000000342852   25769
6172160263   8/5/2015 2:04:19 PM   0.00000017   False   77   19.62   0.0000000485707   25768
6172161154   8/5/2015 2:04:24 PM   0.00000001   False   77   0.42   0.0000000028571   25775 Restart
6172161015   8/5/2015 2:04:23 PM   0.00000002   False   77   12.28   0.0000000057142   25774
6172160891   8/5/2015 2:04:22 PM   0.00000003   False   77   17.42   0.0000000085713   25773
6172160764   8/5/2015 2:04:21 PM   0.00000004   False   77   14.72   0.0000000114284   25772
6172160629   8/5/2015 2:04:21 PM   0.00000006   False   77   5.05   0.0000000171426   25771
6172160511   8/5/2015 2:04:20 PM   0.00000008   False   77   45.45   0.0000000228568   25770
6172160385   8/5/2015 2:04:19 PM   0.00000012   False   77   49.17   0.0000000342852   25769
6172160263   8/5/2015 2:04:19 PM   0.00000017   False   77   19.62   0.0000000485707   25768

Then you need to check the nextbet after you set it.

if(nextbet < .00000001) then nextbet = base end

added after you calculate a new nextbet.

Code:
Code:
chance=77.7
multiplier=2
multiplier2=0.70
base=0.0000150
nextbet = base
bethigh = false
target = .00005
savebalance = balance
wincount = 10

function dobet()

if win then
if ((balance - savebalance) > target) then
savebalance = balance
nextbet = base
else
nextbet=previousbet*multiplier2
if(nextbet < .00000001) then nextbet = base end
end
else
nextbet=previousbet*multiplier
if(nextbet < .00000001) then nextbet = base end
end
end

 .Beyond The Void. ██▄████▄█████████████████████████████████████████████████████████████████  ██████████  ███████████████████████▄██████████████████████▄██████████████████████████████████████████████████████████████████████████████▀██████████████████████▀███▀ ██████████ ▀██████              ███ ..THE FIRST.BLOCKCHAIN RTS ✸ .FREE-TO-PLAY.MODEL. ✸ ..NEXIUM.GAME TOKEN ✸ .TRUE OWNERSHIP.CONCEPT.
ripzombie
Full Member

Offline

Activity: 226

Bitcoin

 August 05, 2015, 02:51:23 PM

Thanks man, good work..

Space for rent (you ad here) 0.01BTC per month
chilly2k
Legendary

Online

Activity: 920

 August 05, 2015, 06:18:50 PM

Thanks man, good work..

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.

Code:
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

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.

 .Beyond The Void. ██▄████▄█████████████████████████████████████████████████████████████████  ██████████  ███████████████████████▄██████████████████████▄██████████████████████████████████████████████████████████████████████████████▀██████████████████████▀███▀ ██████████ ▀██████              ███ ..THE FIRST.BLOCKCHAIN RTS ✸ .FREE-TO-PLAY.MODEL. ✸ ..NEXIUM.GAME TOKEN ✸ .TRUE OWNERSHIP.CONCEPT.
 Pages: 1 [2] 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
 « previous topic next topic »