This file contains hidden or 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 = 2 * 100 // how many satoshis to bet initially | |
const target = 5 // target multiplier | |
const betMultiplier = 1.5 // what to multiply the bet size by when we lose a wager | |
const MAX_BET = 600 * 100 // maximum bet amount to stop script at (satoshis) | |
const MAX_GAMES = 300 // maximum number of games to play before stopping (set to -1 for unlimited) | |
const BET_SPEED = 300 // time between bets in (ex 500 = 500ms = 0.5s) | |
let lossCount = 0 | |
this.log(`Starting martingale with a base bet of ${baseBet/100} bits.`) |
This file contains hidden or 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
engine.median = function (span) { | |
let arr = engine.history.slice(0, (span ? Math.max(1, Math.min(50, span)) : 50)).map(a => a.bust).sort((a, b) => { return a - b }) | |
let mid = arr.length / 2, med = mid % 1 ? arr[mid - 0.5] : (arr[mid - 1] + arr[mid]) / 2; | |
return med; | |
}; | |
// Example Usage | |
log(`Last 25 Bust Median: ${engine.median(25)}`); | |
log(`Last 50 Bust Median: ${engine.median()}`); |
This file contains hidden or 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 = 5 * 100 // how many satoshis to bet initially | |
const target = 5 // target multiplier | |
const betMultiplier = 1.5 // what to multiply the bet size by when we lose a wager | |
const MAX_BET = 7000 * 100 // maximum bet amount to stop script at (satoshis) | |
const MAX_GAMES = -1 // maximum number of games to play before stopping (set to -1 for unlimited) | |
const BET_SPEED = 400 // time between bets in (ex 500 = 500ms = 0.5s) | |
let lossCount = 0 | |
this.log(`Starting martingale with a base bet of ${baseBet/100} bits.`) |
This file contains hidden or 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 maxBankrollToBet = 0.1 // 0.1% Recommended (if you have 50k bits, bets up to 50 at a time) | |
const baseMultiplier = 138 | |
const winMultInc = 7 | |
const lossMultInc = 77 | |
const betSpeed = 150 | |
//------------------------- | |
let ourBet = 0 | |
let ourMultiplier = 0 | |
let currentBet = 0 | |
let currentMultiplier = 0 |
This file contains hidden or 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 = 0.5 * 100 // how many satoshis to bet initially | |
const target = 5 // target multiplier | |
const betMultiplier = 1.3 // what to multiply the bet size by when we lose a wager | |
const MAX_BET = 7000 * 100 // maximum bet amount to stop script at (satoshis) | |
const MAX_GAMES = 500 // maximum number of games to play before stopping (set to -1 for unlimited) | |
const BET_SPEED = 800 // time between bets in (ex 500 = 500ms = 0.5s) | |
let lossCount = 0 | |
this.log(`Starting martingale with a base bet of ${baseBet/100} bits.`) |
This file contains hidden or 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
var baseBet = 6 * 100; | |
var basePayout = 1.1; | |
var currentPayout = 1.1; | |
var betLossMult = 20; | |
var betWinMult = 1; | |
var payoutLossMult = 0.981; | |
var payoutWinMult = 1.33; | |
// note to self: 1.08=x12.51 1.07=x14.29 1.06=x16.67 1.05=x20 1.04=x25 1.03=x33.34 | |
var payoutMin = 1.05; | |
var payoutMax = 3; |
This file contains hidden or 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 = 1.30 | |
const betMultiplier = 5 | |
const stopGameAfterLoss = 2 /* Trigger will lead to drop/stop script */ | |
const dropInsteadOfStopScript = true /* stop script or drop losses and continue play */ | |
const changeSeed = 3 /* How much losses obtain, and then change seed to decrease chance of big streak, 0 to disable */ | |
const lossTarget = 1.1 | |
const lossRepeatTimes = 3 | |
let lossCount = 0 |
This file contains hidden or 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
let values = [2, 56, 3, 41, 0, 4, 100, 23]; | |
values.sort((a, b) => a - b); | |
let median = (values[(values.length - 1) >> 1] + values[values.length >> 1]) / 2 | |
// median = 13,5 | |
/*for finding average you can combine map and reduce at the same time: | |
*/ | |
let avg = values.map((c, i, arr) => c / arr.length).reduce((p, c) => c + p); | |
/* | |
Also median for even number of elements should be sum of two middle numbers divided by 2. So in this case median should be (4 + 23) / 2 = 13.5 and not 23. |
This file contains hidden or 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 DEBUG = !0 | |
const BET_BALANCE = 0.03 // max bankroll available to bet with | |
const MAX_CUT_OFF = 1.5 | |
const MIN_CUT_OFF = 1.08 | |
const BET_SPEED = 300 | |
const iskips = 20 | |
const hmrsv = 3 | |
let prevresults = []; | |
let previous_losses = []; | |
let loseStreak = 0; |
This file contains hidden or 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
/******** SETTINGS ********/ | |
const BASE_WAGER = 100; // Initial lowest possible bet to start with (Satoshis) | |
const BASE_TARGET = 500.00; // Target payout to chase for (Actual payout format 2.00x = 2.00) | |
const AUTO_MULTIPLE = false; // Auto calculate and override BET_MULTIPLE for BASE_TARGET. | |
const BET_MULTIPLE = 1.002; // Multiply bet by this value (1 = no increase) after each loss. | |
const BET_INCREASE = 0; // Increase bet by this flat amount after each loss. (Satoshis) | |
const RESET_ON_HIT = true; // Returns to base bet after hitting target payout. | |
const STOP_ON_HIT = true; // Stop the script after hitting target payout. | |
const STOP_ON_PROFIT = false; | |
const STOP_PROFIT = 30000; // Stop the script when profits reach this amount. (Bits amount) |