Bitcoin Forum
December 12, 2024, 02:05:58 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 [39] 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 »
  Print  
Author Topic: Seuntjie' Dice bot programmers mode discussion.  (Read 125464 times)
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
August 03, 2017, 09:23:41 AM
 #761

Quote
function dobet()

if (win) then
...
else
if chance==chance1 then
     nextbet= previousbet*1.0
end
...
if (chance==chance3 and currentstreak==-40) then
   chance2=chance3
   nextbet = 0.00000004
   nextbet=previousbet*1.1
end
if (chance==chance4 and currentstreak==-60) then
   stop()
...
end
Looks like you're incorrectly setting chance2=chance3 instead of chance=chance3...

Also, at no point do you actually set chance=chance4...

Finally why are you setting the chances AFTER you do the matching if??
Quote
if (chance==chance2 and currentstreak==-20) then
   chance=chance2
   ...
if (chance==chance3 and currentstreak==-40) then
  chance=chance3
  ...
Those are never likely to be called as you expect... as chance won't be equal to 2 or 3... as they get set INSIDE that IF statement... which will never be true (well, chance2 might be set after a win streak%3==0... but still... that's just luck... Wink)

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
dimondimon
Member
**
Offline Offline

Activity: 270
Merit: 10


View Profile
August 03, 2017, 11:12:08 AM
 #762

Quote
function dobet()

if (win) then
...
else
if chance==chance1 then
     nextbet= previousbet*1.0
end
...
if (chance==chance3 and currentstreak==-40) then
   chance2=chance3
   nextbet = 0.00000004
   nextbet=previousbet*1.1
end
if (chance==chance4 and currentstreak==-60) then
   stop()
...
end
Looks like you're incorrectly setting chance2=chance3 instead of chance=chance3...

Also, at no point do you actually set chance=chance4...

Finally why are you setting the chances AFTER you do the matching if??
Quote
if (chance==chance2 and currentstreak==-20) then
   chance=chance2
   ...
if (chance==chance3 and currentstreak==-40) then
  chance=chance3
  ...
Those are never likely to be called as you expect... as chance won't be equal to 2 or 3... as they get set INSIDE that IF statement... which will never be true (well, chance2 might be set after a win streak%3==0... but still... that's just luck... Wink)


I don't know how to do the script,I just wanted to remake this script

Code:
chance1 = 89
chance2 = 10
bethigh = true
basebet = 0.00000001
nextbet = 0.00000001

function dobet()

if (win) then
    nextbet = basebet
    chance = chance1
  if currentstreak%30==0 then
     nextbet = 0.00000001
     chance = chance2
     bethigh =!bethigh
end
else
if chance==chance1 then
     nextbet= previousbet*1.0
end
if chance==chance2 then
     nextbet=previousbet*1.15
end
if (chance==chance1 and currentstreak==-3) then
   nextbet=previousbet
end
if (chance==chance2 and currentstreak==-10) then
   nextbet=previousbet*1.05
end
end
end
end
end
you can do it right,I can't do it
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
August 03, 2017, 11:17:44 AM
 #763

I don't know how to do the script,I just wanted to remake this script
you can do it right,I can't do it
Given that I have no idea what it is that you're actually attempting to achieve... no, I can't do it.

You've not specified what the script is supposed to do. You've just given us a broken script and said "it doesn't work, please fix it" Undecided

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
August 03, 2017, 11:21:30 AM
 #764

Given that I have no idea what it is that you're actually attempting to achieve... no, I can't do it.

You've not specified what the script is supposed to do. You've just given us a broken script and said "it doesn't work, please fix it" Undecided

Didn't you know that all programmers and tech support people are supposed to be omniscient and instantly know what's wrong when someone says "it doesn't work"?

dimondimon
Member
**
Offline Offline

Activity: 270
Merit: 10


View Profile
August 03, 2017, 12:04:40 PM
 #765

Given that I have no idea what it is that you're actually attempting to achieve... no, I can't do it.

You've not specified what the script is supposed to do. You've just given us a broken script and said "it doesn't work, please fix it" Undecided

Didn't you know that all programmers and tech support people are supposed to be omniscient and instantly know what's wrong when someone says "it doesn't work"?
I need nextbet have changed along with chance
Code:
chance1 = 89
chance2 = 10
chance3 = 9
chance4 = 8
bethigh = true
basebet = 0.00000001
nextbet = 0.00000001


function dobet()

if (win) then
    nextbet = basebet
    chance = chance1
  if currentstreak%3==0 then
     nextbet = 0.00000001
     chance = chance2
     

     bethigh =!bethigh
end
else
if chance==chance1 then
     nextbet= previousbet*1.0
end
if chance==chance2 then
     nextbet=previousbet*1.09
end
if chance==chance3 then
     nextbet = 0.00000003
     nextbet=previousbet*1.105
end
if chance==chance4 then
     nextbet = 0.00000007
     nextbet=previousbet*1.1
end
if (chance==chance1 and currentstreak==-3) then
   nextbet=previousbet
end
if (chance==chance2 and currentstreak==-20) then
   chance=chance3
   nextbet = 0.00000003
   nextbet=previousbet*1.09
end
if (chance==chance3 and currentstreak==-40) then
   chance=chance4
   nextbet = 0.00000007
   nextbet=previousbet*1.1
end
if (chance==chance4 and currentstreak==-60) then
   stop()

end
end
end
end
end

chance is changing,and the rate continues to increase and is not reset to the specified settings

haybee191
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
August 03, 2017, 12:25:05 PM
 #766

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
You'll want to include a paused "flag" and a loss counter...  so, if there is a "win", you reset the lossCount back to 0... if a "loss" AND chance == 33.33 then you increment it by 1. When the counter gets to 5, you set the flag to true and use that condition to specify the betsize = 0.00000001

I assume when you say that "it resumes from the previous level" that you want it to store the old bet amount from where it paused... and then use that once it starts betting again?


NOTE: this code is UNTESTED
Code:
chance = 81.12
bethigh = true
basebet = 0.00000031
nextbet = basebet
losscount = 0
oldbet = 0
paused = false

function dobet()

  if win then
    if paused then
      losscount = 0
      paused = false
      nextbet = oldbet * 1.59738 -- resume betting at previous level
    else
      chance = 81.12
      nextbet = basebet
    end

  else
    if chance == 33.33 then
      losscount = losscount + 1
      if losscount == 5 then
        paused = true
        nextbet = 0.00000001
        oldbet = previousbet -- save the current bet for resuming later
      elseif losscount > 5 then
        paused = true
        nextbet = 0.00000001
      else
        nextbet = previousbet * 1.59738
      end
    
    else
      chance = 33.33
      nextbet = basebet/3.3
    end

  end

end
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
August 04, 2017, 01:56:04 AM
 #767

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

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
N.i.a.P
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
August 04, 2017, 11:22:17 AM
 #768

Hi, would someone be so kind to write a simple script for me?
It should alternately make two different bets, no matter if win or loss.
Example:
1st bet 1 satoshi on 49.5% on high
2nd bet 2 satoshi on 30% on low
3rd bet 1 satoshi on 49.5% on high
4th bet 2 satoshi on 30% on low
...
...

Thx in advance...
B4RF
Hero Member
*****
Offline Offline

Activity: 813
Merit: 507


View Profile
August 04, 2017, 05:03:16 PM
 #769

Hi, would someone be so kind to write a simple script for me?
It should alternately make two different bets, no matter if win or loss.
Example:
1st bet 1 satoshi on 49.5% on high
2nd bet 2 satoshi on 30% on low
3rd bet 1 satoshi on 49.5% on high
4th bet 2 satoshi on 30% on low
...
...

Thx in advance...

Doesnt really make sense to me but this one should be easy.
Try this one:

Code:
firstchance = 49.5
secondchance = 30

firstbet = 0.00000001
secondbet = 0.00000002

chance = firstchance
nextbet = firstbet
bethigh = true

function dobet()

  if chance == firstchance then
    chance = secondchance
    nextbet = secondbet
    bethigh = false
  else
    chance = firstchance
    nextbet = firstbet
    bethigh = true
  end
end


▄▄▄████████▄▄▄
▄██████████████████▄
▄██████████████████████▄
██████████████████████████
████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
████████████████████████████
██████████████████████████
▀██████████████████████▀
▀██████████████████▀
▀▀▀████████▀▀▀
   ███████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
███████
BTC  ◉PLAY  ◉XMR  ◉DOGE  ◉BCH  ◉STRAT  ◉ETH  ◉GAS  ◉LTC  ◉DASH  ◉PPC
     ▄▄██████████████▄▄
  ▄██████████████████████▄        █████
▄██████████████████████████▄      █████
████ ▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄ ████     ▄██▀
████ █████ ██████ █████ ████    ▄██▀
████ █████ ██████ █████ ████    ██▀
████ █████ ██████ █████ ████    ██
████ ▀▀▀▀▀ ▀▀▀▀▀▀ ▀▀▀▀▀ ████ ▄██████▄
████████████████████████████ ████████
███████▀            ▀███████ ▀██████▀
█████▀                ▀█████
▀██████████████████████████▀
  ▀▀████████████████████▀▀ 
✔️DICE           
✔️BLACKJACK
✔️PLINKO
✔️VIDEO POKER
✔️ROULETTE     
✔️LOTTO
N.i.a.P
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
August 05, 2017, 11:41:24 AM
 #770

Hi, would someone be so kind to write a simple script for me?
It should alternately make two different bets, no matter if win or loss.
Example:
1st bet 1 satoshi on 49.5% on high
2nd bet 2 satoshi on 30% on low
3rd bet 1 satoshi on 49.5% on high
4th bet 2 satoshi on 30% on low
...
...

Thx in advance...

Doesnt really make sense to me but this one should be easy.
Try this one:

Code:
firstchance = 49.5
secondchance = 30

firstbet = 0.00000001
secondbet = 0.00000002

chance = firstchance
nextbet = firstbet
bethigh = true

function dobet()

  if chance == firstchance then
    chance = secondchance
    nextbet = secondbet
    bethigh = false
  else
    chance = firstchance
    nextbet = firstbet
    bethigh = true
  end
end
Thank you
sree6020
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
August 07, 2017, 03:35:17 PM
 #771

I am getting an Error in dice bot which I previously never seen .The error happened on Duck dice.

The error message was "Minimal chance for faucet bets is 10%."       There is nothing to do with faucet as I am not playing with faucet amount.And there was no error previously with the same settings .
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
August 07, 2017, 04:06:13 PM
 #772

I am getting an Error in dice bot which I previously never seen .The error happened on Duck dice.

The error message was "Minimal chance for faucet bets is 10%."       There is nothing to do with faucet as I am not playing with faucet amount.And there was no error previously with the same settings .

Nowhere in the bot do I have that error, and my english is (mostly) better. I would have used the word Minimum. What I do have in the bot though (in the file DuckDice.cs):
Code:
                QuackBet newbet = json.JsonDeserialize<QuackBet>(sEmitResponse);
                if (newbet.error!=null)
                {
                    Parent.updateStatus(newbet.error);
                    return;
                }

Which means you get that error from duckdice. It's not from DiceBot or DiceBots fault. Guess they must have had an update?

sree6020
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
August 07, 2017, 05:26:50 PM
Last edit: August 07, 2017, 05:38:55 PM by sree6020
 #773

I am getting an Error in dice bot which I previously never seen .The error happened on Duck dice.

The error message was "Minimal chance for faucet bets is 10%."       There is nothing to do with faucet as I am not playing with faucet amount.And there was no error previously with the same settings .

Nowhere in the bot do I have that error, and my english is (mostly) better. I would have used the word Minimum. What I do have in the bot though (in the file DuckDice.cs):
Code:
                QuackBet newbet = json.JsonDeserialize<QuackBet>(sEmitResponse);
                if (newbet.error!=null)
                {
                    Parent.updateStatus(newbet.error);
                    return;
                }

Which means you get that error from duckdice. It's not from DiceBot or DiceBots fault. Guess they must have had an update?

Yah it  actually shows "Minimal ". So if you are correct then I should contact Duck dice.....Any way thanks for your support.
burninglory2
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
August 09, 2017, 10:07:00 AM
 #774

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

Activity: 1007
Merit: 1000


View Profile
August 09, 2017, 01:02:20 PM
 #775

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. 

burninglory2
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
August 09, 2017, 01:25:51 PM
 #776

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

Activity: 1007
Merit: 1000


View Profile
August 09, 2017, 02:00:34 PM
 #777

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


burninglory2
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
August 09, 2017, 02:16:47 PM
 #778

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!!
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
August 09, 2017, 03:50:46 PM
 #779

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

DCP
Member
**
Offline Offline

Activity: 110
Merit: 10


View Profile
August 09, 2017, 10:42:15 PM
 #780


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






H ~ O ~ D ~ L
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 [39] 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 »
  Print  
 
Jump to:  

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