Created
September 6, 2018 14:50
-
-
Save ruzli/6a069265fe4c43ef4a55da5dd61701be to your computer and use it in GitHub Desktop.
strategy 5x 3 times after 10x
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 multiplierBet = 2 | |
const maxProfit = 100000 | |
const sleepTime = 0 | |
let bet = baseBet | |
let target = baseTarget | |
let lostbet = baseBet | |
let lost = 0 | |
let win = 0 | |
let started = 0 | |
while(true){ | |
await sleep(sleepTime) | |
if (this.balance / 100 > maxProfit){ | |
await this.stop() | |
} | |
if (started < 1){ | |
var{multiplier} = await this.skip() | |
}else{ | |
if (win > 0){ | |
bet = baseBet | |
} | |
this.log(bet) | |
var{multiplier} = await this.bet(bet*100, baseTarget / 2) | |
} | |
lost++ | |
if (multiplier < baseTarget){ // LOSS | |
win = 0 | |
if (lost > 3){ | |
started = 0 | |
}else{ | |
if(started == 0){ | |
bet = bet * multiplierBet | |
} | |
started = 1 | |
} | |
}else{ // WIN | |
win++ | |
if (lost > 3){ | |
started = 0 | |
lost = 0 | |
if (started == 1){bet = baseBet} | |
} | |
} | |
} | |
async function sleep(ms){return new Promise(resolve => setTimeout(resolve, ms))} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment