Pages:
Author

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

legendary
Activity: 1717
Merit: 1125
Just put in a counter to count your losses... reset it when you win (or hit 3 losses)... check it on a loss and if it equals 3 then multiply Wink

Code:
...
losscount = 0
...
function dobet()
  ...
  if win then
    losscount = 0
    ...
  else
    losscount = losscount + 1
    if losscount == 3 then
      nextbet = previousbet * multiplier
      losscount = 0
    end
    ...
  end

end


You could also use currentstreak and modulus.

Code:
...
function dobet()
  ...
  if win then
    ...
  else
    if currentstreak%3==0 then
      nextbet = previousbet * multiplier
    end
    ...
  end

end

HCP
legendary
Activity: 2086
Merit: 4361
Just put in a counter to count your losses... reset it when you win (or hit 3 losses)... check it on a loss and if it equals 3 then multiply Wink

Code:
...
losscount = 0
...
function dobet()
  ...
  if win then
    losscount = 0
    ...
  else
    losscount = losscount + 1
    if losscount == 3 then
      nextbet = previousbet * multiplier
      losscount = 0
    end
    ...
  end

end

newbie
Activity: 54
Merit: 0
How do i code if i want to multiply after every 3 turn loss/win

Can anyone help me with this, thanks

So you have a basebet and want to multipy that bet after every 3rd bet? Or only when you lost 3 bets in a row?

I think that kind of stuff is already possible in the advanced mode, right? You wont need any code for that.

Multiply after lost 3 bets in a row

Use the settings mode 'Advanced' and under strategies you use maritngale and insert 3 in the textbox of 'Multiply after every [ ] loss'.

There is no need for the programmersmode if you wanne use only a small variation of martingale.

I know this can be done in advance mode but there is some limitation that i need to put that is not avaliable in advance. Can you help me out?
HCP
legendary
Activity: 2086
Merit: 4361
still here guys
Cool story bro... Roll Eyes

Maybe you should be using the time you wait for someone to reply to you to go and read https://www.tutorialspoint.com/lua/ or one of the other thousands of "learn to program" tutorials that you can find using google

While you're at it, you might like to learn how to edit your messages when you press the "quote" button... re-quoting massive messages and adding 3 words (of impatient whining that no-one is helping you) is both annoying and poor etiquette.

The folks here have been INSANELY patient with you... perhaps you should return the favour by asking your question and then waiting patiently for someone to help you out... Remember, we don't get paid to sit on bitcointalk 24/7, we're not employees... and I'm sure most people here have jobs, families and lives outside of bitcointalk...

I can't speak for the others, but I personally do this because I genuinely enjoy helping people... until they act like entitled, spoiled brats...  Angry

#sorryNotSorry

thankx for repling bro, lols if i tell u , u wouldnt belive me but still i hv to tell u (i dont understand a thing of what u hv just told me....
pls could u break it down? mnore cus my head is like  Cry spinning
Once again... an "if-then-else" statement is in the form:

Quote
if (some condition is true) then
  .. do some stuff ..
else
  .. do something else ..
end
All the code between the "if-then" and "else" (ie. .. do some stuff ..) will only execute if the condition evaluates to "True". If the condition is "False", then the code between the "else" and "end" (ie. .. do something else ..) will be executed instead. So each time this "if-then-else" section is executed, only ONE part of it will actually be run.

You put your "stoploss" code inside the "if profit>target then" section. So unless profit was greater than target, your stoploss code would not be executed.

Additionally, you put your "stoploss" code inside the "goal()" function. According to your script, "goal()" is ONLY called if a bet wins as it is inside the "if win then" section... This means that your stoploss code will not run if your bet is a loss. It would only be run if your bet was a "win" AND Profit > target. Obviously, this means that it will never detect that you've lost too much money... so it will never make your program stop!

Quote
if win then
    -- THIS CODE GETS EXECUTED ON WIN
    goal()
    loadgun()
    basebet=balance*betfactor
    ....
else
    -- THIS CODE GETS EXECUTED ON LOSS
    losecount+=1
    nexbet=prebet
    ....
end

To fix this, you can either put the call to goal() BEFORE the "if win then-else" section, so it is called for every single roll... or you can add a call to goal() inside the "else" section of the "if win then-else" part of the code right before losecount+=1 so that it is also called when your roll is a loss.
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
still here guys

thankx for repling bro, lols if i tell u , u wouldnt belive me but still i hv to tell u (i dont understand a thing of what u hv just told me....
pls could u break it down? mnore cus my head is like  Cry spinning

well... as has been explained several times... an "if-then-else" statement is in the form:

Quote
if (some condition is true) then
  .. do some stuff ..
else
  .. do something else ..
end
All the code between the "if-then" and "end" (or "else" if there is an "else") will only execute if the condition evaluates to "True".

In your instance... you had put the runprofit calculation inside the "if profit>target then" section. So unless profit was greater than target, the runprofit calculation would not happen. Tongue

Anyway, the main reason for your stoploss not working, is that the goal() function where you are doing the runprofit calculation, is ONLY called if a bet wins... so it will never do the runprofit calculation on a loss, so it will never detect that you've lost any amount and stop Roll Eyes

Quote
if win then
   
   goal()
   loadgun()
   basebet=balance*betfactor
....
else
   losecount+=1
   nexbet=prebet
....
end

To fix this, you can either put the call to goal() in the dobet() function, but outside of the "if win then-else" section, so it is called for every roll... or you can add a call to goal() inside the "else" section of the "if win then-else" part of the code.
hero member
Activity: 813
Merit: 507
How do i code if i want to multiply after every 3 turn loss/win

Can anyone help me with this, thanks

So you have a basebet and want to multipy that bet after every 3rd bet? Or only when you lost 3 bets in a row?

I think that kind of stuff is already possible in the advanced mode, right? You wont need any code for that.

Multiply after lost 3 bets in a row

Use the settings mode 'Advanced' and under strategies you use maritngale and insert 3 in the textbox of 'Multiply after every [ ] loss'.

There is no need for the programmersmode if you wanne use only a small variation of martingale.
newbie
Activity: 54
Merit: 0
How do i code if i want to multiply after every 3 turn loss/win

Can anyone help me with this, thanks

So you have a basebet and want to multipy that bet after every 3rd bet? Or only when you lost 3 bets in a row?

I think that kind of stuff is already possible in the advanced mode, right? You wont need any code for that.

Multiply after lost 3 bets in a row
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
thankx for repling bro, lols if i tell u , u wouldnt belive me but still i hv to tell u (i dont understand a thing of what u hv just told me....
pls could u break it down? mnore cus my head is like  Cry spinning

well... as has been explained several times... an "if-then-else" statement is in the form:

Quote
if (some condition is true) then
  .. do some stuff ..
else
  .. do something else ..
end
All the code between the "if-then" and "end" (or "else" if there is an "else") will only execute if the condition evaluates to "True".

In your instance... you had put the runprofit calculation inside the "if profit>target then" section. So unless profit was greater than target, the runprofit calculation would not happen. Tongue

Anyway, the main reason for your stoploss not working, is that the goal() function where you are doing the runprofit calculation, is ONLY called if a bet wins... so it will never do the runprofit calculation on a loss, so it will never detect that you've lost any amount and stop Roll Eyes

Quote
if win then
   
   goal()
   loadgun()
   basebet=balance*betfactor
....
else
   losecount+=1
   nexbet=prebet
....
end

To fix this, you can either put the call to goal() in the dobet() function, but outside of the "if win then-else" section, so it is called for every roll... or you can add a call to goal() inside the "else" section of the "if win then-else" part of the code.
HCP
legendary
Activity: 2086
Merit: 4361
well... as has been explained several times... an "if-then-else" statement is in the form:

Quote
if (some condition is true) then
  .. do some stuff ..
else
  .. do something else ..
end
All the code between the "if-then" and "end" (or "else" if there is an "else") will only execute if the condition evaluates to "True".

In your instance... you had put the runprofit calculation inside the "if profit>target then" section. So unless profit was greater than target, the runprofit calculation would not happen. Tongue

Anyway, the main reason for your stoploss not working, is that the goal() function where you are doing the runprofit calculation, is ONLY called if a bet wins... so it will never do the runprofit calculation on a loss, so it will never detect that you've lost any amount and stop Roll Eyes

Quote
if win then
   
   goal()
   loadgun()
   basebet=balance*betfactor
....
else
   losecount+=1
   nexbet=prebet
....
end

To fix this, you can either put the call to goal() in the dobet() function, but outside of the "if win then-else" section, so it is called for every roll... or you can add a call to goal() inside the "else" section of the "if win then-else" part of the code.
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
You need to put the runprofit calculation OUTSIDE of the "if profit>target then" block... You have put it inside that block... so it will only do that calculation if profit>target... Roll Eyes

Basically, you are missing an "end" statement:
Quote
function goal()
  if profit>target then
    stop()
    print(" ")
    print("TARGET REACHED!!!")
    print(" ")
    print("Total Wins : "..wincount)
    print("Total Losses : "..(betcount-wincount))
    print("Total Bet : "..betcount)
    print("Current Profit : "..string.format("%.8f",profit))
    print("Target Profit : "..string.format("%.8f",target))
    print("Final Balance : "..string.format("%.8f",balance))
    print(" ")
  end

  runprofit = balance - startBalance
  if runprofit <= -0.001 then  -- 0.001 BTC loss            -- this is whwer i put the stop on win
    nextbet = 0
    stop()
  end   

end


tankx fop ur reply bro , i hv put the (end) tatement in it,,,,
but its just running and it didint stop when it reached the loss terget,,

plus i dont understand what u mean by
Quote
You need to put the runprofit calculation OUTSIDE of the "if profit>target then" block... You have put it inside that block... so it will only do that calculation if profit>target... Roll Eyes

pls explain more sir thankx alot and bless u
HCP
legendary
Activity: 2086
Merit: 4361
You need to put the runprofit calculation OUTSIDE of the "if profit>target then" block... You have put it inside that block... so it will only do that calculation if profit>target... Roll Eyes

Basically, you are missing an "end" statement:
Quote
function goal()
  if profit>target then
    stop()
    print(" ")
    print("TARGET REACHED!!!")
    print(" ")
    print("Total Wins : "..wincount)
    print("Total Losses : "..(betcount-wincount))
    print("Total Bet : "..betcount)
    print("Current Profit : "..string.format("%.8f",profit))
    print("Target Profit : "..string.format("%.8f",target))
    print("Final Balance : "..string.format("%.8f",balance))
    print(" ")
  end

  runprofit = balance - startBalance
  if runprofit <= -0.001 then  -- 0.001 BTC loss            -- this is whwer i put the stop on win
    nextbet = 0
    stop()
  end   

end
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
helo guys its me again,

i just saw this script i downloaded but i wanted to add stop on loss in it but its not stoping even after i added the code ,
can anyone pls let me know what am doing wrong
thankx alo

Code:
-- The Russian Roulette by McGuyver
-- If you like my scrypt, your donations are much welcome ;)
-- My BTC Wallet: 33kx7iqfjSLuEAoW7EasLs83vontLmCvAE

chance1=8.9189              -->11.10X payout
chance2=10.1020             --> 9.8X payout
chance3=13.0263             --> 7.6X Payout
chance4=18.3333             --> 5.4X Payout
chance5=30.9375             --> 3.2X Payout

m1=1.119         --> Multipliers

(Increase on Lose 1.119=11.9% Inc on lose)
m2=1.137
m3=1.182
m4=1.274
m5=1.546

target=0.00100000     --> Set your Target Profit

here

prebet=0.00000001
betfactor=0.00002           --> very conservative to absorb max

losses with profit on win (Bankroll*0.00002 = basebet)
basebet=balance*betfactor --> 2 sats basebet at .0005 BTC,

basebet increases as balance increases; basebet=0.00000002

(fixed basebet) 
nextbet=prebet
chance=chance1
bethigh=false

startBalance = balance               -- this is the where i put the stop on win button
runprofit = 0

lostchance=1
losecount=0
wincount=0
trigger=0
betcount=0
preroll=9
counter=0
high=0
low=0



resetseed()
--resetstats()              --> To reset your statistics, remove

the double dash (--)

function dobet()

loadgun()
betroll()
rstseed()
viewstats()
betcount+=1

if basebet<0.00000002 then  --> Change this for a higher basebet

(Both Values)
basebet=0.00000002
end

e=currentstreak+preroll

if win then

goal()
loadgun()
basebet=balance*betfactor

if basebet<0.00000002 then  --> Change this for a higher

basebet (Both Values)
basebet=0.00000002
end

nextbet=prebet
wincount+=1
losecount=0

hilo()

if trigger==1 then
chance=chance1
lostchance=1
preroll=9
end

if trigger==2 then
chance=chance2
lostchance=2
preroll=8
end

if trigger==3 then
chance=chance3
lostchance=3
preroll=5
end

if trigger==4 then
chance=chance4
lostchance=4
preroll=4
end

if trigger==5 then
chance=chance5
lostchance=5
preroll=1
end

else
losecount+=1
nexbet=prebet

if lostchance==1 then
if e == 0 then
chance=chance1
nextbet=basebet
end

if e <0 then
chance=chance1
nextbet=previousbet*m1
end
end

if lostchance==2 then
if e == 0 then
chance=chance2
nextbet=basebet
end

if e <0 then
chance=chance2
nextbet=previousbet*m2
end
end

if lostchance==3 then
if e == 0 then
chance=chance3
nextbet=basebet
end

if e <0 then
chance=chance3
nextbet=previousbet*m3
end
end

if lostchance==4 then
if e == 0 then
chance=chance4
nextbet=basebet
end

if e <0 then
chance=chance4
nextbet=previousbet*m4
end

end

if lostchance==5 then
-- randomizer()
if e == 0 then
chance=chance5
nextbet=basebet
end

if e <0 then
chance=chance5
nextbet=previousbet*m5
end

end

end

end

function hilo()

        if high > low then
bethigh=true
        else
bethigh=false
        end

       if (high-low) > 5 then
bethigh=false
        end

        if (low-high)> 5 then
bethigh=true
        end
end

function betroll()

if (lastBet.roll < chance) then
low += 1
end

if (lastBet.roll > (99.99 - chance)) then
high += 1
end

end

function rstseed()

if counter==500 then

resetseed()
counter=0
low=0
high=0
else

counter+=1

end
end

function viewstats()
print(" ")
print("Total Bet : "..betcount)
print("Current Streak Loss : "..losecount)
print("Wins : "..wincount)
print("Losses : "..(betcount-wincount))
print("Current Profit : "..string.format("%.8f",profit))
print("Target Profit : "..string.format("%.8f",target))
print("Current Balance : "..string.format("%.8f",balance))
print("High :"..high.." / ".."Low :"..low)
print(" ")
end

function randomizer()

r=math.random(2)

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

end

function loadgun()

t=math.random(5)

trigger=t

end

function goal()
if profit>target then
stop()
print(" ")
print("TARGET REACHED!!!")
print(" ")
print("Total Wins : "..wincount)
print("Total Losses : "..(betcount-wincount))
print("Total Bet : "..betcount)
print("Current Profit : "..string.format("%.8f",profit))
print("Target Profit : "..string.format("%.8f",target))
print("Final Balance : "..string.format("%.8f",balance))
print(" ")

runprofit = balance - startBalance
  if runprofit <= -0.001 then  -- 0.001 BTC loss            -- this is whwer i put the stop on win
    nextbet = 0
    stop()
  end

end
legendary
Activity: 1717
Merit: 1125
How do i code if i want to multiply after every 3 turn loss/win

Can anyone help me with this, thanks

Examples make everyones life easier if you can't speak english properly
hero member
Activity: 813
Merit: 507
How do i code if i want to multiply after every 3 turn loss/win

Can anyone help me with this, thanks

So you have a basebet and want to multipy that bet after every 3rd bet? Or only when you lost 3 bets in a row?

I think that kind of stuff is already possible in the advanced mode, right? You wont need any code for that.
newbie
Activity: 54
Merit: 0
How do i code if i want to multiply after every 3 turn loss/win

Can anyone help me with this, thanks
HCP
legendary
Activity: 2086
Merit: 4361
In relation to the dicebot? Nothing specific as far as I'm aware... They're just general gambling terms.

Prebet is generally the concept of betting at minimum bet while you wait for a certain condition to occur (like 5 losses in a row, or 4 odd numbers or a "high, low, high, low, high" pattern etc)... at which point you start betting at 'normal' amounts...

Bet factor? no idea to be honest... Not something I have seen in use.
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
hellllo guys its me again,,
pls i hv some questions....

what dose

PREBET AND

BETFACTOR MEANS
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
wow bro that really worked thankx alot

hello am back again guys,,

pls how do i put a stop button in my script,,
i mean i want it to stop after 0.003btc loss....
but the code hcp gave me only let it stop after 1 bet
Code:
--Its a script with embaded jackport hitter 
--so recommended bankroll is (0.002btc) if u are looking farward to hit a jackport, and u have to edit and change the winstreacks accordingling from (17,18,19and19) and change the baseBet to 0.00000002 thats if u wanna hit the jackport!!!
--but if u just wanna keep winning (then leave everything and dont change anything) and the recomended bankroll u should have is (0.009 upward)


wagered=0
chance0=28.08
chance1=90.4
chance2=94   
chance3=95   
baseBet=0.00000001         --You must change the basebet to 0.00000002 if u wanna hit the jackport
baseBet1=0.00000500 
baseBet2=0.00002500 
baseBet3=0.00009500 
nextbet=baseBet
bethigh=true
bethigh=false
startBalance = balance
runprofit = 0
profittarget=0.00900000
function dobet()
wagered=wagered+previousbet
chance = chance0

if win then
nextbet=baseBet
else
nextbet=previousbet*2
end

if currentstreak==-5 then -->you can edit and change the number
chance=chance1
                bethigh=false
nextbet=baseBet1
print(nextbet)
print("Yea,Thats the PhyzyWin!!!")

end
if currentstreak==-6 then -->you can edit and change the number
chance=chance2
                bethigh=false
nextbet=baseBet2
print(nextbet)
print("Yea,Thats the PhyzyGain!!!")
end
if currentstreak==-7 then -->you can edit and change the number
chance=chance3
                bethigh=true
nextbet=baseBet3
end
if currentstreak<-7 then -->you can edit and change the number
chance=chance0
nextbet=baseBet
print(nextbet)
print("Yea,Thats the Phyzyrecovery!!!")
end
  runprofit = balance - startBalance
  if runProfit <= -0.001 then  -- 0.001 BTC loss
     nextbet = 0
    stop()
end
if (balance) >= profittarget then
print(balance)
print("TARGET ACHIEVED!!!")
stop();
end


end

-snip-

try formatting your code the right way (I edited your code in your post) this might help reading your own code.

I this the following programm is what you are looking for

Code:
chance = 90
bethigh = true
basebet =0.00000001
nextbet = basebet

startBalance = balance
lowRoll = false
recovering = false

function dobet()
if (win) then
if (balance >= startBalance) then
chance = 90
nextbet = basebet

startBalance = balance
recovering = false
else
if (recovering) then
nextbet = balance
else
chance = 90
nextbet = basebet
end
end
else
if (recovering) then
chance=98
nextbet=balance
else
chance = 90
nextbet = balance/8

recovering = true
end
end
end

u need a variable to save the state for your consecutive 98% bets, I used the bool recovering.
and u might wanne rebase your startBalance if you are winning (so maybe after the statement 'recovering = false'

Okay I got the code working but there was an error which I have shown on the code with red line.But the problem is I wanted the 98% bet to be placed with an amount equal to updated balance after each of the 98% bets.

for eg: if the balance after first 98% bet is 0.0001 then next 98% bet is placed with 0.0001 and the next bet with the updated balance and so on till loss is recovered


I edited the code in my reply. You simply need to adjust the nextbet to the balance in case u won and u still need to recover.

And sorry for the || (or) Cheesy I am mainly implementing in java and didnt run any of these codes for testing.




Th@nk you B4RF Your code works as it should.Anyway I still had an issue with the code since you forgot a 'then' statement in the editted section(I have marked it in the code above) .But thats OK..

But I still have a problem the 98% chance bet is placed consecutively only till the balance is greater than the initial balance when starting a session and not takes account of the profits made in between.I want  the 98% bet to stop only when the balance is greater than the maxbalance(balance with intermediate profits also included).


for eg: if I start from faucet of 750 sats and  I make profits and reaches a balance 770 sats.Suppose I haven't had a situation to place 98% chance bets till balance is 770.Then lately I have reaches a stage to put 98% chance bets.At this time the bets are placed consecutively till the balance>750 and not 770. I want the 98% bet to stop when balance is greater than 770.

Ye I didnt run the code myself so mistakes are common but nice that u have no problems finding my mistakes Smiley

But in addition I have already mentioned how u can add that behaviour u asked for:


u need a variable to save the state for your consecutive 98% bets, I used the bool recovering.
and u might wanne rebase your startBalance if you are winning (so maybe after the statement 'recovering = false'

I changed the code above once again :S

Check your spelling.  runprofit is not the same as runProfit.
legendary
Activity: 1007
Merit: 1000
hello am back again guys,,

pls how do i put a stop button in my script,,
i mean i want it to stop after 0.003btc loss....
but the code hcp gave me only let it stop after 1 bet
Code:
--Its a script with embaded jackport hitter 
--so recommended bankroll is (0.002btc) if u are looking farward to hit a jackport, and u have to edit and change the winstreacks accordingling from (17,18,19and19) and change the baseBet to 0.00000002 thats if u wanna hit the jackport!!!
--but if u just wanna keep winning (then leave everything and dont change anything) and the recomended bankroll u should have is (0.009 upward)


wagered=0
chance0=28.08
chance1=90.4
chance2=94   
chance3=95   
baseBet=0.00000001         --You must change the basebet to 0.00000002 if u wanna hit the jackport
baseBet1=0.00000500 
baseBet2=0.00002500 
baseBet3=0.00009500 
nextbet=baseBet
bethigh=true
bethigh=false
startBalance = balance
runprofit = 0
profittarget=0.00900000
function dobet()
wagered=wagered+previousbet
chance = chance0

if win then
nextbet=baseBet
else
nextbet=previousbet*2
end

if currentstreak==-5 then -->you can edit and change the number
chance=chance1
                bethigh=false
nextbet=baseBet1
print(nextbet)
print("Yea,Thats the PhyzyWin!!!")

end
if currentstreak==-6 then -->you can edit and change the number
chance=chance2
                bethigh=false
nextbet=baseBet2
print(nextbet)
print("Yea,Thats the PhyzyGain!!!")
end
if currentstreak==-7 then -->you can edit and change the number
chance=chance3
                bethigh=true
nextbet=baseBet3
end
if currentstreak<-7 then -->you can edit and change the number
chance=chance0
nextbet=baseBet
print(nextbet)
print("Yea,Thats the Phyzyrecovery!!!")
end
  runprofit = balance - startBalance
  if runProfit <= -0.001 then  -- 0.001 BTC loss
     nextbet = 0
    stop()
end
if (balance) >= profittarget then
print(balance)
print("TARGET ACHIEVED!!!")
stop();
end


end

-snip-

try formatting your code the right way (I edited your code in your post) this might help reading your own code.

I this the following programm is what you are looking for

Code:
chance = 90
bethigh = true
basebet =0.00000001
nextbet = basebet

startBalance = balance
lowRoll = false
recovering = false

function dobet()
if (win) then
if (balance >= startBalance) then
chance = 90
nextbet = basebet

startBalance = balance
recovering = false
else
if (recovering) then
nextbet = balance
else
chance = 90
nextbet = basebet
end
end
else
if (recovering) then
chance=98
nextbet=balance
else
chance = 90
nextbet = balance/8

recovering = true
end
end
end

u need a variable to save the state for your consecutive 98% bets, I used the bool recovering.
and u might wanne rebase your startBalance if you are winning (so maybe after the statement 'recovering = false'

Okay I got the code working but there was an error which I have shown on the code with red line.But the problem is I wanted the 98% bet to be placed with an amount equal to updated balance after each of the 98% bets.

for eg: if the balance after first 98% bet is 0.0001 then next 98% bet is placed with 0.0001 and the next bet with the updated balance and so on till loss is recovered


I edited the code in my reply. You simply need to adjust the nextbet to the balance in case u won and u still need to recover.

And sorry for the || (or) Cheesy I am mainly implementing in java and didnt run any of these codes for testing.




Th@nk you B4RF Your code works as it should.Anyway I still had an issue with the code since you forgot a 'then' statement in the editted section(I have marked it in the code above) .But thats OK..

But I still have a problem the 98% chance bet is placed consecutively only till the balance is greater than the initial balance when starting a session and not takes account of the profits made in between.I want  the 98% bet to stop only when the balance is greater than the maxbalance(balance with intermediate profits also included).


for eg: if I start from faucet of 750 sats and  I make profits and reaches a balance 770 sats.Suppose I haven't had a situation to place 98% chance bets till balance is 770.Then lately I have reaches a stage to put 98% chance bets.At this time the bets are placed consecutively till the balance>750 and not 770. I want the 98% bet to stop when balance is greater than 770.

Ye I didnt run the code myself so mistakes are common but nice that u have no problems finding my mistakes Smiley

But in addition I have already mentioned how u can add that behaviour u asked for:


u need a variable to save the state for your consecutive 98% bets, I used the bool recovering.
and u might wanne rebase your startBalance if you are winning (so maybe after the statement 'recovering = false'

I changed the code above once again :S

Check your spelling.  runprofit is not the same as runProfit.
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
hello am back again guys,,

pls how do i put a stop button in my script,,
i mean i want it to stop after 0.003btc loss....
but the code hcp gave me only let it stop after 1 bet
Code:
--Its a script with embaded jackport hitter 
--so recommended bankroll is (0.002btc) if u are looking farward to hit a jackport, and u have to edit and change the winstreacks accordingling from (17,18,19and19) and change the baseBet to 0.00000002 thats if u wanna hit the jackport!!!
--but if u just wanna keep winning (then leave everything and dont change anything) and the recomended bankroll u should have is (0.009 upward)


wagered=0
chance0=28.08
chance1=90.4
chance2=94   
chance3=95   
baseBet=0.00000001         --You must change the basebet to 0.00000002 if u wanna hit the jackport
baseBet1=0.00000500 
baseBet2=0.00002500 
baseBet3=0.00009500 
nextbet=baseBet
bethigh=true
bethigh=false
startBalance = balance
runprofit = 0
profittarget=0.00900000
function dobet()
wagered=wagered+previousbet
chance = chance0

if win then
nextbet=baseBet
else
nextbet=previousbet*2
end

if currentstreak==-5 then -->you can edit and change the number
chance=chance1
                bethigh=false
nextbet=baseBet1
print(nextbet)
print("Yea,Thats the PhyzyWin!!!")

end
if currentstreak==-6 then -->you can edit and change the number
chance=chance2
                bethigh=false
nextbet=baseBet2
print(nextbet)
print("Yea,Thats the PhyzyGain!!!")
end
if currentstreak==-7 then -->you can edit and change the number
chance=chance3
                bethigh=true
nextbet=baseBet3
end
if currentstreak<-7 then -->you can edit and change the number
chance=chance0
nextbet=baseBet
print(nextbet)
print("Yea,Thats the Phyzyrecovery!!!")
end
  runprofit = balance - startBalance
  if runProfit <= -0.001 then  -- 0.001 BTC loss
     nextbet = 0
    stop()
end
if (balance) >= profittarget then
print(balance)
print("TARGET ACHIEVED!!!")
stop();
end


end

-snip-

try formatting your code the right way (I edited your code in your post) this might help reading your own code.

I this the following programm is what you are looking for

Code:
chance = 90
bethigh = true
basebet =0.00000001
nextbet = basebet

startBalance = balance
lowRoll = false
recovering = false

function dobet()
if (win) then
if (balance >= startBalance) then
chance = 90
nextbet = basebet

startBalance = balance
recovering = false
else
if (recovering) then
nextbet = balance
else
chance = 90
nextbet = basebet
end
end
else
if (recovering) then
chance=98
nextbet=balance
else
chance = 90
nextbet = balance/8

recovering = true
end
end
end

u need a variable to save the state for your consecutive 98% bets, I used the bool recovering.
and u might wanne rebase your startBalance if you are winning (so maybe after the statement 'recovering = false'

Okay I got the code working but there was an error which I have shown on the code with red line.But the problem is I wanted the 98% bet to be placed with an amount equal to updated balance after each of the 98% bets.

for eg: if the balance after first 98% bet is 0.0001 then next 98% bet is placed with 0.0001 and the next bet with the updated balance and so on till loss is recovered


I edited the code in my reply. You simply need to adjust the nextbet to the balance in case u won and u still need to recover.

And sorry for the || (or) Cheesy I am mainly implementing in java and didnt run any of these codes for testing.




Th@nk you B4RF Your code works as it should.Anyway I still had an issue with the code since you forgot a 'then' statement in the editted section(I have marked it in the code above) .But thats OK..

But I still have a problem the 98% chance bet is placed consecutively only till the balance is greater than the initial balance when starting a session and not takes account of the profits made in between.I want  the 98% bet to stop only when the balance is greater than the maxbalance(balance with intermediate profits also included).


for eg: if I start from faucet of 750 sats and  I make profits and reaches a balance 770 sats.Suppose I haven't had a situation to place 98% chance bets till balance is 770.Then lately I have reaches a stage to put 98% chance bets.At this time the bets are placed consecutively till the balance>750 and not 770. I want the 98% bet to stop when balance is greater than 770.

Ye I didnt run the code myself so mistakes are common but nice that u have no problems finding my mistakes Smiley

But in addition I have already mentioned how u can add that behaviour u asked for:


u need a variable to save the state for your consecutive 98% bets, I used the bool recovering.
and u might wanne rebase your startBalance if you are winning (so maybe after the statement 'recovering = false'

I changed the code above once again :S
Pages:
Jump to: