Pages:
Author

Topic: Seuntjie' Dice bot programmers mode discussion. - page 61. (Read 125483 times)

legendary
Activity: 1007
Merit: 1000
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. 
full member
Activity: 589
Merit: 100
How do we use it?

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

Please help me ?

legendary
Activity: 1007
Merit: 1000
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. 
legendary
Activity: 1717
Merit: 1125
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
newbie
Activity: 54
Merit: 0
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
legendary
Activity: 1007
Merit: 1000

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....     
newbie
Activity: 54
Merit: 0
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
sr. member
Activity: 420
Merit: 250
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.
legendary
Activity: 1007
Merit: 1000
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
newbie
Activity: 54
Merit: 0
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?
     
legendary
Activity: 1717
Merit: 1125
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
legendary
Activity: 1007
Merit: 1000
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



    

legendary
Activity: 1007
Merit: 1000
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
legendary
Activity: 1007
Merit: 1000

Mind uploading these to bot.seuntjie.com/scripts.aspx?mode=new   ? You'll need to register an account, but it only needs a username and password.

   I added them,  I forgot to title the first.  And when I submitted the second I'm not sure if it took or not.  If you don't see it let me know.  I saved the update just in case. 
legendary
Activity: 1717
Merit: 1125


   New bot program I wanted to share. 
This does a lot of advanced stuff, but the gist of it is.

Start betting with .00000001 at 39.6% (2.5X)
once you win increase the bet using the multiplier.

if you lose cut the multiplier in half and wait for 2 loses in a row.
Once you hit at least 2 in a row, on the next win try the big bet using the new multiplier.
Keep doing this till you either win a big bet or run out of funds.
Since we're always dividing the multiplier in half eventually is gets small enough that you large bets start getting smaller and will not cover your loses. 
once it gets below 1.85, it will always use that.  That will cover your loses. 

There is also a Target value
and a savefactor value.

Once the balance increase to more then the target value, the difference gets invested.  And the new target gets set.  The balance will continue to build but you will be saving some of your funds. 

  The savefactor is the same idea on a larger level.  The bot saves your starting balance and once your balance reaches the startbalance * savefactor, it invests everything over your starting balance.  It's currently set to 1.25  If I start with 10 coins, once I reach 12.5, it will invest 2.5, and I'll be back to gambling with 10.

There is a variable called stopnow.  If you issue stopnow = true on the console, the bot will stop once you've won a big bet.  This keeps you from stopping in the middle of a series. 



Code:
chance = 39.6
martimulti = 40
basebet = .00000001
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 = basebet * martimulti
go = false
set = false


function dobet()

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

if (win) then
   wincount += 1
   totallose = 0
   newbalance = balance
   if (high > low) then
     bethigh = true
    else
      bethigh = false
    end
  if (wincount == 1 and go) then
     nextbet = nextwinbet
     go = false
      set = false
  else
      nextbet = basebet
  end
   if (wincount == 2 and previousbet != basebet) then
      if (stopnow) then stop() end
        martimulti = 40
        nextwinbet = basebet * martimulti   
        set = true
       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
   end
 else
   if (wincount == 1 and previousbet != basebet ) then
      nextwinbet = previousbet * martimulti
      martimulti = martimulti / 2
      if (martimulti < 1.85) then martimulti = 1.85 end
      losecount += 1
      print(losecount)
   else
     
   end
   wincount = 0
   totallose = totallose + 1
   if (totallose == 2) then go = true end
   nextbet = basebet
 end
 
end

New updated version to use a table to place the bets.  Bot will stop once the table has been run.  IE all bets in the table have lost. 

Also changed so now 2 wins or 2 loses will enable the next bet from the table on a win.   Values in the table are just for my own amusement and don't mean anything.
Also your mileage may vary....

Code:
chance = 39.6
winbets = {.00000040,
                     .00000400,
                     .00000800,
                     .00001600,
                     .00032000,
                      .00064000,
                      .0020,
                      .0040,
                       .01,
                       .04,
                        .1,
                        .2}
maxbets = #winbets                 
basebet = .00000001
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 = 1
go = false
set = false


function dobet()

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

if (win) then
   wincount += 1
   totallose = 0
   newbalance = balance
   if (high > low) then
     bethigh = true
    else
      bethigh = false
    end
  if (wincount == 1 and go) then
     nextbet = winbets[nextwinbet]
     go = false
      set = false
  else
      nextbet = basebet
  end
   if (wincount == 2 and previousbet != basebet) then
      if (stopnow) then stop() end
        nextwinbet = 1   
        set = true
       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
   end
    if (wincount == 2) then go = true end
 else
   if (wincount == 1 and previousbet != basebet ) then
      nextwinbet += 1
      if (nextwinbet > maxbets) then stop() end
      losecount += 1
      print(losecount)
   else
     
   end
   wincount = 0
   totallose = totallose + 1
   if (totallose == 2) then go = true end
   nextbet = basebet
 end
 
end


Mind uploading these to bot.seuntjie.com/scripts.aspx?mode=new   ? You'll need to register an account, but it only needs a username and password.
sr. member
Activity: 462
Merit: 250
can i know what is the difference  between this one and in other site
legendary
Activity: 1007
Merit: 1000


   New bot program I wanted to share. 
This does a lot of advanced stuff, but the gist of it is.

Start betting with .00000001 at 39.6% (2.5X)
once you win increase the bet using the multiplier.

if you lose cut the multiplier in half and wait for 2 loses in a row.
Once you hit at least 2 in a row, on the next win try the big bet using the new multiplier.
Keep doing this till you either win a big bet or run out of funds.
Since we're always dividing the multiplier in half eventually is gets small enough that you large bets start getting smaller and will not cover your loses. 
once it gets below 1.85, it will always use that.  That will cover your loses. 

There is also a Target value
and a savefactor value.

Once the balance increase to more then the target value, the difference gets invested.  And the new target gets set.  The balance will continue to build but you will be saving some of your funds. 

  The savefactor is the same idea on a larger level.  The bot saves your starting balance and once your balance reaches the startbalance * savefactor, it invests everything over your starting balance.  It's currently set to 1.25  If I start with 10 coins, once I reach 12.5, it will invest 2.5, and I'll be back to gambling with 10.

There is a variable called stopnow.  If you issue stopnow = true on the console, the bot will stop once you've won a big bet.  This keeps you from stopping in the middle of a series. 



Code:
chance = 39.6
martimulti = 40
basebet = .00000001
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 = basebet * martimulti
go = false
set = false


function dobet()

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

if (win) then
   wincount += 1
   totallose = 0
   newbalance = balance
   if (high > low) then
     bethigh = true
    else
      bethigh = false
    end
  if (wincount == 1 and go) then
     nextbet = nextwinbet
     go = false
      set = false
  else
      nextbet = basebet
  end
   if (wincount == 2 and previousbet != basebet) then
      if (stopnow) then stop() end
        martimulti = 40
        nextwinbet = basebet * martimulti   
        set = true
       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
   end
 else
   if (wincount == 1 and previousbet != basebet ) then
      nextwinbet = previousbet * martimulti
      martimulti = martimulti / 2
      if (martimulti < 1.85) then martimulti = 1.85 end
      losecount += 1
      print(losecount)
   else
     
   end
   wincount = 0
   totallose = totallose + 1
   if (totallose == 2) then go = true end
   nextbet = basebet
 end
 
end

New updated version to use a table to place the bets.  Bot will stop once the table has been run.  IE all bets in the table have lost. 

Also changed so now 2 wins or 2 loses will enable the next bet from the table on a win.   Values in the table are just for my own amusement and don't mean anything.
Also your mileage may vary....

Code:
chance = 39.6
winbets = {.00000040,
                     .00000400,
                     .00000800,
                     .00001600,
                     .00032000,
                      .00064000,
                      .0020,
                      .0040,
                       .01,
                       .04,
                        .1,
                        .2}
maxbets = #winbets                 
basebet = .00000001
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 = 1
go = false
set = false


function dobet()

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

if (win) then
   wincount += 1
   totallose = 0
   newbalance = balance
   if (high > low) then
     bethigh = true
    else
      bethigh = false
    end
  if (wincount == 1 and go) then
     nextbet = winbets[nextwinbet]
     go = false
      set = false
  else
      nextbet = basebet
  end
   if (wincount == 2 and previousbet != basebet) then
      if (stopnow) then stop() end
        nextwinbet = 1   
        set = true
       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
   end
    if (wincount == 2) then go = true end
 else
   if (wincount == 1 and previousbet != basebet ) then
      nextwinbet += 1
      if (nextwinbet > maxbets) then stop() end
      losecount += 1
      print(losecount)
   else
     
   end
   wincount = 0
   totallose = totallose + 1
   if (totallose == 2) then go = true end
   nextbet = basebet
 end
 
end
legendary
Activity: 1007
Merit: 1000


   New bot program I wanted to share. 
This does a lot of advanced stuff, but the gist of it is.

Start betting with .00000001 at 39.6% (2.5X)
once you win increase the bet using the multiplier.

if you lose cut the multiplier in half and wait for 2 loses in a row.
Once you hit at least 2 in a row, on the next win try the big bet using the new multiplier.
Keep doing this till you either win a big bet or run out of funds.
Since we're always dividing the multiplier in half eventually is gets small enough that you large bets start getting smaller and will not cover your loses. 
once it gets below 1.85, it will always use that.  That will cover your loses. 

There is also a Target value
and a savefactor value.

Once the balance increase to more then the target value, the difference gets invested.  And the new target gets set.  The balance will continue to build but you will be saving some of your funds. 

  The savefactor is the same idea on a larger level.  The bot saves your starting balance and once your balance reaches the startbalance * savefactor, it invests everything over your starting balance.  It's currently set to 1.25  If I start with 10 coins, once I reach 12.5, it will invest 2.5, and I'll be back to gambling with 10.

There is a variable called stopnow.  If you issue stopnow = true on the console, the bot will stop once you've won a big bet.  This keeps you from stopping in the middle of a series. 



Code:
chance = 39.6
martimulti = 40
basebet = .00000001
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 = basebet * martimulti
go = false
set = false


function dobet()

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

if (win) then
   wincount += 1
   totallose = 0
   newbalance = balance
   if (high > low) then
     bethigh = true
    else
      bethigh = false
    end
  if (wincount == 1 and go) then
     nextbet = nextwinbet
     go = false
      set = false
  else
      nextbet = basebet
  end
   if (wincount == 2 and previousbet != basebet) then
      if (stopnow) then stop() end
        martimulti = 40
        nextwinbet = basebet * martimulti   
        set = true
       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
   end
 else
   if (wincount == 1 and previousbet != basebet ) then
      nextwinbet = previousbet * martimulti
      martimulti = martimulti / 2
      if (martimulti < 1.85) then martimulti = 1.85 end
      losecount += 1
      print(losecount)
   else
     
   end
   wincount = 0
   totallose = totallose + 1
   if (totallose == 2) then go = true end
   nextbet = basebet
 end
 
end
legendary
Activity: 1007
Merit: 1000

     We can start by using the basic Martingale script from the reference site.

chance=49.5
multiplier=2
base=0.00000010
Quote
function dobet()
   if win then
      nextbet=base
   else
      nextbet=previousbet*multiplier
   end
end
   The 3 statements before the function statement will be executed BEFORE the first bet is made.  

chance is a variable that will be used by the bot.  
multiplier and base are internal variables just used by the script.  

    After each bet is placed function dobet is called.  

   In this case, if the bet won, the variable win will be true and the script will reset the nextbet variable to the base bet.  nextbet is a variable used by the bot when placing a bet.
   If the win variable is false, then we lost the bet.  The script will execute the else path.  This will set nextbet equal to the previous bet (previousbet) times multipler.  In this case X 2.  

   The structure LUA uses for if/then/else requires an end statement.  And the function requires an end statement.

A few things I would add to the initialization section.  I would set nextbet = base so the first bet is base on my script not what is filled in the bot's panels.
Also set bethigh  Make it true if you want to go high, false if you want to bet low.  It's as easy as bethigh = false    

So my really basic script would be.
Code:
chance=49.5
multiplier=2
base=0.00000010
nextbet = base  
bethigh = false

function dobet()
   if win then
      nextbet=base
   else
      nextbet=previousbet*multiplier
   end
end

To execute this script, in the programmer mode section click on the console tab at the top.  This opens the LUA console.  The upper section is the output and the lower section is for input.  In the lower section you would type start() to start your script.  And stop() to stop it.  

   You can also use the built in simulator to see how your script will run.  Either from the built in simulator panel (click view, then simulate) ir by typing runsim (X,Y) into the console.  
X is your pretend starting balance
Y is the number of bets to place.  

Note:  Don't start your bot with a large balance.  A small error could cause you to lose everything.  Always start with a small amount just to test out all of your functions.  Of course use the simulator to flush out as much as you can.    


So we left off with the basic martingale bot setting the correct first bet.   

But there is no way to stop this other then issuing the stop() command.   

This is where we can use one of the neat things about LUA.  You can set variables from the console. 

So were going to initialize a variable called stoponwin to false.  Then check this in our win path.  The variable will always be false till we change it on the console.  So our new code will not be.

Code:
chance=49.5
multiplier=2
base=0.00000010
nextbet = base   
bethigh = false
stoponwin -- new variable

function dobet()
   if win then
      if (stoponwin) then stop() end -- check new variable.   
      nextbet=base
   else
      nextbet=previousbet*multiplier
   end
end

so now if we wanted to stop the bot once a series is finished we can issue "stoponwin = true" at the console, and the bot will stop the next time it wins. 

 
legendary
Activity: 2296
Merit: 1031

It's close.  Any idea what would give this error "input:18: unexpected symbol near '!'" ?  So it looks like "(!win)" is the opposite of (win).  But when I run it in the Lua demo (http://www.lua.org/cgi-bin/demo)  it doesn't like it.  

I thought in order to do the opposite we just do "not"  so instead of "!win" it would be "not win" but if I do that it just bets the same bet over and over instead of doing martingale.  

    The problem wasn't the !win.  Lua was expecting an end for the "if win" Statement.  I was trying to leave your logic the same but missed that end statement.  So the code is

Code:

chance=49.5
multiplier=2
base=0.00001000
resetseed()
profitsincelastcycle = 0

function dobet()

profitsincelastcycle += lastBet.Profit

   if (win) then
      if (profitsincelastcycle == 0.00004000) then
        sleep(300000)
        profitsincelastcycle = 0
      else
        nextbet=base
      end
   end   --  Missing end statement
   if (!win) then
      nextbet=previousbet*multiplier
   end

end


   Personally I would have handled the !win part in an else path.  But to each there own, and it's better that you understand what it's doing then I. 
 
 

Should I be able to see the simulator pause or stop with the "sleep(300000)" command in there?  Or does that only work when it's running real bets?   When I run the sim, martingale works correctly but I don't see any sleep.

  Did you cut/paste the above script?  Simulator will wait/loop.  It actually hangs the bot with the spinning circle thingy....

Are you incrementing profitsincelastcycle?  Are you checking the same variable?  You can check things out on the console.  type "print(profitsincelastcycle)"  no quotes, to see what that variable contains. 

I changed profitsincelastcycle to a higher value and it seems to have froze up like you described.  Maybe .00004000 was too small a variable to reliably track  or maybe I just need to play with that value some more.  Thanks again.  When I get some bits together I'll send you a tip for your help.

Pages:
Jump to: