Bustabit Intelligent Martingal bot - By Dexon


SUBMITTED BY: raiborne

DATE: Nov. 17, 2015, 1:56 p.m.

FORMAT: Text only

SIZE: 1.5 kB

HITS: 741

  1. /*¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
  2. // |
  3. //___________________________________________________________________|
  4. //
  5. // Simple bot the bet using the martingal method.
  6. // Use this: https://jsfiddle.net/9rea8gv9/embedded/result/
  7. // To help you calculate your options.
  8. // (Bustabit Martingal calculator)
  9. //
  10. // My address: 16gj85L3364SGdcUG5tb2wJkhG8UVF5r6j
  11. */
  12. var BaseBet = 1000, // Base bet in bits. 1000 = 1000 bits.
  13. AutoCashout = 2, // Cashout. 2 means x2.0
  14. IncreaseOnLoss = 2; // Increase on loss. 2 means +200% bits of the previous loss. (first bet will be 1k, second one 2k)
  15. secureStreak = 5; // Numbers of red streaks to wait before starting to bet.
  16. // Edit ^over^ this line --------------------
  17. var streaks = 0;
  18. var bet = 0;
  19. var lastBet = 0;
  20. engine.on('game_starting', function(info) {
  21. if(engine.lastGamePlay() == "LOST") bet = lastBet * IncreaseOnLoss;
  22. else bet = BaseBet;
  23. if(streaks>=secureStreak) engine.placeBet(Math.round(bet)*100, Math.round(AutoCashout*100), function(){ });
  24. lastBet = bet;
  25. });
  26. engine.on('game_crash', function(data) {
  27. if(data.game_crash/100>=AutoCashout){
  28. streaks = 0;
  29. }else{
  30. streaks++;
  31. }
  32. console.log("Crashed at x"+(data.game_crash/100)+", "+(secureStreak-(streaks>secureStreak?secureStreak:streaks))+" streaks left");
  33. });

comments powered by Disqus