Pages:
Author

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

legendary
Activity: 1717
Merit: 1125
Hello Seuntjie, time ago we had a talk about betting in % of their bankroll...
I would to program the bot like this:

For example i have a balance of 0.00010000
Base bet: 10% of the bankroll
Betting chance: 13%
When i start to roll, the bot have to reset the base bet at 10% of the new balance:
- after 1st win
- after 10 loss in a row

Think that's possible in programmer mode, but i don't know how to program it...
Any chance?

Sorry I haven't replied to this. I started making a video but the power went out while i was busy and my windows started giving problems shortly after and i just haven't had a chance to finish it since.

Trying to round the bet using math.floor, bet*10^8, and a custom variable yields an error after 10-15 bets.

I get API blocked (pretty sure this is what's happening) by 999dice for 5 minutes give or take after 10-15 bets, even though the bets seem to be calculating and placing properly.

I can run the example martingale script found on your website just fine for however long I want.

This doesn't make sense to me since all of these things (math, custom variable for storing extra data) are going on client side (or am I wrong?)

Please help.


Hello Seuntjie, time ago we had a talk about betting in % of their bankroll...
I would to program the bot like this:

For example i have a balance of 0.00010000
Base bet: 10% of the bankroll
Betting chance: 13%
When i start to roll, the bot have to reset the base bet at 10% of the new balance:
- after 1st win
- after 10 loss in a row

Think that's possible in programmer mode, but i don't know how to program it...
Any chance?

Could you try to clarify?

As I understand you want to bet 10% of your bankroll, and update it to 10% after every win, so it's always 10%

You don't want to update it after every loss, you only want to update it to 10% after ten losses in a row...

But after 10 losses in a row you would have lost 10%*10=100% of your bankroll.. So your balance would be 0.??

it's possible that after a few losses you're getting an integer overflow error. Maybe try 10.8^8.0 instead and force the variables you're using into decimals wherever possible. This would cause you to try and place negative bets to 999dice.


As far as i understood his description, he wants to update his bet 10% of his bankroll after every win, and after every 10 losses in a row. so after 10 losses change bet, after 20 losses, change bet, etc etc. Seems like a flawed strategy to me though.

hero member
Activity: 784
Merit: 502
If that happens then anyone can come up with a script to modify the values according to their needs right ?Thus all bets will be against the house edges.Don't think any gambling website for that matter gives that kind of  access of third party scripts.

I know but I think this can be prevented from their site's front end. Like suppose if the house edge is below certain limit after a user modified the values then that corresponding roll will not work until he fixed the house edge.

I have seen this kind of freedom given towards gamblers in some plinko games. But I wonder this will happen in dice though.
legendary
Activity: 1750
Merit: 1115
Providing AI/ChatGpt Services - PM!
In case of dice multipliers can this script be used?

This script has the ability to generate randomized hash on its own.
But I think it will not work on majority of dice sites. Might have to give it a try before final reviewing.

Let me know if it an be implemented on Seuntjie bot's programmers mode?
I doubt this script will actually work on the website.The betting part is fine but as far as the generation of hash is concerned ,I don't think you will be allowed to parse the data or modify the values from the server.If that happens then anyone can come up with a script to modify the values according to their needs right ?Thus all bets will be against the house edges.Don't think any gambling website for that matter gives that kind of  access of third party scripts.
hero member
Activity: 784
Merit: 502
In case of dice multipliers can this script be used?

Code:
bconfig = {
maxBet: 0.0004200,
wait: 3000,
autoexit: 0.00001,
want: 0.000014,
toggleHilo:false,
startbal: 0,
won: 0,
};
hilo = 'hi';
multiplier = 1;
rollDice = function() {
if ($('#double_your_btc_bet_lose').html() !== '') {
$('#double_your_btc_2x').click();
multiplier = 1;
if(bconfig.toggleHilo)toggleHiLo();
} else {
$('#double_your_btc_min').click();
multiplier = 1;
}
if (parseFloat($('#balance').html()) < (parseFloat($('#double_your_btc_stake').val()) * 2) ||
parseFloat($('#double_your_btc_stake').val()) > bconfig.maxBet) {
console.log($('#double_your_btc_min'));
}
if (parseFloat($('#balance').html()) < bconfig.autoexit) {
throw "exit";
}
if (parseFloat($('#balance').html()) > bconfig.want) {
var num = parseFloat($('#balance').html());
bconfig.want = num + 0.00000030;
bconfig.autoexit = num - 0.00000420;
bconfig.won++;
var total = num - bconfig.startbal;
console.log('Setting bconfig want to: ' + bconfig.want)
console.log('Setting autoexit to: ' + bconfig.autoexit)
console.log('Total won: ' + total + ' BTC')
}
$('#double_your_btc_bet_hi_button').click();
setTimeout(rollDice, (multiplier * bconfig.wait) + Math.round(Math.random() * 1000));
};
toggleHiLo = function() {
if (hilo === 'hi') {
hilo = 'hi';
} else {
hilo = 'hi';
}
};
var num = parseFloat($('#balance').html());
bconfig.startbal = num;
bconfig.want = num + 0.00000030;
bconfig.autoexit = num - 0.00000420;
rollDice();
setTimeout(function () { location.reload(1); }, 10*60*1000);

This script has the ability to generate randomized hash on its own.
But I think it will not work on majority of dice sites. Might have to give it a try before final reviewing.

Let me know if it an be implemented on Seuntjie bot's programmers mode?
hero member
Activity: 952
Merit: 500
Hello Seuntjie, time ago we had a talk about betting in % of their bankroll...
I would to program the bot like this:

For example i have a balance of 0.00010000
Base bet: 10% of the bankroll
Betting chance: 13%
When i start to roll, the bot have to reset the base bet at 10% of the new balance:
- after 1st win
- after 10 loss in a row

Think that's possible in programmer mode, but i don't know how to program it...
Any chance?
legendary
Activity: 1007
Merit: 1000
someone help me to program this sequences..

bet 1 lose
bet 2 lose
switch
bet 3 lose
bet 4 lose
switch
bet 5 lose
switch
bet 6


only until bet 6

thanks

  Not sure what your trying to do, but that's easy. 

losscount = 0

if(win) then
   losscount = 0
else
   losscount += 1
   if(losscount == 2 or losscount == 4 or losscount == 5) then
     bethigh = !bethigh
   end
   if (losscount == 6) then
      "do something else"
      losscount = 0
   end
end


   So you setup and initialize a variable called losscount  (That's just a name I picked)

Then each time you lose, increment losscount by 1.

if it equals 2 4 or 5 then switch the bethigh variable.
if it equals 6 do something else, like reset your bet, and reset losscount so you start again.

If you win you need to reset losscount, otherwise it will accumulate.     
hero member
Activity: 602
Merit: 500
someone help me to program this sequences..

bet 1 lose
bet 2 lose
switch
bet 3 lose
bet 4 lose
switch
bet 5 lose
switch
bet 6


only until bet 6

thanks
legendary
Activity: 1717
Merit: 1125
I've started making a (really horrible) video tutorial series about dicebots programmer mode and how to use it. At the time of writing there are 4 videos, 3 of which are still being uploaded. You can check them out at https://www.youtube.com/playlist?list=PLZH88mwZAXLxVtHpc3PIFamkiT1o2V3LX when they are uploaded

Video playlist: https://www.youtube.com/playlist?list=PLZH88mwZAXLxVtHpc3PIFamkiT1o2V3LX

I'll take requests and answer questions as well as I can, so feel free to comment and whatever
legendary
Activity: 1717
Merit: 1125
I often see in primedice and bitdice and really many more sites, where you can put a command and the bot give you results like exchange rates and such. I am really  a big fan of seuntje's bots. Keep up the good works.

Totally different program, but glad you like it never the less. Donations are always welcome
legendary
Activity: 1386
Merit: 1058
I often see in primedice and bitdice and really many more sites, where you can put a command and the bot give you results like exchange rates and such. I am really  a big fan of seuntje's bots. Keep up the good works.
newbie
Activity: 5
Merit: 0
ok thanks sir. just wanted an example of how runsim works. now i get it. Grin
legendary
Activity: 1717
Merit: 1125
Code:
function dobet()
if count >= 14  then
print("entering beastmode")
if (balance) >= profittarget then
print("target profittarget achieved")
count=1
profittarget= profittarget +0.001

hi just wanted to ask if i need to declare the balance in the code. cause i saw a code that doesn't declare that variable. and if it doesn't need to. just asking if what does this variable mean(i mean exactly the meaning of it)?? and another question i wanted to test my code via simulation
Code:
runsim(double startingBalance, int NumberOfBets)
how can i use this?? should i replace the NumberOfBets with integer?? so as starting Balance?? thanks for reply

There is a box in the programmer mode that lists the predefined variables. these variables do not need to be declared in your script, you can just use them. balance is among them. the balance variable is your balance at the site you're currently logged in to with the bot.

runsim(double startingBalance, int NumberOfBets) means this:
runsim = function/method with two parameters
the first being of type double that is your simulated starting balance
the second is of type (int)eger and is the number of bets to simulate.
so to call the method you'd use something like runsim(0.5, 2500)

this is the standard way of declaring functions/methods in most programming languages.
newbie
Activity: 5
Merit: 0
Code:
function dobet()
if count >= 14  then
print("entering beastmode")
if (balance) >= profittarget then
print("target profittarget achieved")
count=1
profittarget= profittarget +0.001

hi just wanted to ask if i need to declare the balance in the code. cause i saw a code that doesn't declare that variable. and if it doesn't need to. just asking if what does this variable mean(i mean exactly the meaning of it)?? and another question i wanted to test my code via simulation
Code:
runsim(double startingBalance, int NumberOfBets)
how can i use this?? should i replace the NumberOfBets with integer?? so as starting Balance?? thanks for reply
tCA
newbie
Activity: 2
Merit: 0
thank you for this quick feedback!
i'll try to dig myself deep into the code i've got in mind..
really hoping for this history read out thing to work..
if it works, or if i need further help - you'll read again my name here Wink
legendary
Activity: 1717
Merit: 1125
Hello to all of the programmers and developers here - you've given us a really mighty tool with this, so a big big thank you and 1000x kisses for you before i'll start my questions  Kiss Wink


nontheless, there are some restrictions due to the "limited" interface in advanced mode..
yes.. i said limited.. Cheesy i know this sounds a bit greedy, but the deeper you want to modify your bets, the more switches you'll need..


in fact that's why i started to go into programmers mode right now..
first requested feature would be a "convert advanced settings into a script for programmers mode"
or is there any other way to get my saved advanced mode settings into editable programming script?


in second i'd like to find certain win/lose streaks to modify the bet right after them..
e.g. wlwlwl  or  wlllwl  -->  return to base bet
so in a future build it would be nice to see such a "streak search" box with triggers for bet, multiply etc...
but if you got a sample for something like this in programmers mode, this should be fine then too.


as third i would like to mention, that the new buttons in 3.1.2 beta for general reset/stop after x wins/losses doesn't seem to work?
they would really help to call betting exits that are not covered with the classic triggers from 3.1.1.


thanks for your feedback

tCA



1. There is already a way to modify your advanced settings from the programmer mode.
You can use the martingale/labouchere/fibonacci/dalembert functions (see the functions box in the bot for the function arguments) to call the built in functions. These functions return what would be your next bet, so in the programmer mode, you would do something like:
nextbet=martingale(win)
to get the result from the built in martingale function.
Additionally, there are the setvaluexxxx and getvalue functions (again, see the functions box in the bot for the precise function names and arguments) that work with the control names as they are saved in the settings file. For example, you can change your multiplier to 2.5 using
setvaluedouble("Multiplier",2.5)

These names are case sensitive. When I get the time, I will make a list of these names with an explanation of what they link to on the website. Between these two sets of functions, you can easily customize your advanced settings.

Note that some variables, like chance, should be changed using the programmer mode variable, not the setvalue functions.

2. The programmer mode has access to all of the information you need to track these streaks yourself. between the win (true if win, false if loss) and the currentstreak (+ indicates winning streak, - indicates losing streak. Number is size of streak) variables, you don't really need anything else. Alternatively, you can use the getHistoryByQuery function to search for your last few bets from the DB and see if it fits the pattern. [select top(5) * from bets order by id desc (or something like that)]

3. I'll check it out. Keep in mind that when using the programmer mode, these stop and reset conditions are ignored by default. To enable them in the programmer mode, you need to set the variable enablersc to true either in your script or in the console before starting the bot.

Not really relevant to your questions, but still useful.
If you're going to be writing longs scripts, you can write the script in an external file with another IDE (like notepad++ or VS or whatever) and then execute the file from the bot. Instead of using the script in the code box in the bot, simply use the dofile function. For instance, I have a script called tst.txt that I'm editing using notepad++, my code box in the bot is dofile('tst.txt'). When I run the bot or a simulation, the file gets executed and the code loaded from it. This makes it somewhat easier to edit and read scripts. This also allows you to break you code up in to different files if the need arises.
tCA
newbie
Activity: 2
Merit: 0
 Hello to all of the programmers and developers here - you've given us a really mighty tool with this, so a big big thank you and 1000x kisses for you before i'll start my questions  Kiss Wink


nontheless, there are some restrictions due to the "limited" interface in advanced mode..
yes.. i said limited.. Cheesy i know this sounds a bit greedy, but the deeper you want to modify your bets, the more switches you'll need..


in fact that's why i started to go into programmers mode right now..
first requested feature would be a "convert advanced settings into a script for programmers mode"
or is there any other way to get my saved advanced mode settings into editable programming script?


in second i'd like to find certain win/lose streaks to modify the bet right after them..
e.g. wlwlwl  or  wlllwl  -->  return to base bet
so in a future build it would be nice to see such a "streak search" box with triggers for bet, multiply etc...
but if you got a sample for something like this in programmers mode, this should be fine then too.


as third i would like to mention, that the new buttons in 3.1.2 beta for general reset/stop after x wins/losses doesn't seem to work?
they would really help to call betting exits that are not covered with the classic triggers from 3.1.1.


thanks for your feedback

tCA
legendary
Activity: 1717
Merit: 1125
Thanks ,
Ive been tryin all sorts on the runsim() but still strugling to get something thats worth playing with.

I think strategy may depend on the balance on the account

   For sure.  Balance, Luck and seed all work together.  Also setting a goal and just trying to make it helps.  I have yet to find a strat that never fails.  Eventually they all do.  The trick is finding one that works for your seed, site, and then set a realistic goal, and stop once you reach it. 

Well that's the point of the house edge. Smaller house edge just means it takes a bit longer.

You should never gamble to make a money, with money you cannot afford to lose or expect the bot to be a money printing machine. The bot is only a way of making dice more interesting and it would be best if everyone that uses it keeps that in mind.
legendary
Activity: 1007
Merit: 1000
Thanks ,
Ive been tryin all sorts on the runsim() but still strugling to get something thats worth playing with.

I think strategy may depend on the balance on the account

   For sure.  Balance, Luck and seed all work together.  Also setting a goal and just trying to make it helps.  I have yet to find a strat that never fails.  Eventually they all do.  The trick is finding one that works for your seed, site, and then set a realistic goal, and stop once you reach it. 
newbie
Activity: 2
Merit: 0
Thanks ,
Ive been tryin all sorts on the runsim() but still strugling to get something thats worth playing with.

I think strategy may depend on the balance on the account
legendary
Activity: 1007
Merit: 1000
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.   

Hi,
Ive just joined and im trying out the above code on primedice.
Things started off well and profit was stable.
So after an hour or so I left it do its thing, Only to to see it stopped at "insufficient funds" when I returned a bit later.
it seems the bets were getting larger all the time and I eventually lost as the bets were getting too big.

Just wondering if there are any tips to slow it from betting so high.

thanks.

 Let me think about it for a little bit.  I forget what this one does...
Pages:
Jump to: