Hello Guest

Dangerous default bet, no reset in simulate and one suggestion.

  • 2 Replies
  • 166 Views
*

Tomy45

  • *
  • 2
  • +0/-0
    • View Profile
Dangerous default bet, no reset in simulate and one suggestion.
« on: September 06, 2020, 08:42:15 pm »
Hi Seuntjie,

1. Could you change default bet from 1.00000000 to 0.00000001 if is no nextbet = base before Function dobet?
I had a few times the balance over 1.00000000 and during test scripts a lost 1.00000000 because some scripts has no nextbet = base. On my lucky I played free money, but if I start playing for real money and I'll forget add this line to the script then I'll lose 1 BTC = around 10k USD. I programming and using only programmer mode. I thing this is most huge bug and can cost me 10k USD. Can you fix/change it?

2. Window of simulate:
During simulate the scripts in window "Simulate" the parameters "Win streak" and "Lose streak" never reset after each "Run Simulate".
Example:
Put 100 to "Amount of bets" and run simulate. After finish run look on value of these two options "Win and Lose streak" and remember it. Now put ....lets say 2 to "Amount of bets" and run simulate again. As you see the values of these two options was not change. Only bigger values can overwrite them but not lower. Only the button "Reset" in "Statistic" window can completely reset them but this is not properly solution I guess. Each press of the "Run simulation" button should first reset the last stats and then start calculating new ones.

3. The starting balance displayed in the console is always a different value than that set in the window.
Example:
Copy the script below to dicebot for a quick reference where is the problem I'm talking about.

Code: [Select]
chance             = 49.50
basebet            = 0.00000001
nextbet            = basebet
StartingBalance    = balance
LowestBalance      = balance
CurrentProgression = 0
MaximumDrawdown    = 0

function dobet()
    CurrentProgression += 1
    nextbet = previousbet * 1.25
    LowestBalance -= previousbet
    MaximumDrawdown -= previousbet
    print("")
    print("")
    print("Current Progression:   "..CurrentProgression)
    print("")
    print("Starting Balance  :"..StartingBalance)
    print("Max Drawdown:  "..MaximumDrawdown)
    print("Lowest Balance:  "..LowestBalance) 
    print("nextbet:                "..nextbet)
    if LowestBalance < nextbet
      then
        print("")
        print("BANKROLL IS OVER !!!")
        print("")
        stop()
      end
end

Put any amount to "Starting Balance". Lets put 0.50000000 for example.
Press "Run simulate" go to Console and look what displays Starting balance. The first run displays the same "Starting balance" value as was set in the input option. Run again. You will note that in each next run this value of Starting balance is different. Should be always the same, constant.

4. My suggestion. Could you put very usefull statistics in Simulate window like: Current Drawdown, Maximum Drawdown, Lowest Balance. I coded it but would be great to see that in "Simulate" window.
Example:

Code: [Select]
chance = 13.34
bethigh = true
basebet = balance/18000000
nextbet = basebet

CurrentProgression = 0
CurrentDrawdown = 0
MaximumProgression = 0
MaximumDrawdown = 0

function dobet()
    if win then
      nextbet = basebet
      CurrentProgression = 0
      CurrentDrawdown = 0
    else
      nextbet = previousbet * 1.25
      CurrentProgression += 1
      CurrentDrawdown -= previousbet
      if CurrentDrawdown < MaximumDrawdown
        then
          MaximumProgression = CurrentProgression
          MaximumDrawdown = CurrentDrawdown
        end
    end
    print("")
    print("")
    print("CurrentProgression:    "..CurrentProgression.."   CurrentDrawdown:     "..CurrentDrawdown)
    print("")
    print("MaximumProgression: "..MaximumProgression.."   MaximumDrawdown:  "..MaximumDrawdown)
    print("")
end

Thanks a lot.

*

Seuntjie

  • *****
  • 498
  • +14/-2
    • View Profile
Re: Dangerous default bet, no reset in simulate and one suggestion.
« Reply #1 on: September 12, 2020, 04:53:22 pm »
1. The bot defaults to -1 and prints out to the console that you need to set a value for nextbet before starting the script if you try to start it without giving nextval an actual value. -1 shouldn't be a valid bet at any site, but some sites (like I assume the one you're using) uses the absolute value of whatever is sent to them as the bet. It's not supposed to get to that point where it sends the bet to the site though, and this will be fixed in the next version. That being said, it is 100% your responsibility to ensure that your script does what you intend and to ensure reasonable precautions against stuff like this from happening before starting the bot. I take steps to protect users against themselves (to their great dissatisfaction usually), but I can't do everything.
Edit: nextbet and previousbet are linked. nextbet will by default have the value of previousbet until you change it (assuming previousbet has a value). This means that if you place a bet manually, from the advanced mode or from a previous script and do not override on script initialization, it will assume that value as a starting bet. Point is, make sure you script sets nextbet on initialization.



2. I agree with you, but with the current architecture of the bot it would be quite a lot of work to implement that properly. The easiest solution for me would be to automatically reset your stats before and after you run the simulation, which I don't see as a good solution to the problem, and since this is already addressed in KryGamesBot, I'm not going to spend time on it for v3. As a workaround for yourself, before and after running your simulations, reset your stats using the reset stats button.

3. Balance is not reliable when referenced at script initialization and could quite often be null (especially when running simulations). I would suggest using this approach when you need to snap your balance at when running the script:
Code: [Select]
--script contents
StartingBalance = nil
LowestBalance   = nil
function dobet()
    if (StartingBalance == nil) then
        StartingBalance = balance-currentprofit
    end
    if (LowestBalance == nil) then
        LowestBalance = balance-currentprofit
    end
    --script contents
end


4. Again, most of this is already addressed in KryGamesBot, if it's not, please create an issue on https://github.com/Seuntjie900/KryGamesBot/issues. If you're not comfortable using KryGamesBot while it's in alpha (which honestly makes 100% sense), I guess wait untill it's out of alpha and see what you need then.
« Last Edit: September 12, 2020, 04:59:47 pm by Seuntjie »

*

Tomy45

  • *
  • 2
  • +0/-0
    • View Profile
Re: Dangerous default bet, no reset in simulate and one suggestion.
« Reply #2 on: September 14, 2020, 01:41:43 am »
DiceBot 3.4.11
Bug Fixes:
"Programmer mode doesn't start without nextbet and chance being set"  -    reference to the first point above.

Thanks a lot. I appreciate it.

I using Dice999 (free dogecoin) for tests the scripts from your site.