Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
chilly2k
on 04/08/2015, 13:53:29 UTC
Hi chilly.
I have this (it's working):

chance=49.5
multiplier=1.05
multiplier2=0.95
base=0.00001000
nextbet = base 
bethigh = false
target = .0001


function dobet()

   if win then
      nextbet=previousbet*multiplier2
   else
      nextbet=previousbet*multiplier
   end
end

Now i want to add reset bets function, same like you have in your strategy (reset when target balance is met)
In other words i want to start with 1 btc, startbet(0.00001000) target(0.00000100) when i make my target i want to automatically reset bets and start over with new balance.
Can you help me with that?
     

An alternative and maybe a better way to do this is to have a temp profit value, instead of saving and using the balance. When using such a temp profit value, it's independent of actions other than bets placed by the bot. For instance, if you're chatting on the site and send someone a tip while betting, or receive a tip or a deposit, it will not affect the betting.

Code:
chance=49.5
multiplier=1.05
multiplier2=0.95
base=0.00001000
nextbet = base 
bethigh = false
target = .0001
tmpProfit = 0


function dobet()
   tmpProfit += currentProfit
   if win then
      if (tmpProfit  > target) then
         tmpProfit = 0
         nextbet = base
      else
         nextbet=previousbet*multiplier2
      end
   else
      nextbet=previousbet*multiplier
   end
end

Note: I didn't actually test this code, But it should work.
Note 2: This can be done with the advanced settings

   Yes, for resetting the bet, your right using the profit vs balance is much better.  I tested your code and it works fine. 

To understand the difference.  I was trying to play through that bad streak I was having.  I hit a few faucets , to get my balance back up, then resumed the script.  As soon as I hit a winner it reset the bet, even though I was still quite a bit in the hole.