Bitcoin Forum
November 04, 2024, 05:34:56 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 125384 times)
whipz
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
September 14, 2016, 10:43:37 PM
 #281

Hey guys, First time poster for this bot but been using it for the last week love it and try and donate to it every time i close;

I was just wondering if someone could help me out with a bit of code; I have tried a few but I cant figure it out;

This is what im wanting:

normalbet = 0.00000001
starthighbet = 0.001 or x
multiplierhighbet = 4 or x
multiplierhighbet2 = 8 or x
etc

I want the bot to bet normal bet till it comes accross 2 wins or 2 losses in a row then waits for a win then goes for a highbet which can be either entered in a table like that or a percentage of your balance
then if it losses that bet, it goes back to normal bet until it comes across the pattern again then does the next row of highbets.

so a table of above

0.00000001 - loss
0.00000001 - loss
0.00000001 - win
0.0001 - win
0.00000001  - loss
0.00000001 - win
0.00000001  - loss
0.00000001 - win
0.00000001  - loss
0.00000001 - win
0.00000001  - loss
0.00000001  - loss
0.00000001  - win
0.0001 - loss
0.00000001 - loss
0.00000001 -loss
0.00000001 - win
0.0004 - win
0.00000001 - win
0.00000001 -loss
etc

also it can switch from high to low depending on what you thinks best for that;

Message me if you have more questions but ill happily donate something for their work


Couple of questions.  What chance are you betting at?  And would you expect the next bet in your (above) sequence to be .0008 or .0032?  IE do you really want to multiple the previous high bet by 8 or by 2?  And then would the next multiplier be 12 or 16 or 32?

anywhere from your 39.6 to 49 i think would kinda work; I use your 2 wins alot, I just hate how the basebet is what it bets normally; Thats all I want changed; Because when I use your script and I change my base bet to 0.0001 obviously every bet starts from there; However I want my normal bets to be 0.00000001 till it finds a chance at 2 wins in a row;

Multipler doesnt really matter as much; I can just use your 2 wins and modify it to suit needs; although I would like it if you could just have 2 multipliers such as bigchance win (odds of winning) do a highbet and standard multipler which is like 2 or 2.5 or x, so bascially when you have lost a few standard bets it does a highbet if it thinks it can win like your 2 wins

Does that make more sense ?
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
September 16, 2016, 02:14:42 AM
 #282

Is there a builtin "Stop on Win" function within the bot? Something that functions like the button in Advanced mode? I usually run some sort of martingale system, and I like to do short 100 roll runs. I don't like ending on a loss, so once I've hit the stop limit (profit, number of rolls or whatever), I like to continue until I get a win so I end up positive.

I've already coded a solution, but was hoping there might be something a little cleaner than my hack Wink The basics of my solution involve a global boolean variable. If whatever end condition we have setup is reached, for instance 100 rolls have been completed, we set this boolean to true, and on the next win, stop().
Code:
stopOnWin = false

function dobet()

    if (endCondition is reached) then
        print("stopping on next win")
        stopOnWin = true
    end  

    if win then
        
        do win stuff here
        
        if stopOnWin then
            print stats for this run          
            stop()
        else
            adjust bet and continue
        end
    else

        do loss stuff here
        adjust bet and continue

    end

end

One side effect of this approach, is that at any time during a run, I can just enter "stopOnWin = true" and the script will stop on next win, like hitting the button... but I'm curious if this functionality is builtin in and exposed in programmer mode, given that the button is there on the GUI.

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
mbetdice
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
September 16, 2016, 05:37:02 AM
Last edit: September 16, 2016, 05:47:35 AM by mbetdice
 #283

Hello
i try this script but its working not correct
could you please help me fix its?
Thanks

Code:

chance=49.5
multi=2
minbet=0.0000001
nextbet=0.0
minbet1=0
wincount = 0
losecount = 0
profitwincount = 0
bethigh = false

function dobet()
if (win) then
wincount = wincount + 1

if (wincount == 2) then
bethigh = true
nextbet=minbet*multi
if (win) then
wincount = 0
bethigh = false
losecount==0
nextbet=0.0
else
if (losecount <10) then
losecount += 1
bethigh = true
else
stop()
end
end
end
else
if (wincount <2) then
wincount = 0
end
end

end


i will:

chance=49.5
multi=2

step 1 : bet low with 0
step 2 : if 2 win / rows -> bet hight with base bet * multi
    if 10 lose / rows -> stop
    if win -> back to step 1
stop after x profit

Thanks
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
September 16, 2016, 06:16:21 AM
 #284

Is there a builtin "Stop on Win" function within the bot? Something that functions like the button in Advanced mode? I usually run some sort of martingale system, and I like to do short 100 roll runs. I don't like ending on a loss, so once I've hit the stop limit (profit, number of rolls or whatever), I like to continue until I get a win so I end up positive.

I've already coded a solution, but was hoping there might be something a little cleaner than my hack Wink The basics of my solution involve a global boolean variable. If whatever end condition we have setup is reached, for instance 100 rolls have been completed, we set this boolean to true, and on the next win, stop().
Code:
stopOnWin = false

function dobet()

    if (endCondition is reached) then
        print("stopping on next win")
        stopOnWin = true
    end  

    if win then
        
        do win stuff here
        
        if stopOnWin then
            print stats for this run          
            stop()
        else
            adjust bet and continue
        end
    else

        do loss stuff here
        adjust bet and continue

    end

end

One side effect of this approach, is that at any time during a run, I can just enter "stopOnWin = true" and the script will stop on next win, like hitting the button... but I'm curious if this functionality is builtin in and exposed in programmer mode, given that the button is there on the GUI.

That's exactly how the stop on win button works and that's exactly how a built in stop on win function would work if I ever implemented it. It's so simple that I likely won't implement it though. You can even set stopOnWin =true from the console to force it to stop on the next win.

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
September 17, 2016, 05:24:29 AM
 #285

That's exactly how the stop on win button works and that's exactly how a built in stop on win function would work if I ever implemented it. It's so simple that I likely won't implement it though. You can even set stopOnWin =true from the console to force it to stop on the next win.
Which is pretty much what I do... good to know that my "hack" is more or less how the builtin stuff works... maybe my coding skills aren't as rusty as I thought they might be Wink

Hopefully this code sample my be of some assistance to others... Although a lot of players I've come across tend to just let the bot run until they hit some profit level or bust out Tongue

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
shintosai
Hero Member
*****
Offline Offline

Activity: 756
Merit: 500



View Profile
September 17, 2016, 03:27:37 PM
 #286

That's exactly how the stop on win button works and that's exactly how a built in stop on win function would work if I ever implemented it. It's so simple that I likely won't implement it though. You can even set stopOnWin =true from the console to force it to stop on the next win.
Which is pretty much what I do... good to know that my "hack" is more or less how the builtin stuff works... maybe my coding skills aren't as rusty as I thought they might be Wink

Hopefully this code sample my be of some assistance to others... Although a lot of players I've come across tend to just let the bot run until they hit some profit level or bust out Tongue
i hope i can learn this mate as all we are here wanted to earn even a little just by using a bot like this if you dont mind if you can pm me how this will works for me and what specific game and timing should i use it i will try it and make a good profits hope you can give me some insight with this bot that you are working with, good luck mate.

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
September 17, 2016, 09:30:27 PM
 #287

i hope i can learn this mate as all we are here wanted to earn even a little just by using a bot like this if you dont mind if you can pm me how this will works for me and what specific game and timing should i use it i will try it and make a good profits hope you can give me some insight with this bot that you are working with, good luck mate.
I doubt you will make much profit at all... I only did it as an exercise/investigation into how long it would take for variance to catch up with my betting strategy... Attempting to gamble for profit is, in my opinion, a fool's errand.

I treat gambling as a source of entertainment, so I like to try new things... and trying out the dicebot and the programming mode was a fun little project.

Basically, all I did was add a little feature to a basic "martingale" script that allows me to stop the betting on the next win... so I can set it going to bet for 100 bets (or until a certain balance is achieved or whatever) and then it will stop on next win, rather than ending on a loss at exactly 100 bets... sometimes it goes to 103 or 104 bets depending on strategy and odds being played.

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


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

Activity: 1717
Merit: 1125



View Profile WWW
September 26, 2016, 08:18:04 PM
 #288

What programing language did you use to create this program?

I used c#. You can find the source code here if you want to look at it.

whipz
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
September 30, 2016, 06:23:37 AM
 #289

Hey guys, This is an edit of one of the scripts I have seen on here;

Would love some feedback on how to make it work better; I have ideas I want to add to but have know Idea or now to do it;
if you would like to help dont hesitate to offer xD

anyways here it is

Code:
chance = 66.66
multiplier=1.5
multiplier2=0.92
base=0.0000150
nextbet = base

target =.005
investtarget = .1
tmpprofit = 0
investprofit = 0
wincount = 10
startbalance = balance

function dobet()

tmpprofit += currentprofit
investprofit+= currentprofit

if win then
if(tmpprofit > target) then
print("TMPPROFIT is greater than our target Resessting to Base")
tmpprofit = 0
nextbet = base
sleep(1000);
if(investprofit > investtarget) then
investprofit = 0
invest(balance - startbalance)
end
else
print("Since we havent reached our target times last bet by multiplier2")
nextbet = previousbet*multiplier2
if(nextbet < base) then
sleep(1000)
print("nextbet is less than base bet so its now base bet")
nextbet = base
end
end
else
sleep(1000)
print("We have lost so we are timzing by multiplier1")
nextbet = previousbet*multiplier
if(nextbet < base) then
print("Lower than base bet so now basebet")
nextbet = base
end
end
end
whipz
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
September 30, 2016, 09:06:58 PM
 #290

Would someone be able to help me with a script; I have an idea but whenever i code it, it seems to go miles of path sometimes,

it would go along as such
0.00057564 etc
0.0006781 etc
then it would lose  and be fine
0.00075851 etc < -- loss
0.00164845 etc win
0.0018421 etc win
0.0020323 < -- loss
44.412312 is then bet
yet I have no multiplier to get it that high that quick
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
September 30, 2016, 09:34:21 PM
 #291

Would someone be able to help me with a script; I have an idea but whenever i code it, it seems to go miles of path sometimes,

it would go along as such
0.00057564 etc
0.0006781 etc
then it would lose  and be fine
0.00075851 etc < -- loss
0.00164845 etc win
0.0018421 etc win
0.0020323 < -- loss
44.412312 is then bet
yet I have no multiplier to get it that high that quick

Post the script.  With a little explanation of what your trying to do. 

whipz
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
September 30, 2016, 10:47:32 PM
Last edit: October 01, 2016, 12:14:22 AM by whipz
 #292

Code:
chance = 90
basebet = balance*.0001
startbalance = balance
nextbet = 0
tartget = .01
bethigh = true
low = 0
high = 0
losecount = 0
stopnow = false
totallose = 0
wincount = 0
nextwinbet = basebet*1.5
boombet = balance*.1
bet1lose = previousbet*2
bet2lose = previousbet*5
bet3lose = previousbet*20
profitamount = 0
sessionprofit = 0
profittarget = 0.001
profitlimit = .005
won = 0
lost = 0

function dobet()

if (lastBet.roll < chance) then
low += 1
end
if (lastBet.roll > (100 - chance)) then
high += 100
end

profitamount=profitamount+currentprofit

if (win) then
if (high > low) then
bethigh = true
else
bethigh = false
end
won = won+1
lost = 0
if (profitamount >= profittarget) then
profitamount = 0
nextbet = basebet
end
if (sessionprofit >= profitlimit) then
print("Profit Limit reached. Stopping now...")z
print("Session Profit: " .. sessionprofit)
sessionprofit = 0
nextbet = basebet
end
if (won >= 1) then
nextbet = previousbet*2
won += 1
lost += 0
end
if (won == 2) then
nextbet = boombet
won += 1
lost += 0
end
if (won == 3) then
nextbet = boombet*1.5
won += 1
lost += 0
end
if (won <= 5) then
nextbet = boombet/3
won += 1
lost += 0
end
else
lost = lost+1
won = 0
if (lost == 1) then
nextbet = bet1lose
end
if (lost == 2) then
nextbet = bet2lose
end
if (lost == 3) then
nextbet = bet3lose
end
if (lost >= 4) then
chance = 49.5
nextbet = previousbet*2
end
if (lost >= 6) then
nextbet = basebet
end
end
end

at first i was just wanting to just mess around and see what works;

But now I want to turn it into 95 or 90 chance;
on first win do a massive bet almost full balance; then slowly decrease to a limit you set;
then i would like it to save some of that money aside for the next win for an even bigger second bet etc
on loss, i want it to do big multipler to almost regain all of whats lost, but the second bet should cover the last lost as the second win should be a big bet anyways, but if thats a loss I want a smaller multiplier till a win and on a win do a bigger than before to regain previous loss,

all based on basebet balance;

is something like that possible ?

Code:
chance=77.7
multiplier=1.5
multiplier2=1.09
base=0.0000250
nextbet = base 
bethigh = false
target = .0005
investtarget = .01
tmpprofit = 0
investprofit = 0
wincount = 10
stopnow = false

function dobet()

tmpprofit += currentprofit
investprofit += currentprofit

   if win then
   print("We Won")
      if (tmpprofit > target) then
         tmpprofit = 0
         nextbet = base
         if(stopnow) then stop() end
         if(investprofit  > investtarget ) then
             investprofit = 0
             invest(investtarget)
         end     
      else
  print("Since we Won we are now times our last bet by multiplier 2")
         nextbet=previousbet*multiplier2
         if(nextbet < base) then
nextbet = base end
      end
   else
   print("we lost so we are timzing by multiplier 1")
      nextbet=previousbet*multiplier
      if(nextbet < base) then
  print("if next bet is less than base bet next bet = base bet")nextbet = base end
   end
end

Something like this but 90 percent, but with a chance to win quicker this seems to take 2 - 3 wins to gain id like 1 - 2 if possible and since its based on balance, it shouldnt really need to worry about to many losses also being 90% in a row anyways


This would be the ultimate tho i think;

Code:
win 1
win 1.5
win 2.25
win 1.8
win 1.44
win 1.152
win 1 etc
for all wins

on a lose tho something like this

win 1
win 1.5
loss 2.25 < remebers this
wins 1
wins 1.5 + work out how to make loss even on second bet so it would be on 90% the pay out is 1.1  so we lost 2.25 we would need 22.5+ 1 to make it all back second bet i think
or is that way to risky even in the lower numbers like 0.0005 etc ?


and if it was to lose like this
win 1
lose 1.5
win 1.5 + 15
win 1
lose 1.5 <-- remeber 1
lose 16.5  < -- remember 2
then go back to normal
lose 1
lose 1
win 1
win 16.5
win 1
win 1.5
lose 2.25
win 2.25 + 165 from remember 2


then if it was to go like this

win 1
lose 1.5
win 16.5
lose 1
win 16.5
lose 1
win 16.5
win 1
win 1.5

doesnt have to be those calculations but I have a feeling it could work ?what do you guys think ?

whipz
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
October 01, 2016, 10:34:25 AM
 #293

how and where would i put a safety to stop at a max bet, whilst remembering what it was up to for the next win streak ?
whipz
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
October 02, 2016, 06:22:55 AM
Last edit: October 02, 2016, 06:42:27 AM by whipz
 #294

how come when i run this script

Code:
chance=90
multiplier=1.92
multiplier2=1.25
base=0.00125
nextbet = base 
target = .0000125
investtarget = .1
tmpprofit = 0
investprofit = 0
wincount = 10
stopnow = false
startbalance = balance
tipamount = 0.001

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(balance - startbalance - tipamount)
tip("1562881", tipamount)
         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


I want to make it after it reaches its tmp goal that it goes to base and then starts the multiply again; could someone help i cannot figure it out

as it wastes a hell of a lot of wins, so if it kept multiplying to tmpproffit amount  you would make more faster but it runs like 15 wins in a row at basebet

whipz
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
October 02, 2016, 10:52:10 PM
 #295

Would someone be able to help me with a script; I have an idea but whenever i code it, it seems to go miles of path sometimes,

it would go along as such
0.00057564 etc
0.0006781 etc
then it would lose  and be fine
0.00075851 etc < -- loss
0.00164845 etc win
0.0018421 etc win
0.0020323 < -- loss
44.412312 is then bet
yet I have no multiplier to get it that high that quick

Post the script.  With a little explanation of what your trying to do. 

@chilly2k you seem to be the one with the most script know how;

anychance you chould help me with this this one ?

Code:
chance=90
multiplier=.25
multiplier2=2
base=0.00125
nextbet = base 
target = .00000125
investtarget = 1
tmpprofit = 0
investprofit = 0
wincount = 10
stopnow = false
startbalance = balance
tipamount = 0.5
rollcount = 0

function dobet()

rollcount += 1
tmpprofit += currentprofit
investprofit += currentprofit

   if win then
   --We Won, Now to see if tmp profit is equal to target profit
        if (tmpprofit > target) then
         tmpprofit = 0
         nextbet = base
--Also checking if we have made a 1000+ rolls on the same seed; if we have and in positive, we resetseed
         if(rollcount >= 1000) then resetseed();
end
--Investing if invest profit is bigger than investtarget if it is we invest
         if(investprofit  > investtarget ) then
             investprofit = 0
             invest(balance - startbalance - tipamount)
-- this is a tip amount to my other account
tip("1562881", tipamount)
         end     
      else
  --this is for when we win and we havent reached the target profit
         nextbet=previousbet*multiplier2
      end
   else
      nextbet=previousbet*multiplier
      if(nextbet > base) then nextbet = base
  end
  if(nextbet > (balance/1.5)) then
nextbet = base
resetstats();
end
  end


end
[code]


When its already made it to its tmp profit and its still winning, I would like it to slowly climb via another multiplier thats alot smaller eg instead of 2 maybe 1.5 till its reached tmpprofit again and starts over, as i seem to waste around 10 - 15 wins
[/code]
Bitcoin_Delivery
Hero Member
*****
Offline Offline

Activity: 952
Merit: 500



View Profile
October 10, 2016, 10:11:11 AM
 #296

I'm really amazed with new features of SDB!! I've found my perfect setting and starting with 0,02 BTC i was able now to reach my frist BTC after around 15 days of slow-action Cheesy
Now looking to see if winnings flow on stable basis, then i will share my preset with you Wink
Thanks Seuntjie boss!  Grin
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
October 22, 2016, 01:18:41 PM
 #297

Hi there,

I am running a script for a while now and it seems like that somethings going crappy, and things happening that is not written in the script. Maybe it has something to do with the computer it is running on. Okay, it does not matter because with a little help i can prevent this error if the following question is possible, maybe it is also useful for others:

Is there a way to track like last 4 bets, and if they all have the High = true or high = false then stop the script.
What i'm looking for when the script is going to live by itself due errors, then this tracking function is going to stop the script when condition is met what is written in the function.

See screenshot for the high/low i mean.


Hope somebody can help me out how to do this.
Thanks!

   This is pretty easy.  Setup 2 counters bethighcount and betlowcount.  set both to 0 in the init section (Before the dobet function)  Then at the begining of your dobet function add,

Code:

if (bethigh) then         // if bethigh is true
   bethighcount += 1
   betlowcount = 0
else                         // bethigh is false
   betlowcount += 1
   bethighcount = 0
end

if (bethighcount == 4 or betlowcount == 4) then
   stop()
end


    That just keeps a count of how many high or low bets you've made in a row and stops on 4 in a row. 

AXCESS
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile WWW
October 22, 2016, 02:21:15 PM
 #298

Hi there,

I am running a script for a while now and it seems like that somethings going crappy, and things happening that is not written in the script. Maybe it has something to do with the computer it is running on. Okay, it does not matter because with a little help i can prevent this error if the following question is possible, maybe it is also useful for others:

Is there a way to track like last 4 bets, and if they all have the High = true or high = false then stop the script.
What i'm looking for when the script is going to live by itself due errors, then this tracking function is going to stop the script when condition is met what is written in the function.

See screenshot for the high/low i mean.
http://i64.tinypic.com/s3ekit.jpg

Hope somebody can help me out how to do this.
Thanks!

   This is pretty easy.  Setup 2 counters bethighcount and betlowcount.  set both to 0 in the init section (Before the dobet function)  Then at the begining of your dobet function add,

Code:

if (bethigh) then         // if bethigh is true
   bethighcount += 1
   betlowcount = 0
else                         // bethigh is false
   betlowcount += 1
   bethighcount = 0
end

if (bethighcount == 4 or betlowcount == 4) then
   stop()
end


    That just keeps a count of how many high or low bets you've made in a row and stops on 4 in a row.  


Wow haha that is easy, yes  Shocked. And this is exactly what i am looking for, but i did not get it by myself, my head was thinking to difficult Smiley
Thanks man.
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
October 26, 2016, 03:45:12 AM
 #299


hi everyone!  Cheesy
i m new and i try to learn something but without your is impossible for me

i want to do this but i dont understand how   IT S HORRIBLE  Grin

function dobet()

if win then
nextbet = previousbet * 2
AND
nextbet=base
end
else
nextbet = previousbet*multi
end
end


i want to do this

1°bet- for example(loose) so
2°bet= previous*multi (if i loose)
3°bet= previous*multi (if i loose) 
4°bet= previous*multi (if i WIN)
5°bet= previous *2 ( if i loose or win is not important for me
                    but i would that the next bet return to base
)
6- basebet (and if i loose next bet is * multi)
ecc..

please help me!! i m going crazy   Huh

i wrote this

if not win then
nextbet = previousbet * multi
else
nextbet = previousbet * 2
resetbuiltin()
nextbet=basebet
end
end

 but when i win it don't double the bet but restart to basebet why?? Undecided

   First you need to understand the LUA syntax.  Google LUA and there are a lot of reference sites. 

Your first example is easiest to understand.  First the syntax is...

if (xyz) then

    do a bunch of stuff    this is not real code.....

else
 
    it's not XYZ so do what you want to do in that case

end


you have

if win then                          <----   This line is good
nextbet = previousbet * 2     <-----  This is good too, your setting next bet
AND                                   <-----  if you really have this in your script  I have no idea what LUA will do. 
nextbet=base                      <-----  Another good statement
end                                    <------ This ends your if statement, you have no else coded before this. 
else                                    <------  Lua will choke on this because there are no open if statements to process. 
nextbet = previousbet*multi    <-----  This is OK, but LUA doesn't know when to do this. 
end                                     <------ This is the end of the dobet function...   
end                                     <-----   This is just extra stuff after the script. 

You wanted this
if win then                          <----   This line is good
nextbet = previousbet * 2     <-----  This is good too, your setting next bet
nextbet=base                      <-----  Another good statement
else                                    <------  Now the above if is still open (no end yet)  so this else goes to that if.
nextbet = previousbet*multi    <-----  This is OK, but LUA doesn't know when to do this. 
end                                     <------ This is the end of the if/then/else. 
end                                     < ----  This is the end of the dobet function. 

Before the dobet function line you need to define/initialize multi. 

Your second example is better except the first line "if not win then"  I know "if !win then" works.  I think if you looked up the syntax, "if not win then" means if the variable not is true and the variable win is true then do the following code.  Since you probably do not have a variable not defined Lua does some weird stuff and doesn't complain.  ! means the opposite, so !win means win == false. 

another gotcha.  == means compare the 2 values.  = means assign the value of the right variable to the left variable. 

I'm not really understanding your requirements, but if you want to run this sequence 5 times, then reset to base. Here is how to do it. 

betcount = 0
base =
chance =
bethigh = true

dobet function

betcount += 1

if betcount == 5 then
   nextbet = base   
   betcount  = 0
else
   if win then                   
      nextbet = previousbet * 2     
   else         
      nextbet = previousbet*multi   
   end                                   
end
end                             




ili
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
October 26, 2016, 04:51:35 PM
 #300

ty!!! Wink
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!