Hello Guest

How should i code my script to double bets every 3 losses streak

  • 4 Replies
  • 2450 Views
*

Xeav

  • *
  • 2
  • +0/-0
    • View Profile
Hi so i've been thinking how could i make something safer using the martingale setting.

I came up with something, chance of loosing on 10 row streak on 50% dice would be smaller if we could double our bets on every 3 losses streak. Here's an exemple:

Bold is loss and Italic would be win: 0 0 0 0 0 0 10000 (After a loss it comes back to 0 and try again on the next 3 losses streak but it doubles using the martingale strategy) :
0 0 0 0 0 0 20 000 .

So here you go, you just made 10k satoshi. I don't know if i'm being clear but i just cant figure out by myself how i can set a bet after 3 losses then reset it to 0 and then double it the next 3 losses, can someone enlighten me ? :)

Thank you

*

Seuntjie

  • *****
  • 184
  • +0/-1
    • View Profile
Re: How should i code my script to double bets every 3 losses streak
« Reply #1 on: July 15, 2018, 06:15:43 pm »
You don't need to use a script for this, you can just change a setting in the advanced mode.

On the martingale tab, in the multipier on loss box, change the "multiply every x loss" value to 3.

Otherwise, See this post where I explain how the modulus operator works:

https://forum.seuntjie.com/index.php?topic=69.msg157#msg157

Also see the tutorials on https://forum.seuntjie.com/index.php?topic=2.0 for a list of available variables and functions.

*

Xeav

  • *
  • 2
  • +0/-0
    • View Profile
Re: How should i code my script to double bets every 3 losses streak
« Reply #2 on: July 15, 2018, 06:58:17 pm »
I get that but i dont want the bot to multiply every loss after 3 streak in a row. I've misspoke myself, I want him to bet after the third loss.

Lets say he bets 5k sat after 3 loss of 0 sat, if he loose then it comme back to 0 and then it multiply on the next 3 loss in a row by twice your bet in this case the base 5k would become 10k on the next 3 loss streak and etc... That would mean that the bot would bet only after an predefined amount of loss and double after that same amount of loss happen again.
« Last Edit: July 15, 2018, 07:00:09 pm by Xeav »

*

Krypton

  • **
  • 20
  • +0/-0
    • View Profile
Re: How should i code my script to double bets every 3 losses streak
« Reply #3 on: August 03, 2018, 02:31:33 pm »
Code: [Select]

-- more credits https://forum.seuntjie.com/index.php?topic=147.0
-- By Krypton
-- Scripted for Learning Purpose only
-- Please use at your own risk (there may be errors)
-- Next bet is double the basebet only after 3 losses
-- Rest all bets Zero
-- if this script is profitable please consider donating
-- BTC:  3Ds6p7KH785SXwgh8Xs9U2GXfcR5tv8Z6F
-- LTC:   MJd5NFEnmsvbqFc2ZbbpW7XU614NNThq9c

chance=49.5
basebet=0.0000005   -- keep this half of what first bet you want
nextbet=0
actualbet=basebet
bethigh=true
enablezz=false
enablesrc=false
losscount=0

function dobet()
if win then
losscount=0
if previousbet >0 then
nextbet=0
actualbet=basebet
end
     else
losscount=losscount+1
if losscount%3==0 then
actualbet=actualbet*2
nextbet=actualbet
     else
nextbet=0
end
if previousbet >0 then
losscount=0
end
end
end


*

Krypton

  • **
  • 20
  • +0/-0
    • View Profile
Re: How should i code my script to double bets every 3 losses streak
« Reply #4 on: August 09, 2018, 10:42:20 am »
Find attached screen shot of working of above script