Pages:
Author

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

full member
Activity: 319
Merit: 100
Hi everyone. Is anybuddy here to write this program in dicebot?

roll 1:
bet 1sat :
if win > place 1 sat
if loose > place 1 sat

in streak of 3 loose:
(roll 4)
place 100 sat
if win > place 1
if loose > place 200

(roll 5)
if win > place 1
if loose > place 400

.
.
.
.

Actually I want to use martiangle method after 3 loose in a raw with a bot.


hello, if im understnad right then try this -

chance = 49.50
base = 0.00000001
nextbet = base
enablezz = true
enablesrc = true
losecount = 0
betcount = 0
function dobet()
   if win then
      nextbet = base
         losecount = 0
         betcount += 1
   else
         losecount += 1
         betcount += 1
      nextbet = base
   end
   if (losecount > 2) then
      nextbet = 0.00000100
   end
   if (losecount > 3) then
     nextbet = previousbet*2
   end
   end
 end
end
newbie
Activity: 1
Merit: 0
Hi everyone. Is anybuddy here to write this program in dicebot?

roll 1:
bet 1sat :
if win > place 1 sat
if loose > place 1 sat

in streak of 3 loose:
(roll 4)
place 100 sat
if win > place 1
if loose > place 200

(roll 5)
if win > place 1
if loose > place 400

.
.
.
.

Actually I want to use martiangle method after 3 loose in a raw with a bot.
HCP
legendary
Activity: 2086
Merit: 4363
Is anyone here expert in bot programming mode and can implement my custom strategy on request?
There are several "experts" around here Wink Myself and Chilly2k and one or two others...
member
Activity: 106
Merit: 11
Is anyone here expert in bot programming mode and can implement my custom strategy on request?
full member
Activity: 319
Merit: 100
hey, anyone are much good in math and have good and easy to use formula for basebet calculation with editing "winrate"(increase number/overall gain) addition?!



i want something like that - i will give sample:

i bet 10$ 14x times in row on (X) percentage to win and all are losed, now i want calculate basebet accordingly that i have profit -140$ and now i will bet on another chance to win(Y) to get back to be break even to get zero, or till i need to get some part (1/2 or 1/5) of losed profit back.


so what i want!

formula what component:

-increase number = 1(then gains are zero break even if in forumula will be included 0.01 decrease house edge) and if i will make this number 1.01 then it will gain little profit, and if i make 1.1 then bigger, etc.

-in formula are used session profit


something like this

base = (profit) / (100 / chance / 1.01 - 1) * 1(increase number) + startbasebet








I want to know, how is possible to make, every next bet after fixed "currentstreak" to change adjusted chances who will dereases by x.xxxx chances from "pervious bet chances" !?

something like this, but this version has problems with configuration for me, because the calculations before all was made.

if currentstreak>=-5 and currentstreak<=0 then
base = x
chance =  X - (currentstreak * -4.00)

elseif currentstreak<=-6 and currentstreak>=-10 then
base = x
chance = X - (currentstreak * -2.00)

elseif currentstreak<=-11 and currentstreak>=-20 then
base  = x
chance = X - (currentstreak * -1.00)

elseif currentstreak<=-21 and currentstreak>=-1000 then
base = x
chance = X
end

I hope some1 will understand what i mean...

sample with words:

first 5 bets bet on 90 percentage and every bet, chances need to be decreased by -1.00% like 90, 89, 88, 87, 86

after that next 5 bets need to be decreased from last percentage buy 0.5% 86, 65.5, 85, 84.5, 84, 83.5, 83

and go on
(its only sample)



full member
Activity: 319
Merit: 100
I want to know, how is possible to make, every next bet after fixed "currentstreak" to change adjusted chances who will dereases by x.xxxx chances from "pervious bet chances" !?

something like this, but this version has problems with configuration for me, because the calculations before all was made.

if currentstreak>=-5 and currentstreak<=0 then
base = x
chance =  X - (currentstreak * -4.00)

elseif currentstreak<=-6 and currentstreak>=-10 then
base = x
chance = X - (currentstreak * -2.00)

elseif currentstreak<=-11 and currentstreak>=-20 then
base  = x
chance = X - (currentstreak * -1.00)

elseif currentstreak<=-21 and currentstreak>=-1000 then
base = x
chance = X
end

I hope some1 will understand what i mean...

sample with words:

first 5 bets bet on 90 percentage and every bet, chances need to be decreased by -1.00% like 90, 89, 88, 87, 86

after that next 5 bets need to be decreased from last percentage buy 0.5% 86, 65.5, 85, 84.5, 84, 83.5, 83

and go on
(its only sample)


newbie
Activity: 51
Merit: 0
In all likelihood... Bitsler have probably changed something on their end... ie. updated the API either without giving Seuntjie a headsup, or the opportunity to update the bot... or they did, and Seuntjie hasn't updated due to being super busy...

If the bot is working on other sites, and it is just Bitsler that isn't working, then you'll have to hold tight until Seuntjie has a chance to investigate and/or talk to the Bitsler Devs.


Thanks for replying HCP.  Anyway my problem is solved as it was due to a small settings change that I made on bitsler site.I talked to Bitsler support and they helped me sort it out.
full member
Activity: 319
Merit: 100
hey, anyone are much good in math and have good and easy to use formula for basebet calculation with editing "winrate"(increase number/overall gain) addition?!



i want something like that - i will give sample:

i bet 10$ 14x times in row on (X) percentage to win and all are losed, now i want calculate basebet accordingly that i have profit -140$ and now i will bet on another chance to win(Y) to get back to be break even to get zero, or till i need to get some part (1/2 or 1/5) of losed profit back.


so what i want!

formula what component:

-increase number = 1(then gains are zero break even if in forumula will be included 0.01 decrease house edge) and if i will make this number 1.01 then it will gain little profit, and if i make 1.1 then bigger, etc.

-in formula are used session profit


something like this

base = (profit) / (100 / chance / 1.01 - 1) * 1(increase number) + startbasebet




HCP
legendary
Activity: 2086
Merit: 4363
In all likelihood... Bitsler have probably changed something on their end... ie. updated the API either without giving Seuntjie a headsup, or the opportunity to update the bot... or they did, and Seuntjie hasn't updated due to being super busy...

If the bot is working on other sites, and it is just Bitsler that isn't working, then you'll have to hold tight until Seuntjie has a chance to investigate and/or talk to the Bitsler Devs.
newbie
Activity: 51
Merit: 0
Today when I try to use Dice bot on Bitsler, I get an error that "parameter missing". It was working fine before .But today this error comes unexpectedly. There is no change in scripts or version of Dicebot which I was using before. Can someone help me with this problem.
newbie
Activity: 13
Merit: 0
Wow,

Thank you for your Help HCP, I will give it a try based on your codes.
btw that number 10 is just an imaginary number that I assume as a set of bets. actually I have a strategy in my mind that is kind of complicated, and its like if you got base amount profit it will be retested and it might gives profit based on how many wins or losses you have in a circle of bets, like lets say 10 bets.
the program should be defined to behave in a different way based on current bet is which bet out of this set of bets. and if y lossess/wins in row happens do this.... if its LWLWLW do that....initial chance could be x1.6 and also it changes the chance depending on if the last bet was win or loss or if it was y lossess/wins in row.
actually its all like brainstorming yet but Im trying to clean up my mind and work on it. its kind of fun for me.
what I meant to do with the result was for example if in that circle of 10 bets, the dice rolled to below number 30, 3 times in total (for example) then do....
cheers and thank you again that you share all your knowledge.
HCP
legendary
Activity: 2086
Merit: 4363
You could probably set up an "array" and a counter to keep track of the last "x" bets... but the number would need to be kept to a "reasonable" level to prevent the memory usage getting too high and or the bot starting to slow down while it manipulates the array...

I'm not sure I understand what it is that you are wanting to do with these 10 results tho? Huh

Code:
...
betArray = {}
counter = 1 -- NOTE: LUA arrays indexed from 1 ;)
...
function dobet()
...
  betArray[counter] = lastbet.Roll
  counter = counter + 1
  ...
  if counter == 11 then
    -- do something based on the last 10 rolls ???
    -- count them up or something and then set chance according to results?
    counter = 1 -- reset counter
  end
...
end
newbie
Activity: 13
Merit: 0
Hi There,

wanted to ask something. Is there anyway that we can track rolled results?

what I mean is for example lets say each circle of x bets we track the rolled result in we track the circle of bets based on rolled numbers: for example lets say if in each 10 bets 3 times rolled result was less than number 30 then do that etc.

Thank you.
newbie
Activity: 6
Merit: 0
Thanks a lot HCP that works! I really want to learn to program some scripts, i have some very good ideas to implement , i try to study a lot the scripts others do and to understand how it works but its the beggining and its normal to find it difficult even for easy stuff.  Hope u guys continue helping people like me.
HCP
legendary
Activity: 2086
Merit: 4363
I added 2 more lvls but when a 9 streak lose it doesn recognise that i go to 4th sub-balance and keeps multiplying the last bet! Why is it doing this!
You have the "if currentstreak == -9" statement INSIDE the "if currentstreak == -3" block... so that code will never trigger, as it can't be -3 and -9 at the same time! Tongue

You should really learn to properly indent and align your code, so it is easier to see the code "blocks"... properly indented your code looks like this:
Code:
enablersc=true
enablezz=true
chance=6.15 --sets your chance for placing a bet
nextbet=0.00000001 --sets your first bet.
basebet=0.00000001 -- moved to only set once
currentbase = basebet -- save the current base bet
sub = 1 -- flag to indicate we are using 2nd sub-balance


function dobet()

  if profit > 0.00000030 then
    resetstats()
    currentbase = basebet -- reset to base bet
    sub = 1 -- made our profit, reset to 1st sub-balance
  end
  
  if win then
    nextbet=currentbase -- reset to the current base
  else
    nextbet=previousbet*2.67
    
    if currentstreak==-3 or currentstreak == -6 then
      if sub == 1 then
        sub = 2
        nextbet=0.00000002
        currentbase = nextbet -- save current base
      else
        sub = 3
        --already betting 2nd sub-balance, move to 3rd sub-balance
        nextbet = 0.00000003
        currentbase = nextbet -- save current base end
    

        if currentstreak==-9 or currentstreak == -12 then
          if sub == 3 then
            sub = 4
            nextbet=0.00000004
            currentbase = nextbet -- save current base
          else
            sub = 5
            --already betting 2nd sub-balance, move to 3rd sub-balance
            nextbet = 0.00000005
            currentbase = nextbet -- save current base
          end
        
        end
      
      end
    
    end

  end


It actually looks like you're missing an "end" statement?? I assume the app is interpreting some of your if blocks in an unexpected way. Anyway, by looking at properly indented code, you can see how your IF statements are nest incorrectly... and your if currentstreak==-9 is in the wrong place... I'm guessing it should probably be something like this:
Code:
enablersc=true
enablezz=true
chance=6.15 --sets your chance for placing a bet
nextbet=0.00000001 --sets your first bet.
basebet=0.00000001 -- moved to only set once
currentbase = basebet -- save the current base bet
sub = 1 -- flag to indicate we are using 2nd sub-balance


function dobet()

  if profit > 0.00000030 then
    resetstats()
    currentbase = basebet -- reset to base bet
    sub = 1 -- made our profit, reset to 1st sub-balance
  end
  
  if win then
    nextbet=currentbase -- reset to the current base
  else
    nextbet=previousbet*2.67
    
    if currentstreak==-3 or currentstreak == -6 then
      if sub == 1 then
        sub = 2
        nextbet=0.00000002
        currentbase = nextbet -- save current base
      else
        sub = 3
        --already betting 2nd sub-balance, move to 3rd sub-balance
        nextbet = 0.00000003
        currentbase = nextbet -- save current base end
      end
    
    elseif currentstreak==-9 or currentstreak == -12 then
      if sub == 3 then
        sub = 4
        nextbet=0.00000004
        currentbase = nextbet -- save current base
      else
        sub = 5
        --already betting 2nd sub-balance, move to 3rd sub-balance
        nextbet = 0.00000005
        currentbase = nextbet -- save current base
      end

    end

  end
    
end
newbie
Activity: 6
Merit: 0
Hello, chilly2k i tested the script all day i made 100k shatoshi and finally busted! I am trying to play with the chances and to add more lvls (more sub-balances to the script) and made this:

enablersc=true
enablezz=true
chance=6.15 --sets your chance for placing a bet
nextbet=0.00000001 --sets your first bet.
basebet=0.00000001 -- moved to only set once
currentbase = basebet -- save the current base bet
sub = 1 -- flag to indicate we are using 2nd sub-balance


function dobet()

if profit > 0.00000030 then
  resetstats()
  currentbase = basebet -- reset to base bet
  sub = 1 -- made our profit, reset to 1st sub-balance
end
if win then

     nextbet=currentbase -- reset to the current base

else

    nextbet=previousbet*2.67



if currentstreak==-3 or currentstreak == -6 then

   if sub == 1 then
       sub = 2
       nextbet=0.00000002
       currentbase = nextbet -- save current base
   else
       sub = 3
       --already betting 2nd sub-balance, move to 3rd sub-balance
       nextbet = 0.00000003
       currentbase = nextbet -- save current base end
   

if currentstreak==-9 or currentstreak == -12 then
if sub == 3 then
       sub = 4
       nextbet=0.00000004
       currentbase = nextbet -- save current base
   else
       sub = 5
       --already betting 2nd sub-balance, move to 3rd sub-balance
       nextbet = 0.00000005
       currentbase = nextbet -- save current base

   end end end end end
             




I added 2 more lvls but when a 9 streak lose it doesn recognise that i go to 4th sub-balance and keeps multiplying the last bet! Why is it doing this!


newbie
Activity: 6
Merit: 0
chilly2k your code is perfect it does what it is meant to do! i will now try to  put a condition to restart or to stop after having 3 loses in a row in the 3rd tier! Thanks a lot!!
legendary
Activity: 1007
Merit: 1000
"So you're saying that if you are on 2nd sub-balance... and you get a win... it should still stay on 2nd sub-balance and "keep betting 0.00000080 until profit is 0.00001000" right?"

Hello my friend this is exactly what i want to do! But u are right it resets on the first win of 3rd balance! Sad If u ever find a solution pls share it!  

You need to check for 3 states.  So you need to create a new variable, lets say sub.  set sub = 1 in the beginning of the script.  Then set sub = 2 and sub = 3 in each of the blocks that set the currentbase.

   Change the check (in the if win block) in HCP's code from..  Aw heck easier just to do it.

Code:
chance=49.5 --sets your chance for placing a bet
nextbet=0.00000008 --sets your first bet.
basebet=0.00000008 -- moved to only set once
currentbase = basebet -- save the current base bet
sub = 1 -- flag to indicate we are using 2nd sub-balance

function dobet()

if profit > 0.00001000 then
  resetstats()
  currentbase = basebet -- reset to base bet
  sub = 1 -- made our profit, reset to 1st sub-balance
end
if win then

     nextbet=currentbase -- reset to the current base

else

    nextbet=previousbet*2.54

end

if currentstreak==-3 or currentstreak == -6 then

   if sub == 1 then
       sub = 2
       nextbet=0.00000080
       currentbase = nextbet -- save current base
   else
       sub = 3
       --already betting 2nd sub-balance, move to 3rd sub-balance
       nextbet = 0.00000800
       currentbase = nextbet -- save current base
   end

end

if currentstreak==-10 then

     nextbet=0.00000001

end
end end


   There are still some issues.  What happens if your on sub = 3 and you keep losing 6 in a row then have a win.  (I didn't do the math).  Also what happens once you get a win, after 10 loses in a row?  
newbie
Activity: 6
Merit: 0
"So you're saying that if you are on 2nd sub-balance... and you get a win... it should still stay on 2nd sub-balance and "keep betting 0.00000080 until profit is 0.00001000" right?"

Hello my friend this is exactly what i want to do! But u are right it resets on the first win of 3rd balance! Sad If u ever find a solution pls share it! 
HCP
legendary
Activity: 2086
Merit: 4363
Thank you very much now it actually resets to the correct sub-balance 1rst bet, but it doesnt go to the 3rd sub-balance. I want it every 3 losing streak to go to the next balance! What i have made seems to be that i have to have 6 losing streeak to go to the 3rd sub-balance! Any ideas?
So you're saying that if you are on 2nd sub-balance... and you get a win... it should still stay on 2nd sub-balance and "keep betting 0.00000080 until profit is 0.00001000" right?

If so, you'll probably need to use a boolean flag to keep track of which sub-balance you are betting on... so you can put another if statement inside the "if currentstreak==-3 then" block, so that it will work when you have a streak of 3 losses... I'm not sure it'll work properly with the 3rd sub-balance, after 1 win, I think it will reset to 0.00000008 and start again... but you get the idea

I've made some changes to chilly's script... added in "balance2" flag... I think it should be close to what you are after, but do bear in mind, this is completely untested!

Code:
chance=49.5 --sets your chance for placing a bet
nextbet=0.00000008 --sets your first bet.
basebet=0.00000008 -- moved to only set once
currentbase = basebet -- save the current base bet
balance2 = false -- flag to indicate we are using 2nd sub-balance

function dobet()

if profit > 0.00001000 then
  resetstats()
  currentbase = basebet -- reset to base bet
  balance2 = false -- made our profit, reset to 1st sub-balance
end
if win then

    if balance2 == false then
        nextbet=currentbase -- reset to the current base
    else
        -- using 2nd sub-balance, start from 0.0000080 until profit > 0.00001000
        nextbet=0.00000080
    end

else

    nextbet=previousbet*2.54

end

if currentstreak==-3 then

   if balance2 == false then
       balance2 = true
       nextbet=0.00000080
       currentbase = nextbet -- save current base
   else
       --already betting 2nd sub-balance, move to 3rd sub-balance
       nextbet = 0.00000800
       currentbase = nextbet -- save current base
   end

end

if currentstreak==-10 then

     nextbet=0.00000001

end
end end
Pages:
Jump to: