Advertisement
coinwalk

hehehehe

May 20th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. var maxstrike =15;
  2. var stoploss = 90;// %
  3. var min = 40;
  4. var max = 49;
  5. //--------------------------
  6. var minbet = 0.00000001;
  7. var balance = parseFloat(document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText);
  8. var basebet;
  9. var profit = parseFloat($('#LastBetInfoProfit').html());
  10. var bet;
  11. var betid;
  12. var chance = 23.75;
  13. var startbalance = balance;
  14. var sbalance = balance;
  15. var tick = 0;
  16. var betting = true;
  17. var maxbet = startbalance*stoploss/100;
  18. var b;
  19. var i = 0;
  20.  
  21. b = balance*stoploss/100;
  22. while(i<maxstrike){
  23. b/=4;
  24. i++;
  25. }
  26. basebet = b;
  27. if(basebet < minbet) basebet = minbet;
  28. bet = basebet;
  29.  
  30. document.getElementById('BetSizeInput').value = (bet).toFixed(8);
  31. document.getElementById('BetChanceInput').value = chance;
  32. $('#BetLowButton').click();
  33. balance = parseFloat(document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText);
  34. profit = parseFloat($('#LastBetInfoProfit').html());
  35.  
  36. startbalance = balance;
  37. console.log('Game started at balance ',(balance).toFixed(8));
  38.  
  39. setInterval("roll()", 300);
  40.  
  41. function roll(){
  42. tick+=1;
  43. if (betting && tick >=15 || betid != parseFloat($('#LastBetInfoSecret').html())){
  44. betid = parseFloat($('#LastBetInfoSecret').html());
  45. profit = parseFloat($('#LastBetInfoProfit').html());
  46. balance = parseFloat(document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText);
  47.  
  48.  
  49. if(profit < 0){
  50. if(balance-bet*4 > startbalance*stoploss/100)bet*=4;
  51. else if(balance-bet*2 > startbalance*stoploss/100)bet*=2;
  52. }else{
  53. if(balance > startbalance){
  54. i = 0;
  55. b = balance*stoploss/100;
  56. while(i<maxstrike){
  57. b/=4;
  58. i++;
  59. }
  60. basebet = b;
  61. if(basebet < minbet) basebet = minbet;
  62. bet = basebet;
  63. console.log('Current balance ',(balance).toFixed(8),' profit ',(balance-startbalance).toFixed(8),
  64. ' Session profit ',(balance-sbalance).toFixed(8),' ',(100*(balance-sbalance)/sbalance).toFixed(2),'%');
  65. startbalance = balance;
  66. maxbet = startbalance*stoploss/100;
  67. }
  68. }
  69.  
  70. chance = (Math.random() * (max - min) + min).toFixed(2);
  71.  
  72. if(betting && bet <= maxbet){
  73. document.getElementById('BetSizeInput').value = (bet).toFixed(8);
  74. document.getElementById('BetChanceInput').value = chance;
  75. if(Math.random() < 0.5){
  76. $('#BetLowButton').click();
  77. }else{
  78. $('#BetHighButton').click();
  79. }
  80. tick = 0;
  81. }else{
  82. betting = false;
  83. console.log('Game stopped at balance ',(balance).toFixed(8),' Loss ',(startbalance - balance).toFixed(8));
  84. }
  85. }
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement