Bitcoin Forum
April 26, 2024, 04:02:56 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
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 48 49 50 51 52 ... 62 »
  Print  
Author Topic: Seuntjie' Dice bot programmers mode discussion.  (Read 125126 times)
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
July 24, 2015, 12:44:54 PM
 #21

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

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
July 26, 2015, 02:22:16 PM
Last edit: July 26, 2015, 05:22:24 PM by chilly2k
 #22

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



    


seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
July 26, 2015, 04:29:23 PM
 #23

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
Newbie
*
Offline Offline

Activity: 54
Merit: 0


View Profile
August 03, 2015, 11:26:44 PM
 #24

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 (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
August 04, 2015, 03:31:14 AM
 #25

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

Enzyme
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250


View Profile
August 04, 2015, 03:55:19 AM
 #26

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
Newbie
*
Offline Offline

Activity: 54
Merit: 0


View Profile
August 04, 2015, 04:11:49 AM
 #27

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

Thanks a lot.That's exactly what i was asking for.Now time to find right chance and multipilers, btw please add your btc or clam address to this topic to receive tip
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
August 04, 2015, 04:23:08 AM
 #28


Thanks a lot.That's exactly what i was asking for.Now time to find right chance and multipilers, btw please add your btc or clam address to this topic to receive tip

    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...   Smiley 

    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....     

anp31
Newbie
*
Offline Offline

Activity: 54
Merit: 0


View Profile
August 04, 2015, 04:39:26 AM
 #29

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 Offline

Activity: 1717
Merit: 1125



View Profile WWW
August 04, 2015, 06:01:19 AM
 #30

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 (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
August 04, 2015, 01:53:29 PM
 #31

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. 

ripzombie
Full Member
***
Offline Offline

Activity: 589
Merit: 100



View Profile
August 04, 2015, 02:28:48 PM
 #32

How do we use it?

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

Please help me ?

chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
August 04, 2015, 03:10:33 PM
 #33

How do we use it?

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

Please help me ?



    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. 

ripzombie
Full Member
***
Offline Offline

Activity: 589
Merit: 100



View Profile
August 04, 2015, 03:26:03 PM
 #34

It works very nicely. thanks for support Grin
ripzombie
Full Member
***
Offline Offline

Activity: 589
Merit: 100



View Profile
August 05, 2015, 01:35:02 PM
 #35

hi, use this code, running good.

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

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
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
August 05, 2015, 01:50:31 PM
 #36

hi, use this code, running good.

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

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

ripzombie
Full Member
***
Offline Offline

Activity: 589
Merit: 100



View Profile
August 05, 2015, 02:12:39 PM
 #37

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
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
August 05, 2015, 02:36:55 PM
 #38

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




ripzombie
Full Member
***
Offline Offline

Activity: 589
Merit: 100



View Profile
August 05, 2015, 02:51:23 PM
 #39

Thanks man, good work..
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
August 05, 2015, 06:18:50 PM
Last edit: August 05, 2015, 07:17:31 PM by chilly2k
 #40

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.   

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 48 49 50 51 52 ... 62 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!