Hello Guest

How to implement this fix to Jossy?

  • 9 Replies
  • 270 Views
*

Bullseye

  • **
  • 37
  • +0/-0
    • View Profile
How to implement this fix to Jossy?
« on: April 16, 2020, 06:02:48 pm »
Aloha all!  Hope you are staying health, safe and SANE!

I am using a Jossy Martingale (ish) script, and i'd like to fix the big drops. I'm happy to reset with a bit of a loss.  I think that is better than potentially bottoming out, especially with a mostly successful script.  How can i add a reset after a percentage of balance loss on one bet?

Like here i would like to reset to the base bet:

*

Seuntjie

  • *****
  • 481
  • +13/-2
    • View Profile
Re: How to implement this fix to Jossy?
« Reply #1 on: April 16, 2020, 06:09:07 pm »
If you have your current balance and the amount of your most recent bet, how would you calculate how much % of your balance did you lose?

Don't think in terms of scripting, just think of the "equation" if want to call it that, to do that calculation.

*

Bullseye

  • **
  • 37
  • +0/-0
    • View Profile
Re: How to implement this fix to Jossy?
« Reply #2 on: April 16, 2020, 06:42:34 pm »
Right.  I've got that.  Was asking about the syntax.  I don't see "reset" in the Functions/Methods list.  Do i use setvalueint?  or just guess and test?  Is there a more complete list of functions/methods/variables?

Thank you.  I'm so excited to jump in that i may be getting ahead of myself.  I look forward to being able to post some scripts and donating from my winnings!

Also, could you put different verification methods for posting?  They are brutal, and hard to read.  Also it keeps telling me that 0-0 is not 0(?)

*

Seuntjie

  • *****
  • 481
  • +13/-2
    • View Profile
Re: How to implement this fix to Jossy?
« Reply #3 on: April 16, 2020, 07:44:36 pm »
Right.  I've got that.  Was asking about the syntax.

Yes, I was getting to that. I want you to post the calculation then I'll guide you to the syntax you need.

I don't see "reset" in the Functions/Methods list.  Do i use setvalueint?  or just guess and test?  Is there a more complete list of functions/methods/variables?

The functions list in the bot is the complete list of functions. There isn't a reset function in the programmer mode because it's impossible for the bot to know how to reset your script. To reset, you need to reset your own variables in the script when you want to reset.

Also, could you put different verification methods for posting?  They are brutal, and hard to read.  Also it keeps telling me that 0-0 is not 0(?)

Unfortunately, not at the moment. They're not very difficult and it's the only things that keeps out spam, mostly. I will change the questions soon because spam has been getting through lately but I can't change the method at the moment.

*

Bullseye

  • **
  • 37
  • +0/-0
    • View Profile
Re: How to implement this fix to Jossy?
« Reply #4 on: April 16, 2020, 07:53:34 pm »
Super.  At work right now but hope to be able to get to this tonight.

*

Bullseye

  • **
  • 37
  • +0/-0
    • View Profile
Re: How to implement this fix to Jossy?
« Reply #5 on: April 17, 2020, 03:18:17 am »
This is a bet progression that i've tried to add my loss-stop to.  I am getting:
[string "chunk"]:44: attempt to compare number with nil  (only when i uncomment my addition below):
Code: [Select]
--bet progression
   if win then
     losec   = 0
     chance  = math.random(chance1*100.0, chance2*100.0)/100.0
     nextbet = base
   else
     losec    = losec + 1
--     if lastbet.amount > balance * 0.1 then
--         nextbet = base
--     print ("Reset bet to Base")
--     else
     if losec > maxlstarget-1 then
         multiplier = saviormult
         chance     = saviorchance
         nextbet    = previousbet * multiplier
     else
         multiplier = 1.9
         chance     = math.random(chance1*100.0, chance2*100.0)/100.0
         nextbet    = previousbet * multiplier
         end
 end

*

Bullseye

  • **
  • 37
  • +0/-0
    • View Profile
Re: How to implement this fix to Jossy?
« Reply #6 on: April 17, 2020, 03:45:00 am »
I think i may have found it!  Being an impatient ass, i decided to just read every script.  Luck paid off before persistence even had a chance...

I see in your basic Martingale script, you use the variable: previousbet

This isn't in the list of variables, so is there a more complete list.  I am testing with previousbet now, no results yet, but at least it doesn't throw an error  :)  Will this set my nextbet to base is my previousbet loss was greater than 10% of my balance?

Code: [Select]
if previousbet > balance * 0.1 then
         nextbet = base
     print ("Reset bet to Base")
     else


*

Seuntjie

  • *****
  • 481
  • +13/-2
    • View Profile
Re: How to implement this fix to Jossy?
« Reply #7 on: April 17, 2020, 07:19:43 am »
I think i may have found it!  Being an impatient ass, i decided to just read every script.  Luck paid off before persistence even had a chance...

I see in your basic Martingale script, you use the variable: previousbet

This isn't in the list of variables, so is there a more complete list.



Here are tutorials that contain a list of all variables and functions and an explanation of what they do: https://forum.seuntjie.com/index.php?topic=2.0


I am testing with previousbet now, no results yet, but at least it doesn't throw an error  :)  Will this set my nextbet to base is my previousbet loss was greater than 10% of my balance?

Code: [Select]
if previousbet > balance * 0.1 then
         nextbet = base
     print ("Reset bet to Base")
     else


I didn't go through the whole script so I'm not sure what else needs to be reset, but yes your bet will be set to your base bet, but I suspect it might behave a bit different than you expect. You have a balance of 100. You make a bet of 9.5 (that's 9.5%) and lose. Now your balance is 90.5. You calculate your loss as a percentage of your new balance (9.5/90.5*100) and you get a result of 10.49%, so you reset even though the bet you lost was 9.5% of your balance when you made the bet. Is this what you want to happen?
« Last Edit: April 17, 2020, 07:21:36 am by Seuntjie »

*

Bullseye

  • **
  • 37
  • +0/-0
    • View Profile
Re: How to implement this fix to Jossy?
« Reply #8 on: April 17, 2020, 02:52:33 pm »

I didn't go through the whole script so I'm not sure what else needs to be reset, but yes your bet will be set to your base bet, but I suspect it might behave a bit different than you expect. You have a balance of 100. You make a bet of 9.5 (that's 9.5%) and lose. Now your balance is 90.5. You calculate your loss as a percentage of your new balance (9.5/90.5*100) and you get a result of 10.49%, so you reset even though the bet you lost was 9.5% of your balance when you made the bet. Is this what you want to happen?
[/quote]

Good point!  I will have to look at this.  Either way, this isn't really achieving the result i want anyway...  My thought was to have a mostly winning strategy AND prevent crashes, but i see that this stop-loss is preventing the bot from recovering from big dips.

I want the script to be aggressive in recovering, but not crash.  There has to be a way to take advantage of a 0.1% house edge, right? maybe? hopefully. :)

*

Seuntjie

  • *****
  • 481
  • +13/-2
    • View Profile
Re: How to implement this fix to Jossy?
« Reply #9 on: April 17, 2020, 03:08:14 pm »
There has to be a way to take advantage of a 0.1% house edge, right? maybe? hopefully. :)

There is, have the edge be in your favour. Or in other words, be the casino.