Pages:
Author

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

DCP
member
Activity: 110
Merit: 10
POSITIVE PROGRESSION STRATEGY  

Here is a simple positive progression and I would love someone to help me improve it.

How it works:   (It bets high all the time. Working code is at bottom of post)

Starting bet is zero
After 4 wins in a row (betting zero)
Enter bet 1   starting bet example:  0.00001
If bet 1 loses, reset
If bet 1 wins, bet double 0.00002
If bet 2 loses, reset
If bet 2 wins, bet double 0.00004
If bet 3 loses, reset
If bet 3 wins, reset  (this hand collected 0.00008)


(Nutshell version:  It waits for 4 wins in a row and then bets the next 3 hoping for a 7 win series)


Here's where I need help.

I want to define it as a "series" each time it bets higher then zero.

I want to define those series' as  "win series" or "loss series" based on result.

I want to be able to raise the starting bet once there has been X # of loss series
and lower it after a win series.

example:

Starting bet A  0.00002
Starting bet B  0.000045
Starting bet C  0.00010
Starting bet D  0.00024

If current win series is less then 6, then use Starting Bet A
If current loss series is between 6 and 12, then use Starting Bet B
If current loss series is between 12 and 18, then use Starting Bet C
If current loss series is between 19 and 25, then use Starting Bet D


Here's the code. I'm hoping someone can help me to bring this idea to life. I'm missing some pieces in the puzzle of how to code this..  Thanks!  


Code:
-- Level Up Go-For-7  by DCP @ BitcoinTalk
nextbet = 0.0
chance=51
enablesrc=true
bethigh =  true
resetonwin = false
bethigh = true

function dobet()

if win then

nextbet = previousbet*0

if (resetonwin == true) then
nextbet = previousbet*0
end

-- (this part might be redundant but I want to be sure its betting high all the time)
if lastBet.Roll > 50000 then bethigh = true
end
if lastBet.Roll < 50000 then bethigh = true
end


if currentstreak == 4  then
nextbet = 0.000001
end

if currentstreak == 5  then
nextbet = previousbet*2
end

if currentstreak == 6  then
nextbet = previousbet*2
end

if currentstreak == -7  then
resetonwin=true
end


else

nextbet = previousbet*0

if lastBet.Roll > 50000 then bethigh = true
end
if lastBet.Roll < 50000 then bethigh = true
end



end
end
(working on primedice because they allow zero bets)
DCP
member
Activity: 110
Merit: 10
hey guys, I've removed this post because I have changed my focus to another idea which I think is more interesting, you'll see in the next post.
legendary
Activity: 1717
Merit: 1125
It is specially designed which is known robot. Robot do all these things because robots are design to do all these activities so it doesn't depend on luck if you are having sharp mind then you can play with robots if you are having depended on luck then your rest in peace will be called your luck after loss so i would say to avoid these things.

It's this kind of mindset that cause people to lose hundreds, even thousands of bitcoins while gambling.

The casino has a mathematical advantage over the player, the casino will always win in the end if you play long enough. No script, betting system, strategy or sharp mind can ever profit from a casino indefinitely. The only way to win from a casino is with luck. As soon as you try to use logic, the math is going to bust you.

Gamble for fun, never for profit.
Never gamble more than you can afford to lose.
Never expect to make profit from gambling.
hero member
Activity: 1092
Merit: 501
hello, thanks for your help, but the code still needs a bit of work, it enters the pause mode after just 3 attempts at 33.33 instead of 5 attempts, can you please help me to rectify this, so i can resume testing. thanks a lot for your help
Probably because the losscount is only reset on a win if the betting was paused... so loss, loss, loss, win, loss, loss would count as 5... Undecided

you can try taking "losscount = 0" out and putting it before "if paused then"... so that the losscount is reset on ANY win
It is specially designed which is known robot. Robot do all these things because robots are design to do all these activities so it doesn't depend on luck if you are having sharp mind then you can play with robots if you are having depended on luck then your rest in peace will be called your luck after loss so i would say to avoid these things.
full member
Activity: 319
Merit: 100
old and new versions have problem with YOLODICE:
simple he don't start any script.

status/current action: error:{"id":7"error";{"code":403,"message":"Forbidden"}}

why that?!

You haven't given your API key permission to bet. Ask in the yolodice how to do that.

anyone can help me with that issue?!
and say what I need to write in script to connect?!

It's not a problem with the bot. In yolodice, the casino, you need to give your API key permission to bet. Open yolodice in your browser. Log in if you are not logged in. Click on your name at the top right of the screen, click on settings. At the bottom of the page, click on "edit" next to your API key. check the play check box in the modal, then click apply.

now I get and understand it, thanks!
legendary
Activity: 1717
Merit: 1125
old and new versions have problem with YOLODICE:
simple he don't start any script.

status/current action: error:{"id":7"error";{"code":403,"message":"Forbidden"}}

why that?!

You haven't given your API key permission to bet. Ask in the yolodice how to do that.

anyone can help me with that issue?!
and say what I need to write in script to connect?!

It's not a problem with the bot. In yolodice, the casino, you need to give your API key permission to bet. Open yolodice in your browser. Log in if you are not logged in. Click on your name at the top right of the screen, click on settings. At the bottom of the page, click on "edit" next to your API key. check the play check box in the modal, then click apply.
full member
Activity: 319
Merit: 100
old and new versions have problem with YOLODICE:
simple he don't start any script.

status/current action: error:{"id":7"error";{"code":403,"message":"Forbidden"}}

why that?!

You haven't given your API key permission to bet. Ask in the yolodice how to do that.

anyone can help me with that issue?!
and say what I need to write in script to connect?!
legendary
Activity: 1717
Merit: 1125
old and new versions have problem with YOLODICE:
simple he don't start any script.

status/current action: error:{"id":7"error";{"code":403,"message":"Forbidden"}}

why that?!

You haven't given your API key permission to bet. Ask in the yolodice how to do that.
full member
Activity: 319
Merit: 100
old and new versions have problem with YOLODICE:
simple he don't start any script.

status/current action: error:{"id":7"error";{"code":403,"message":"Forbidden"}}

why that?!
HCP
legendary
Activity: 2086
Merit: 4361
To change the chance use you the "chance" variable.

Code:
chance = 49.5
...
function dobet()
...
  if someThing == true then
    chance = 90
  end
...
end

To reset, just have some default values stored in variables like basebet and basechance etc and just reset your nextbet and chance values when your condition is true
HCP
legendary
Activity: 2086
Merit: 4361
It should be "if resetonwin == true"... my bad... was typing in a hurry Wink

"==" is for comparison of one value to another
"=" is an assignment operator... it sets the one on the left to the value on the right Wink
DCP
member
Activity: 110
Merit: 10
Instead of stopping on a win, I want it to reset to basebet AFTER the single win comes (which meets the size criteria as above. )

You need to modify the "if stoponwin" part of the code as well... which you haven't shown. You can change the "if stoponwin" to "if resetonwin" and change stoponwin to resetonwin... NOTE: This assumes there are no other "stoponwin" criteria being used/set...

Code:
resetonwin = false
....
function dobet()
...
  if resetonwin = true then
    -- do the reset stuff
    nextbet = basebet --etc
  end

  ...
  if previousbet > (balance/3000)*3.6 then
    resetonwin = true
  end
  ...
end

Hi, thanks for your reply!

I realized that all I needed to do before was change the functionality for stoponwin.  It's working, thanks!

ie:

if (stoponwin == true) then
nextbet = (balance/3000)

end
HCP
legendary
Activity: 2086
Merit: 4361
Instead of stopping on a win, I want it to reset to basebet AFTER the single win comes (which meets the size criteria as above. )

You need to modify the "if stoponwin" part of the code as well... which you haven't shown. You can change the "if stoponwin" to "if resetonwin" and change stoponwin to resetonwin... NOTE: This assumes there are no other "stoponwin" criteria being used/set...

Code:
resetonwin = false
....
function dobet()
...
  if resetonwin = true then
    -- do the reset stuff
    nextbet = basebet --etc
  end

  ...
  if previousbet > (balance/3000)*3.6 then
    resetonwin = true
  end
  ...
end
DCP
member
Activity: 110
Merit: 10

Good day,


I would be grateful if someone can help me to change this function.

Code:
if  previousbet > (balance/3000)*3.6  then
stoponwin=true
end

Instead of stopping on a win, I want it to reset to basebet AFTER the single win comes (which meets the size criteria as above. )





legendary
Activity: 1717
Merit: 1125
that was typo earlier where i told you 5 loss streak it should be 4 but i can change it as i like from the script even with the base amounts i can calculate according to my balance and input it. I tried the code it works as i needed it. Thank you VERY MUCH!!

Nothing says "Thank you VERY MUCH!!" quite like a donation to the person that helped you. chilly2k helped you with your script, you can return the favour (his btc address is on his profile).
newbie
Activity: 3
Merit: 0
Hi guys,

My first post here, but I need a quick help to create my strategy in dicebot.

This is what the strategy looks like-

1- Start betting on LOW with CHANCE 49.5 and BASEBET 1 satoshi.
2 -When a winstreak of 4 occurs start betting on HIGH with CHANCE 49.5 and BASEBET 4 satoshi.
3 -If win then reset back to 1. Else multiply BASEBET by 2 and keep betting on HIGH until win and when win occurs reset back to 1.
4 -When a losestreak of 5 occurs start betting on LOW with CHANCE 49.5 and BASEBET 4 satoshi.
5 -If win then reset back to 1. Else multiply BASEBET by 2 and keep betting on LOW until win and when win occurs reset back to 1.


If someone can code this into a lua script, that would be great. I tried but not able to figure it out.

I tried it in primedice and it works well, but it takes a lot of time clicking and calculating which to bet next.

Thanks for your help!

   Your strategy isn't fully explained.  What do you expect to happen if you have a win streak of 4 and then a loss streak of 5.  Do you keep betting high until a win, or do you switch to low and change the base bet.
also what are you doing for the losses before you hit a win streak of 4 or loss streak of 5?  And do you really just want to bet 4 and 8 sats, IE only multiply basebet by 2.  Or do you want to multiply the previous bet by 2?
 
Code:
bethigh = false
chance = 49.5
basebet = .00000001
basebet2 = .00000004
nextbet = basebet

function dobet()

if win then
   bethigh = false
   nextbet = basebet
else
   nextbet = previousbet * 2
end

if currentstreak == 4 then
  bethigh = true
  nextbet = basebet2
end
if currentstreak == -5 then
   bethigh = false
   nextbet = basebet2
end


That should be pretty close.  NOTE: I didn't try this in the bot, so there could be any kind of error.  Use at your own risk. 


I want the bot to bet 1 satoshi on lower than 49.5 since i have chance set as 49.5 even on a loss it will bet 1 satoshi on low. As soon as it detects that there has been 4 rolls out of which all of the rolls are above 49.5(i.e 4 streak loss) it will start betting 4x the base amount(here it will be 4 satoshi since my base amount is 1 satoshi for now) on low if the next roll is low it will give +4 satoshi profit since my base amount is 1 satoshi. If it is a loss it will bet low again but this time with 8x to cover up for the loss and so on if the streak goes on. After winning that bet it should go back to betting 1 satoshi on low. If there a 4 rolls out of which all of the rolls were below 49.5(i.e 4 streak win) the bot will start betting 4x the base amount on high expecting the next roll to be above 49.5. If it wins that bet it will return to the start betting 1 satoshi on low hoping there will be a streak of win or loss soon.

   You changed it completely.  In your first update it was 4 wins or 5 loses.  Now your saying 4 loses.  Anyway this should be close. 

Code:
bethigh = false
chance = 49.5
basebet = .00000001
basebet2 = .00000004
nextbet = basebet
winlossstreak = false

function dobet()

if win then
   winlossstreak = false
   bethigh = false
   nextbet = basebet
else
   if winlossstreak then
      nextbet = previousbet * 2
   end
end

if currentstreak == 4 then
  bethigh = true
  nextbet = basebet2
  winlossstreak = true
end
if currentstreak == -5 then
   bethigh = false
   nextbet = basebet2
   winlossstreak = true
end


that was typo earlier where i told you 5 loss streak it should be 4 but i can change it as i like from the script even with the base amounts i can calculate according to my balance and input it. I tried the code it works as i needed it. Thank you VERY MUCH!!
legendary
Activity: 1007
Merit: 1000
Hi guys,

My first post here, but I need a quick help to create my strategy in dicebot.

This is what the strategy looks like-

1- Start betting on LOW with CHANCE 49.5 and BASEBET 1 satoshi.
2 -When a winstreak of 4 occurs start betting on HIGH with CHANCE 49.5 and BASEBET 4 satoshi.
3 -If win then reset back to 1. Else multiply BASEBET by 2 and keep betting on HIGH until win and when win occurs reset back to 1.
4 -When a losestreak of 5 occurs start betting on LOW with CHANCE 49.5 and BASEBET 4 satoshi.
5 -If win then reset back to 1. Else multiply BASEBET by 2 and keep betting on LOW until win and when win occurs reset back to 1.


If someone can code this into a lua script, that would be great. I tried but not able to figure it out.

I tried it in primedice and it works well, but it takes a lot of time clicking and calculating which to bet next.

Thanks for your help!

   Your strategy isn't fully explained.  What do you expect to happen if you have a win streak of 4 and then a loss streak of 5.  Do you keep betting high until a win, or do you switch to low and change the base bet.
also what are you doing for the losses before you hit a win streak of 4 or loss streak of 5?  And do you really just want to bet 4 and 8 sats, IE only multiply basebet by 2.  Or do you want to multiply the previous bet by 2?
 
Code:
bethigh = false
chance = 49.5
basebet = .00000001
basebet2 = .00000004
nextbet = basebet

function dobet()

if win then
   bethigh = false
   nextbet = basebet
else
   nextbet = previousbet * 2
end

if currentstreak == 4 then
  bethigh = true
  nextbet = basebet2
end
if currentstreak == -5 then
   bethigh = false
   nextbet = basebet2
end


That should be pretty close.  NOTE: I didn't try this in the bot, so there could be any kind of error.  Use at your own risk. 


I want the bot to bet 1 satoshi on lower than 49.5 since i have chance set as 49.5 even on a loss it will bet 1 satoshi on low. As soon as it detects that there has been 4 rolls out of which all of the rolls are above 49.5(i.e 4 streak loss) it will start betting 4x the base amount(here it will be 4 satoshi since my base amount is 1 satoshi for now) on low if the next roll is low it will give +4 satoshi profit since my base amount is 1 satoshi. If it is a loss it will bet low again but this time with 8x to cover up for the loss and so on if the streak goes on. After winning that bet it should go back to betting 1 satoshi on low. If there a 4 rolls out of which all of the rolls were below 49.5(i.e 4 streak win) the bot will start betting 4x the base amount on high expecting the next roll to be above 49.5. If it wins that bet it will return to the start betting 1 satoshi on low hoping there will be a streak of win or loss soon.

   You changed it completely.  In your first update it was 4 wins or 5 loses.  Now your saying 4 loses.  Anyway this should be close. 

Code:
bethigh = false
chance = 49.5
basebet = .00000001
basebet2 = .00000004
nextbet = basebet
winlossstreak = false

function dobet()

if win then
   winlossstreak = false
   bethigh = false
   nextbet = basebet
else
   if winlossstreak then
      nextbet = previousbet * 2
   end
end

if currentstreak == 4 then
  bethigh = true
  nextbet = basebet2
  winlossstreak = true
end
if currentstreak == -5 then
   bethigh = false
   nextbet = basebet2
   winlossstreak = true
end

newbie
Activity: 3
Merit: 0
Hi guys,

My first post here, but I need a quick help to create my strategy in dicebot.

This is what the strategy looks like-

1- Start betting on LOW with CHANCE 49.5 and BASEBET 1 satoshi.
2 -When a winstreak of 4 occurs start betting on HIGH with CHANCE 49.5 and BASEBET 4 satoshi.
3 -If win then reset back to 1. Else multiply BASEBET by 2 and keep betting on HIGH until win and when win occurs reset back to 1.
4 -When a losestreak of 5 occurs start betting on LOW with CHANCE 49.5 and BASEBET 4 satoshi.
5 -If win then reset back to 1. Else multiply BASEBET by 2 and keep betting on LOW until win and when win occurs reset back to 1.


If someone can code this into a lua script, that would be great. I tried but not able to figure it out.

I tried it in primedice and it works well, but it takes a lot of time clicking and calculating which to bet next.

Thanks for your help!

   Your strategy isn't fully explained.  What do you expect to happen if you have a win streak of 4 and then a loss streak of 5.  Do you keep betting high until a win, or do you switch to low and change the base bet.
also what are you doing for the losses before you hit a win streak of 4 or loss streak of 5?  And do you really just want to bet 4 and 8 sats, IE only multiply basebet by 2.  Or do you want to multiply the previous bet by 2?
 
Code:
bethigh = false
chance = 49.5
basebet = .00000001
basebet2 = .00000004
nextbet = basebet

function dobet()

if win then
   bethigh = false
   nextbet = basebet
else
   nextbet = previousbet * 2
end

if currentstreak == 4 then
  bethigh = true
  nextbet = basebet2
end
if currentstreak == -5 then
   bethigh = false
   nextbet = basebet2
end


That should be pretty close.  NOTE: I didn't try this in the bot, so there could be any kind of error.  Use at your own risk. 


I want the bot to bet 1 satoshi on lower than 49.5 since i have chance set as 49.5 even on a loss it will bet 1 satoshi on low. As soon as it detects that there has been 4 rolls out of which all of the rolls are above 49.5(i.e 4 streak loss) it will start betting 4x the base amount(here it will be 4 satoshi since my base amount is 1 satoshi for now) on low if the next roll is low it will give +4 satoshi profit since my base amount is 1 satoshi. If it is a loss it will bet low again but this time with 8x to cover up for the loss and so on if the streak goes on. After winning that bet it should go back to betting 1 satoshi on low. If there a 4 rolls out of which all of the rolls were below 49.5(i.e 4 streak win) the bot will start betting 4x the base amount on high expecting the next roll to be above 49.5. If it wins that bet it will return to the start betting 1 satoshi on low hoping there will be a streak of win or loss soon.
legendary
Activity: 1007
Merit: 1000
Hi guys,

My first post here, but I need a quick help to create my strategy in dicebot.

This is what the strategy looks like-

1- Start betting on LOW with CHANCE 49.5 and BASEBET 1 satoshi.
2 -When a winstreak of 4 occurs start betting on HIGH with CHANCE 49.5 and BASEBET 4 satoshi.
3 -If win then reset back to 1. Else multiply BASEBET by 2 and keep betting on HIGH until win and when win occurs reset back to 1.
4 -When a losestreak of 5 occurs start betting on LOW with CHANCE 49.5 and BASEBET 4 satoshi.
5 -If win then reset back to 1. Else multiply BASEBET by 2 and keep betting on LOW until win and when win occurs reset back to 1.


If someone can code this into a lua script, that would be great. I tried but not able to figure it out.

I tried it in primedice and it works well, but it takes a lot of time clicking and calculating which to bet next.

Thanks for your help!

   Your strategy isn't fully explained.  What do you expect to happen if you have a win streak of 4 and then a loss streak of 5.  Do you keep betting high until a win, or do you switch to low and change the base bet.
also what are you doing for the losses before you hit a win streak of 4 or loss streak of 5?  And do you really just want to bet 4 and 8 sats, IE only multiply basebet by 2.  Or do you want to multiply the previous bet by 2?
 
Code:
bethigh = false
chance = 49.5
basebet = .00000001
basebet2 = .00000004
nextbet = basebet

function dobet()

if win then
   bethigh = false
   nextbet = basebet
else
   nextbet = previousbet * 2
end

if currentstreak == 4 then
  bethigh = true
  nextbet = basebet2
end
if currentstreak == -5 then
   bethigh = false
   nextbet = basebet2
end


That should be pretty close.  NOTE: I didn't try this in the bot, so there could be any kind of error.  Use at your own risk. 
newbie
Activity: 3
Merit: 0
Hi guys,

My first post here, but I need a quick help to create my strategy in dicebot.

This is what the strategy looks like-

1- Start betting on LOW with CHANCE 49.5 and BASEBET 1 satoshi.
2 -When a winstreak of 4 occurs start betting on HIGH with CHANCE 49.5 and BASEBET 4 satoshi.
3 -If win then reset back to 1. Else multiply BASEBET by 2 and keep betting on HIGH until win and when win occurs reset back to 1.
4 -When a losestreak of 5 occurs start betting on LOW with CHANCE 49.5 and BASEBET 4 satoshi.
5 -If win then reset back to 1. Else multiply BASEBET by 2 and keep betting on LOW until win and when win occurs reset back to 1.


If someone can code this into a lua script, that would be great. I tried but not able to figure it out.

I tried it in primedice and it works well, but it takes a lot of time clicking and calculating which to bet next.

Thanks for your help!
Pages:
Jump to: