coinwalk

999

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