Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const min = 2;
- const max = 30;
- const minimum = 500;
- const amount = 3000;
- const rate = 3;
- const profitper = 1;
- const arrayamount = 3;
- const base = 1;
- const betlimit = 300000;
- const logging = 1;
- const rateincreasement = 0.15;
- const ratedecreasement = 0.005;
- let currentrate = rate;
- let c = 0;
- let history = new Array(0);
- let target = 0;
- let totalloss = 0;
- let lossstreak = 0;
- let currentBet = 1;
- let lastlost = false;
- function sleep(ms) {
- return new Promise(resolve => setTimeout(resolve, ms));
- }
- const main = async () => {
- await this.log("starting script");
- while (true) {
- c++;
- if (target > 0) {
- if (lastlost) {
- totalloss += currentBet;
- currentBet = (1 / (target - 1)) * (totalloss + profitper);
- lossstreak++;
- if (totalloss > betlimit) {
- this.log("BET REACHED LIMIT");
- this.stop();
- }
- } else {
- totalloss = 0;
- currentBet = base;
- lossstreak = 0;
- }
- const {multiplier} = await this.bet(Math.max(Math.round(currentBet),1) * 100, target);
- history.unshift(multiplier);
- if (multiplier < target) {
- lastlost = true;
- currentrate += rateincreasement;
- } else {
- if (logging) {
- this.log(`#${c} ${Math.max(Math.round(currentBet),1) * (target - 1)}`);
- }
- currentrate = rate;
- lastlost = false;
- }
- target = 0;
- } else {
- if (currentrate > rate) {
- currentrate -= ratedecreasement
- if (currentrate < rate) {
- currentrate = rate
- }
- }
- if (c % 2 == 0) {
- const {multiplier} = await this.bet(100, 1.01);
- history.unshift(multiplier);
- } else {
- const {multiplier} = await this.skip();
- history.unshift(multiplier);
- }
- }
- if (c < amount) {
- continue;
- }
- if (history.length > amount) {
- history.pop()
- }
- let filtered = new Array(0);
- let sum = 0;
- for (let i = 0; filtered.length < arrayamount; i++) {
- if (i >= history.length) {
- filtered.push(history.slice(0, i));
- break;
- }
- sum += 99 / history[i];
- if (i >= minimum) {
- let average = sum / (i + 1)
- if (((99 / 1.99) < average) && (average <= ((99 / 1.98) + 0.00001))) {
- filtered.push(history.slice(0, i));
- }
- }
- }
- for (let i = 0; i < Math.abs(max - min) * 100; i++) {
- let streak = 0;
- let avgstreak = 0;
- let count = 0;
- let avgstreakc = 0;
- for (let j = 0; j < filtered.length; j++) {
- for (let p = 0; p < filtered[j].length; p++) {
- if (filtered[j][p] < (i / 100) + min) {
- avgstreak++;
- } else {
- avgstreakc++;
- }
- if (j == (filtered.length - 1)) {
- if (filtered[filtered.length - 1][filtered[filtered.length - 1].length - 1 - p] < (i / 100) + min) {
- streak++;
- } else {
- streak = 0;
- }
- if (filtered[filtered.length - 1][p] >= (i / 100) + min) {
- count++;
- }
- }
- }
- }
- avgstreak /= avgstreakc;
- count /= filtered[filtered.length - 1].length;
- count *= 100;
- let probstreak = (100 / (99 / ((i / 100) + min))) - 1;
- let prob = ((99 / ((i / 100) + min)) * ((avgstreak / probstreak) + (streak / probstreak) + (streak / avgstreak) + ((99 / ((i / 100) + min)) / count))) / 4;
- if ((prob / (99 / ((i / 100) + min))) >= currentrate) {
- target = Math.round(((i / 100) + min) * 100) / 100;
- }
- }
- }
- }
- while (true) {
- try {
- await main();
- } catch (error) {
- this.log("Connection Closed. Restart After 1 Second.")
- await sleep(1000);
- continue;
- }
- }const min = 2;
- const max = 30;
- const minimum = 500;
- const amount = 3000;
- const rate = 3;
- const profitper = 1;
- const arrayamount = 3;
- const base = 1;
- const betlimit = 300000;
- const logging = 1;
- const rateincreasement = 0.15;
- const ratedecreasement = 0.005;
- let currentrate = rate;
- let c = 0;
- let history = new Array(0);
- let target = 0;
- let totalloss = 0;
- let lossstreak = 0;
- let currentBet = 1;
- let lastlost = false;
- function sleep(ms) {
- return new Promise(resolve => setTimeout(resolve, ms));
- }
- const main = async () => {
- await this.log("starting script");
- while (true) {
- c++;
- if (target > 0) {
- if (lastlost) {
- totalloss += currentBet;
- currentBet = (1 / (target - 1)) * (totalloss + profitper);
- lossstreak++;
- if (totalloss > betlimit) {
- this.log("BET REACHED LIMIT");
- this.stop();
- }
- } else {
- totalloss = 0;
- currentBet = base;
- lossstreak = 0;
- }
- const {multiplier} = await this.bet(Math.max(Math.round(currentBet),1) * 100, target);
- history.unshift(multiplier);
- if (multiplier < target) {
- lastlost = true;
- currentrate += rateincreasement;
- } else {
- if (logging) {
- this.log(`#${c} ${Math.max(Math.round(currentBet),1) * (target - 1)}`);
- }
- currentrate = rate;
- lastlost = false;
- }
- target = 0;
- } else {
- if (currentrate > rate) {
- currentrate -= ratedecreasement
- if (currentrate < rate) {
- currentrate = rate
- }
- }
- if (c % 2 == 0) {
- const {multiplier} = await this.bet(100, 1.01);
- history.unshift(multiplier);
- } else {
- const {multiplier} = await this.skip();
- history.unshift(multiplier);
- }
- }
- if (c < amount) {
- continue;
- }
- if (history.length > amount) {
- history.pop()
- }
- let filtered = new Array(0);
- let sum = 0;
- for (let i = 0; filtered.length < arrayamount; i++) {
- if (i >= history.length) {
- filtered.push(history.slice(0, i));
- break;
- }
- sum += 99 / history[i];
- if (i >= minimum) {
- let average = sum / (i + 1)
- if (((99 / 1.99) < average) && (average <= ((99 / 1.98) + 0.00001))) {
- filtered.push(history.slice(0, i));
- }
- }
- }
- for (let i = 0; i < Math.abs(max - min) * 100; i++) {
- let streak = 0;
- let avgstreak = 0;
- let count = 0;
- let avgstreakc = 0;
- for (let j = 0; j < filtered.length; j++) {
- for (let p = 0; p < filtered[j].length; p++) {
- if (filtered[j][p] < (i / 100) + min) {
- avgstreak++;
- } else {
- avgstreakc++;
- }
- if (j == (filtered.length - 1)) {
- if (filtered[filtered.length - 1][filtered[filtered.length - 1].length - 1 - p] < (i / 100) + min) {
- streak++;
- } else {
- streak = 0;
- }
- if (filtered[filtered.length - 1][p] >= (i / 100) + min) {
- count++;
- }
- }
- }
- }
- avgstreak /= avgstreakc;
- count /= filtered[filtered.length - 1].length;
- count *= 100;
- let probstreak = (100 / (99 / ((i / 100) + min))) - 1;
- let prob = ((99 / ((i / 100) + min)) * ((avgstreak / probstreak) + (streak / probstreak) + (streak / avgstreak) + ((99 / ((i / 100) + min)) / count))) / 4;
- if ((prob / (99 / ((i / 100) + min))) >= currentrate) {
- target = Math.round(((i / 100) + min) * 100) / 100;
- }
- }
- }
- }
- while (true) {
- try {
- await main();
- } catch (error) {
- this.log("Connection Closed. Restart After 1 Second.")
- await sleep(1000);
- continue;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement