Created
September 6, 2018 14:49
-
-
Save ruzli/2812f48192a746bc6ff39627368a574a to your computer and use it in GitHub Desktop.
baseskips which increasing after 5 placed bets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const baseBet = 1 | |
const baseTarget = 10 | |
const baseSkips = 4 | |
const resetSkipsAt = 12 | |
const betsPlaced = 5 | |
const multiplierBet = 2 | |
const maxLossBeforeMultiplierBet = 15 | |
const maximumProfit = this.balance/100 * 1.5 /* You can put just any value here */ | |
const stopLoss = 0 | |
const maximumBet = 128 | |
let bet = baseBet | |
let target = baseTarget | |
let lost = 0 | |
let win = 0 | |
let started = 0 | |
let skips = baseSkips | |
while(true){ | |
if (this.balance / 100 < stopLoss){this.log(`StopLoss triggered at ${stopLoss} and terminated`) | |
await this.stop()} | |
if (this.balance / 100 > maximumProfit ){this.log(`Maximum profit of ${maximumProfit} was reached!`) | |
await this.stop()} | |
if (lost >= maxLossBeforeMultiplierBet){ | |
bet = bet * multiplierBet | |
lost = 0 | |
} | |
if (skips >= resetSkipsAt){skips = baseSkips} | |
for (var i = 0; i < skips ; i++){ | |
await this.skip() | |
if(i == 0){ | |
if(win > 0){bet = baseBet | |
win = 0} | |
if (this.balance / 100 < stopLoss){this.log(`StopLoss triggered at ${stopLoss} and terminated`) | |
await this.stop()} | |
started = 1 | |
} | |
} | |
for (var i = 0; i < betsPlaced; i++){ | |
this.log(`Counter for next increase bet: ${lost}(${maxLossBeforeMultiplierBet })`) | |
if (bet >= maximumBet){bet = baseBet} | |
var{multiplier} = await this.bet(bet*100, baseTarget) | |
if(i == 0){ | |
started = 0 | |
skips = skips + 1 | |
if (this.balance / 100 < stopLoss){this.log(`StopLoss triggered at ${stopLoss} and terminated`) | |
await this.stop()} | |
} | |
} | |
if (multiplier< baseTarget){ | |
lost++ | |
win = 0 | |
}else{ | |
win++ | |
this.log("win") | |
lost = 0 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment