Pages:
Author

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

legendary
Activity: 1717
Merit: 1125
okey thanks!

but "I'm saying you can get another 1500 reds in a row after 1000 because you CAN get another 1500 losses after 1000 in a row, whether you reset your seed or not."
i don't get why you are saying it, when its not possible at all, each percentage has maxiumum even possible losing streak +/-... and for 1% its ~1500-1600 Huh and if you will get more then something is wrong with this dice game site probably fair i think.

Your luck will be NEAR 100% over an INFINITE amount of bets. You CAN place 1 000 000 bets and have 0% luck. same with this, i dont get, why you are saying it, 0%  luck after 1 000 000 bets you cant get at all, even with minimum dice site win percentage what its = 0.01%(~x9900 payout) it will be around 100 000-150 000 bets maximum +/-

That is the part you don't understand. With randomness, everything is possible. You CAN get another 1500 losses after 1000 in a row, whether you reset your seed or not. It even becomes likely that you will if you place enough bets.

There is no maximum number of losses in a row you can get. You CAN get 1 000 000 losses in a row at 50%, or 90%. With random numbers, it is possible.


Whats the point in asking me if it's possible if you're just going to argue with my answer?
DCP
member
Activity: 110
Merit: 10

The error could originate from another part of your script. Mind posting your whole script?

also: if format:
will work. With "if resetonwin = true then" You're comparing a boolean with a boolean to create a boolean.

Thanks for your help, I tried a few variations but I keep getting an error message. I simply want it to reset the stats everytime the profit is higher then 0.000001.   Each time it makes a 4-in-a-row and is in profit, it crashes with the boolean error message.

Here's my script

Code:
--set for primedice, Go for 4 - fully auto
basebet = 0.0
chance=49.5
resetonwin = false
bethigh = false
enablesrc=true
betcount=1
r=math.random(2)

function dobet()


if betcount == 1 then
betcount=0
resetseed();
else
betcount=betcount+1
end


if win then

nextbet = basebet

if (resetonwin == true) then
nextbet = basebet
end

if (profit > 0.000001) then
resetstats()
end


 if (currentstreak == 2) then
              nextbet = 0.0000007
         end

 if ((profit < -0.0000005) and (profit > -0.0000020)) and (currentstreak == 2) then
              nextbet = 0.0000008
         end


 if ((profit < -0.0000020) and (profit > -0.0000041)) and (currentstreak == 2) then
              nextbet = 0.0000009
         end

if ((profit < -0.0000041)  and (profit > -0.0000071)) and (currentstreak == 2) then
              nextbet = 0.0000011
         end

if ((profit < -0.0000071)  and (profit > -0.0000110)) and (currentstreak == 2) then
              nextbet = 0.0000013
         end

if ((profit < -0.0000110)  and (profit > -0.0000155)) and (currentstreak == 2) then
              nextbet = 0.0000015
         end

if ((profit < -0.0000155)  and (profit > -0.0000200)) and (currentstreak == 2) then
              nextbet = 0.0000018
         end

if ((profit < -0.0000200)  and (profit > -0.0000260)) and (currentstreak == 2) then
              nextbet = 0.0000020
         end

if ((profit < -0.0000260)  and (profit > -0.0000329)) and (currentstreak == 2) then
              nextbet = 0.0000022
         end


if ((profit < -0.0000329)  and (profit > -0.0000404)) and (currentstreak == 2) then
              nextbet = 0.0000025
         end

if ((profit < -0.0000404)  and (profit > -0.0000488)) and (currentstreak == 2) then
              nextbet = 0.0000028
         end

if ((profit < -0.0000488)  and (profit > -0.0000578)) and (currentstreak == 2) then
              nextbet = 0.0000032
         end

if ((profit < -0.0000578)  and (profit > -0.0000683)) and (currentstreak == 2) then
              nextbet = 0.0000037
         end

if ((profit < -0.0000683)  and (profit > -0.0000703)) and (currentstreak == 2) then
              nextbet = 0.0000043
         end

if ((profit < -0.0000703)  and (profit > -0.0000853)) and (currentstreak == 2) then
              nextbet = 0.0000050
         end

if ((profit < -0.0000853)  and (profit > -0.0001)) and (currentstreak == 2) then
              nextbet = 0.0000057
         end

if ((profit < -0.0001)  and (profit > -0.0001180)) and (currentstreak == 2) then
              nextbet = 0.0000060
         end


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

if (currentstreak == 3)  then
resetonwin=true
end


else

nextbet = basebet


r=math.random(2)

if r == 1 then
     bethigh=true
else
     bethigh=false
end



end
end

The error wasn't about the boolean, that part was just me making a suggestion on how you can optimize your code a bit.

Resetting your seed after every bet on nonce based sites is a bit of a dick move. You clutter the sites DB and it gives the site MORE control over your rolls, not less. It also makes it much more difficult for you to verify your rolls if you suspect the site is cheating. Only reset seeds when you suspect the site is cheating and you want to verify your rolls.

I ran your script through a simulation and it worked fine. I could not reproduce the error you posted initially.


Ok, thanks for explaining about the reset seed. I will definitely take it off.

I hear that it worked on the simulation but I've tried it a bunch of times on Primedice and Crypto-games and on each site I get the following error msg whenever I use this code in any part of the script.  I really need this to work so I can use my script automatically.

if (profit > 0.000001) then
resetstats()                                  -- I also tried: resetstats();
end


[string "chunk"]:15: attempt to call global 'resetstats' (a boolean value)


full member
Activity: 319
Merit: 100

yes i dont understand "the randomness or some of the fundamentals of statistics." thats why im asking and givin a questions...


now i understand all what you said, exept first thing:
if all is like you said, why then you write this? "If you are playing on 1% chance and you have 1 000 000 reds in a row, and you change seeds, you CAN have another 1 000 000 reds in a row on the new seed." Huh


i make new one question, maybe you dont understand because of my english.

so if we play on 1% chance - in worst case in life matematically we can had ~1500 bets in row losing streak, we betting, betting we get now streak we already on 1000 red bets in row, we now change seed, and if you said there seeds is nothing to do with random generators and ODDS, why you said that we now can get another 1500reds in row after that change seed and if we already on 1000reds?!

if dice site is propably fair, there is no matter if we change seed every lose bet or no, ODDS and RNG numerology dsnt changes, and we have same ODDS what we need to have, and luck will ned to be close to 100% right?!

sorry for my stupidness, and thank you very much for answering to my stpd questions... Smiley



I'm saying that because If you are playing on 1% chance and you have 1 000 000 reds in a row, and you change seeds, you CAN have another 1 000 000 reds in a row on the new seed.

I'm saying you can get another 1500 reds in a row after 1000 because you CAN get another 1500 losses after 1000 in a row, whether you reset your seed or not.

Your luck will be NEAR 100% over an INFINITE amount of bets. You CAN place 1 000 000 bets and have 0% luck.



The provably fair RNG and the seeds have nothing to do with your luck or your odds. They are there so that you can see if the site is cheating you. Changing seeds for better luck is about as effective as holding your thumbs while clicking roll.


okey thanks!

but "I'm saying you can get another 1500 reds in a row after 1000 because you CAN get another 1500 losses after 1000 in a row, whether you reset your seed or not."
i don't get why you are saying it, when its not possible at all, each percentage has maxiumum even possible losing streak +/-... and for 1% its ~1500-1600 Huh and if you will get more then something is wrong with this dice game site probably fair i think.

Your luck will be NEAR 100% over an INFINITE amount of bets. You CAN place 1 000 000 bets and have 0% luck. same with this, i dont get, why you are saying it, 0%  luck after 1 000 000 bets you cant get at all, even with minimum dice site win percentage what its = 0.01%(~x9900 payout) it will be around 100 000-150 000 bets maximum +/-
legendary
Activity: 1717
Merit: 1125

The error could originate from another part of your script. Mind posting your whole script?

also: if format:
will work. With "if resetonwin = true then" You're comparing a boolean with a boolean to create a boolean.

Thanks for your help, I tried a few variations but I keep getting an error message. I simply want it to reset the stats everytime the profit is higher then 0.000001.   Each time it makes a 4-in-a-row and is in profit, it crashes with the boolean error message.

Here's my script

Code:
--set for primedice, Go for 4 - fully auto
basebet = 0.0
chance=49.5
resetonwin = false
bethigh = false
enablesrc=true
betcount=1
r=math.random(2)

function dobet()


if betcount == 1 then
betcount=0
resetseed();
else
betcount=betcount+1
end


if win then

nextbet = basebet

if (resetonwin == true) then
nextbet = basebet
end

if (profit > 0.000001) then
resetstats()
end


 if (currentstreak == 2) then
              nextbet = 0.0000007
         end

 if ((profit < -0.0000005) and (profit > -0.0000020)) and (currentstreak == 2) then
              nextbet = 0.0000008
         end


 if ((profit < -0.0000020) and (profit > -0.0000041)) and (currentstreak == 2) then
              nextbet = 0.0000009
         end

if ((profit < -0.0000041)  and (profit > -0.0000071)) and (currentstreak == 2) then
              nextbet = 0.0000011
         end

if ((profit < -0.0000071)  and (profit > -0.0000110)) and (currentstreak == 2) then
              nextbet = 0.0000013
         end

if ((profit < -0.0000110)  and (profit > -0.0000155)) and (currentstreak == 2) then
              nextbet = 0.0000015
         end

if ((profit < -0.0000155)  and (profit > -0.0000200)) and (currentstreak == 2) then
              nextbet = 0.0000018
         end

if ((profit < -0.0000200)  and (profit > -0.0000260)) and (currentstreak == 2) then
              nextbet = 0.0000020
         end

if ((profit < -0.0000260)  and (profit > -0.0000329)) and (currentstreak == 2) then
              nextbet = 0.0000022
         end


if ((profit < -0.0000329)  and (profit > -0.0000404)) and (currentstreak == 2) then
              nextbet = 0.0000025
         end

if ((profit < -0.0000404)  and (profit > -0.0000488)) and (currentstreak == 2) then
              nextbet = 0.0000028
         end

if ((profit < -0.0000488)  and (profit > -0.0000578)) and (currentstreak == 2) then
              nextbet = 0.0000032
         end

if ((profit < -0.0000578)  and (profit > -0.0000683)) and (currentstreak == 2) then
              nextbet = 0.0000037
         end

if ((profit < -0.0000683)  and (profit > -0.0000703)) and (currentstreak == 2) then
              nextbet = 0.0000043
         end

if ((profit < -0.0000703)  and (profit > -0.0000853)) and (currentstreak == 2) then
              nextbet = 0.0000050
         end

if ((profit < -0.0000853)  and (profit > -0.0001)) and (currentstreak == 2) then
              nextbet = 0.0000057
         end

if ((profit < -0.0001)  and (profit > -0.0001180)) and (currentstreak == 2) then
              nextbet = 0.0000060
         end


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

if (currentstreak == 3)  then
resetonwin=true
end


else

nextbet = basebet


r=math.random(2)

if r == 1 then
     bethigh=true
else
     bethigh=false
end



end
end

The error wasn't about the boolean, that part was just me making a suggestion on how you can optimize your code a bit.

Resetting your seed after every bet on nonce based sites is a bit of a dick move. You clutter the sites DB and it gives the site MORE control over your rolls, not less. It also makes it much more difficult for you to verify your rolls if you suspect the site is cheating. Only reset seeds when you suspect the site is cheating and you want to verify your rolls.

I ran your script through a simulation and it worked fine. I could not reproduce the error you posted initially.
legendary
Activity: 1717
Merit: 1125

yes i dont understand "the randomness or some of the fundamentals of statistics." thats why im asking and givin a questions...


now i understand all what you said, exept first thing:
if all is like you said, why then you write this? "If you are playing on 1% chance and you have 1 000 000 reds in a row, and you change seeds, you CAN have another 1 000 000 reds in a row on the new seed." Huh


i make new one question, maybe you dont understand because of my english.

so if we play on 1% chance - in worst case in life matematically we can had ~1500 bets in row losing streak, we betting, betting we get now streak we already on 1000 red bets in row, we now change seed, and if you said there seeds is nothing to do with random generators and ODDS, why you said that we now can get another 1500reds in row after that change seed and if we already on 1000reds?!

if dice site is propably fair, there is no matter if we change seed every lose bet or no, ODDS and RNG numerology dsnt changes, and we have same ODDS what we need to have, and luck will ned to be close to 100% right?!

sorry for my stupidness, and thank you very much for answering to my stpd questions... Smiley



I'm saying that because If you are playing on 1% chance and you have 1 000 000 reds in a row, and you change seeds, you CAN have another 1 000 000 reds in a row on the new seed.

I'm saying you can get another 1500 reds in a row after 1000 because you CAN get another 1500 losses after 1000 in a row, whether you reset your seed or not.

Your luck will be NEAR 100% over an INFINITE amount of bets. You CAN place 1 000 000 bets and have 0% luck.



The provably fair RNG and the seeds have nothing to do with your luck or your odds. They are there so that you can see if the site is cheating you. Changing seeds for better luck is about as effective as holding your thumbs while clicking roll.
DCP
member
Activity: 110
Merit: 10

The error could originate from another part of your script. Mind posting your whole script?

also: if format:
will work. With "if resetonwin = true then" You're comparing a boolean with a boolean to create a boolean.

Thanks for your help, I tried a few variations but I keep getting an error message. I simply want it to reset the stats everytime the profit is higher then 0.000001.   Each time it makes a 4-in-a-row and is in profit, it crashes with the boolean error message.

Here's my script

Code:
--set for primedice, Go for 4 - fully auto
basebet = 0.0
chance=49.5
resetonwin = false
bethigh = false
enablesrc=true
betcount=1
r=math.random(2)

function dobet()


if betcount == 1 then
betcount=0
resetseed();
else
betcount=betcount+1
end


if win then

nextbet = basebet

if (resetonwin == true) then
nextbet = basebet
end

if (profit > 0.000001) then
resetstats()
end


 if (currentstreak == 2) then
              nextbet = 0.0000007
         end

 if ((profit < -0.0000005) and (profit > -0.0000020)) and (currentstreak == 2) then
              nextbet = 0.0000008
         end


 if ((profit < -0.0000020) and (profit > -0.0000041)) and (currentstreak == 2) then
              nextbet = 0.0000009
         end

if ((profit < -0.0000041)  and (profit > -0.0000071)) and (currentstreak == 2) then
              nextbet = 0.0000011
         end

if ((profit < -0.0000071)  and (profit > -0.0000110)) and (currentstreak == 2) then
              nextbet = 0.0000013
         end

if ((profit < -0.0000110)  and (profit > -0.0000155)) and (currentstreak == 2) then
              nextbet = 0.0000015
         end

if ((profit < -0.0000155)  and (profit > -0.0000200)) and (currentstreak == 2) then
              nextbet = 0.0000018
         end

if ((profit < -0.0000200)  and (profit > -0.0000260)) and (currentstreak == 2) then
              nextbet = 0.0000020
         end

if ((profit < -0.0000260)  and (profit > -0.0000329)) and (currentstreak == 2) then
              nextbet = 0.0000022
         end


if ((profit < -0.0000329)  and (profit > -0.0000404)) and (currentstreak == 2) then
              nextbet = 0.0000025
         end

if ((profit < -0.0000404)  and (profit > -0.0000488)) and (currentstreak == 2) then
              nextbet = 0.0000028
         end

if ((profit < -0.0000488)  and (profit > -0.0000578)) and (currentstreak == 2) then
              nextbet = 0.0000032
         end

if ((profit < -0.0000578)  and (profit > -0.0000683)) and (currentstreak == 2) then
              nextbet = 0.0000037
         end

if ((profit < -0.0000683)  and (profit > -0.0000703)) and (currentstreak == 2) then
              nextbet = 0.0000043
         end

if ((profit < -0.0000703)  and (profit > -0.0000853)) and (currentstreak == 2) then
              nextbet = 0.0000050
         end

if ((profit < -0.0000853)  and (profit > -0.0001)) and (currentstreak == 2) then
              nextbet = 0.0000057
         end

if ((profit < -0.0001)  and (profit > -0.0001180)) and (currentstreak == 2) then
              nextbet = 0.0000060
         end


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

if (currentstreak == 3)  then
resetonwin=true
end


else

nextbet = basebet


r=math.random(2)

if r == 1 then
     bethigh=true
else
     bethigh=false
end



end
end
full member
Activity: 319
Merit: 100
this "Yes you can" is about that?(maybe you mistaken and mean "can't" ?) if im on streak like on 1% chance 1000 reds from 1500reds, and im reseting seed, and now after reset i can get another new 1500???

if ODDS and seed NG are two different thing, then i can't in theory, and is not possible.

thanks for answer!

If you are playing on 1% chance and you have 1 000 000 reds in a row, and you change seeds, you CAN have another 1 000 000 reds in a row on the new seed. You don't seem to understand the randomness or some of the fundamentals of statistics.


Think of the seeds and the RNG as a physical dice. You're trying to throw exactly 6. You can throw less than 6 100 times in a row using just one dice. Would switching to another dice ensure that you throw a 6 within the next 100 rolls? No, it will have no effect. Using another dice won't ensure you get a 6 within the next 100 rolls. It has no effect on your odds to roll a 6.


When you are playing at 1% chance to win, you ALWAYS have 1% chance to win your bet. If it's your first bet, you have a 1% chance to win. If you have won 100 bets in row on the same seed, you have a 1% chance to win the next bet. If you have lost a billion bets in a row, used 500 000 seeds, switched high/low, become a devote follower of the Flying Spaghetti Monster and prayed to it non stop for a year to make you win, you have a 1% chance of winning the next bet.



The provably fair RNG and the seeds have nothing to do with your luck or your odds. They are there so that you can see if the site is cheating you. Changing seeds for better luck is about as effective as holding your thumbs while clicking roll.

yes i dont understand "the randomness or some of the fundamentals of statistics." thats why im asking and givin a questions...


now i understand all what you said, exept first thing:
if all is like you said, why then you write this? "If you are playing on 1% chance and you have 1 000 000 reds in a row, and you change seeds, you CAN have another 1 000 000 reds in a row on the new seed." Huh


i make new one question, maybe you dont understand because of my english.

so if we play on 1% chance - in worst case in life matematically we can had ~1500 bets in row losing streak, we betting, betting we get now streak we already on 1000 red bets in row, we now change seed, and if you said there seeds is nothing to do with random generators and ODDS, why you said that we now can get another 1500reds in row after that change seed and if we already on 1000reds?!

if dice site is propably fair, there is no matter if we change seed every lose bet or no, ODDS and RNG numerology dsnt changes, and we have same ODDS what we need to have, and luck will ned to be close to 100% right?!

sorry for my stupidness, and thank you very much for answering to my stpd questions... Smiley

legendary
Activity: 1717
Merit: 1125
this "Yes you can" is about that?(maybe you mistaken and mean "can't" ?) if im on streak like on 1% chance 1000 reds from 1500reds, and im reseting seed, and now after reset i can get another new 1500???

if ODDS and seed NG are two different thing, then i can't in theory, and is not possible.

thanks for answer!

If you are playing on 1% chance and you have 1 000 000 reds in a row, and you change seeds, you CAN have another 1 000 000 reds in a row on the new seed. You don't seem to understand the randomness or some of the fundamentals of statistics.


Think of the seeds and the RNG as a physical dice. You're trying to throw exactly 6. You can throw less than 6 100 times in a row using just one dice. Would switching to another dice ensure that you throw a 6 within the next 100 rolls? No, it will have no effect. Using another dice won't ensure you get a 6 within the next 100 rolls. It has no effect on your odds to roll a 6.


When you are playing at 1% chance to win, you ALWAYS have 1% chance to win your bet. If it's your first bet, you have a 1% chance to win. If you have won 100 bets in row on the same seed, you have a 1% chance to win the next bet. If you have lost a billion bets in a row, used 500 000 seeds, switched high/low, become a devote follower of the Flying Spaghetti Monster and prayed to it non stop for a year to make you win, you have a 1% chance of winning the next bet.



The provably fair RNG and the seeds have nothing to do with your luck or your odds. They are there so that you can see if the site is cheating you. Changing seeds for better luck is about as effective as holding your thumbs while clicking roll.
full member
Activity: 319
Merit: 100
ohh, but then i have question!

(1)dice game random number generator, and seeds are two different things?!
like sample, im play on 1% win there is possibility to get 1500 red streak, if im reset a seed in while im already on redstreak in 1000th red roll,(2)i cant get another 1500reds, right?! because there is random number generator!? so seeds and dice game RNG are two different things?!

everyone can make me wiser in this tematic?

(1) They are different things but they are related. The RNG uses the seeds to NG.

(2) Yes you can. Seeds does not affect your ODDS. The ODDS and RNG are not related. The ODDS and SEEDS are not related. The only reason you should even look at seeds is if you think the site is cheating you and you want to verify your rolls.


this "Yes you can" is about that?(maybe you mistaken and mean "can't" ?) if im on streak like on 1% chance 1000 reds from 1500reds, and im reseting seed, and now after reset i can get another new 1500???

if ODDS and seed NG are two different thing, then i can't in theory, and is not possible.

thanks for answer!
legendary
Activity: 1717
Merit: 1125
How do I reset the stats, each time I try I get this error

[string "chunk"]:14: attempt to call global 'resetstats' (a boolean value)


example:

(earlier in code:  resetonwin = false)


if resetonwin = true then
resetstats();
end

I've tried many ways to reset the stats but I always get that error msg..


The error could originate from another part of your script. Mind posting your whole script?

also: if format:

Code:
if (boolean value) then

else

end

If resetonwin is a bool:
Code:
if resetonwin then

else

end
will work. With "if resetonwin = true then" You're comparing a boolean with a boolean to create a boolean.
DCP
member
Activity: 110
Merit: 10
How do I reset the stats, each time I try I get this error

[string "chunk"]:14: attempt to call global 'resetstats' (a boolean value)


example:

(earlier in code:  resetonwin = false)


if resetonwin = true then
resetstats();
end

I've tried many ways to reset the stats but I always get that error msg..
legendary
Activity: 1717
Merit: 1125
ohh, but then i have question!

(1)dice game random number generator, and seeds are two different things?!
like sample, im play on 1% win there is possibility to get 1500 red streak, if im reset a seed in while im already on redstreak in 1000th red roll,(2)i cant get another 1500reds, right?! because there is random number generator!? so seeds and dice game RNG are two different things?!

everyone can make me wiser in this tematic?

(1) They are different things but they are related. The RNG uses the seeds to NG.

(2) Yes you can. Seeds does not affect your ODDS. The ODDS and RNG are not related. The ODDS and SEEDS are not related. The only reason you should even look at seeds is if you think the site is cheating you and you want to verify your rolls.
full member
Activity: 319
Merit: 100
there is some possibility to make, that bot keep seed and dsnt change it every roll on different sites? like bit-exo?! in his web page are option, to keep seed or change everybet, if we bet from web page seed dsnt changes, but if you do from dicebot, every bet we have new seed, what we can do?!

Short answer: no.

Longer answer:
Keeping the same client seed on sites that change the server seed on every bet puts the player at risk.

If you are betting predictably, for example using a preset list, fibonacci or martingale, and using the same client seed for every bet, the site can pick server seeds that will make you lose. By changing your client seed every bet prevents the site from being able to cheat in this way. The bot picks a random client seed for every bet for the players protection and to ensure the provably fair RNG remains fair.
ohh, but then i have question!

dice game random number generator, and seeds are two different things?!
like sample, im play on 1% win there is possibility to get 1500 red streak, if im reset a seed in while im already on redstreak in 1000th red roll, i cant get another 1500reds, right?! because there is random number generator!? so seeds and dice game RNG are two different things?!

everyone can make me wiser in this tematic?
legendary
Activity: 1717
Merit: 1125
there is some possibility to make, that bot keep seed and dsnt change it every roll on different sites? like bit-exo?! in his web page are option, to keep seed or change everybet, if we bet from web page seed dsnt changes, but if you do from dicebot, every bet we have new seed, what we can do?!

Short answer: no.

Longer answer:
Keeping the same client seed on sites that change the server seed on every bet puts the player at risk.

If you are betting predictably, for example using a preset list, fibonacci or martingale, and using the same client seed for every bet, the site can pick server seeds that will make you lose. By changing your client seed every bet prevents the site from being able to cheat in this way. The bot picks a random client seed for every bet for the players protection and to ensure the provably fair RNG remains fair.
full member
Activity: 319
Merit: 100
there is some possibility to make, that bot keep seed and dsnt change it every roll on different sites? like bit-exo?! in his web page are option, to keep seed or change everybet, if we bet from web page seed dsnt changes, but if you do from dicebot, every bet we have new seed, what we can do?!
full member
Activity: 148
Merit: 100
anyone help me?

i need a script can change strategy when profit is ex: 0.00300000

like this:


strategy1  >  if total profit is 0.00300000  go to strategy2


strategy2 >  if total profit is 0.00300000  go to strategy 3


strategy3 > if total profit is 0.00300000  go to strategy 1

anyone help me?
tnx for all




strategy = "stragety1"
total_profit = 0

function dobet()

total_profit += currentprofit

if total_profit >= 0.0003 then
   total_profit = 0
   if strategy == "stratgey1" then
      strategy = "strategy2"
   else
      if strategy == "strategy2" then
         strategy = "strategy3"
      else
         strategy = "strategy1"
      end
   end
end
if strategy == "strategy1" then
   do strategy 1 stuff
else
   if strategy == "stragety2" then
      do 2 stuff
   else
       do 3 stuff
   end
end

end

  Tips are always welcome Smiley
    
      




i try this
tnx for all!
legendary
Activity: 1007
Merit: 1000
anyone help me?

i need a script can change strategy when profit is ex: 0.00300000

like this:


strategy1  >  if total profit is 0.00300000  go to strategy2


strategy2 >  if total profit is 0.00300000  go to strategy 3


strategy3 > if total profit is 0.00300000  go to strategy 1

anyone help me?
tnx for all




strategy = "stragety1"
total_profit = 0

function dobet()

total_profit += currentprofit

if total_profit >= 0.0003 then
   total_profit = 0
   if strategy == "stratgey1" then
      strategy = "strategy2"
   else
      if strategy == "strategy2" then
         strategy = "strategy3"
      else
         strategy = "strategy1"
      end
   end
end
if strategy == "strategy1" then
   do strategy 1 stuff
else
   if strategy == "stragety2" then
      do 2 stuff
   else
       do 3 stuff
   end
end

end

  Tips are always welcome Smiley
    
      

full member
Activity: 148
Merit: 100
anyone help me?

i need a script can change strategy when profit is ex: 0.00300000

like this:


strategy1  >  if total profit is 0.00300000  go to strategy2


strategy2 >  if total profit is 0.00300000  go to strategy 3


strategy3 > if total profit is 0.00300000  go to strategy 1

anyone help me?
tnx for all


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

   Your example is missing pieces. 
What happens when a win streak is 6 or more?
What happens when a loss streak is greater then 25? 
Also which bet do you want for the 12th loss?

Just for your example I would define 4 variables SBA, SBB, SBC, SBD for starting bet a - d and assign each it's value. 

then
if (currentstreak > 0 and currentstreak < 6) then
   nextbet = SBA
else
   if currentstreak < -5 then
     if currentstreak < -12 then
        if currentstreak < -18 then
           if currentstreak < -25 then
              unknown more then 25 losses
           else
              nextbet = SBD 
           end
        else
           nextbet = SBC
        end
     else
         nextbet = SBB
     end
   else
      unknown  current streak is between -1 and -5 or  6  or greater
   end
end
DCP
member
Activity: 110
Merit: 10
Is anyone able to show me how to group and work with "bet series" as in my previous post?
Pages:
Jump to: