Guest User

what the problem

a guest
Jul 19th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. function Martingale() {
  2.  
  3. var buyed = localStorage.getItem("buyed");
  4. var profit_amount = localStorage.getItem("profit_amount");
  5. var start_lot = localStorage.getItem("start_lot");
  6. var current_lot = localStorage.getItem("current_lot");
  7. var direction = localStorage.getItem("direction");
  8.  
  9. getTime();
  10.  
  11. if (serverTime.getSeconds() == 26) {
  12. if (buyed == "false") {
  13.  
  14. if (profit_amount == current_lot) {
  15. console.warn("Tét visszajár, újrapróbálkozás");
  16. chrome.notifications.create("", {
  17. type: "basic",
  18. iconUrl: "img/logo_w.png",
  19. title: "IQ Option bot",
  20. message: "Tét visszajár, újrapróbálkozás"});
  21. buyActive();
  22. };
  23.  
  24. if (profit_amount > current_lot && profit_amount != current_lot) {
  25. localStorage.setItem("current_lot", start_lot);
  26. console.warn("Nyert")
  27. chrome.notifications.create("", {
  28. type: "basic",
  29. iconUrl: "img/logo_w.png",
  30. title: "IQ Option bot",
  31. message: "Nyert"});
  32.  
  33. if (direction == "call") {
  34. localStorage.setItem("direction", "put");
  35. }
  36.  
  37. else {
  38. localStorage.setItem("direction", "call");
  39. };
  40. buyActive();
  41. };
  42.  
  43. if (profit_amount == 0) {
  44. localStorage.setItem("current_lot", current_lot * 2.5);
  45. console.warn("Vesztett, tét emelés");
  46. chrome.notifications.create("", {
  47. type: "basic",
  48. iconUrl: "img/logo_w.png",
  49. title: "IQ Option bot",
  50. message: "Vesztett, tét emelés"});
  51.  
  52. if (direction == "call") {
  53. localStorage.setItem("direction", "put");
  54. }
  55.  
  56. else {
  57. localStorage.setItem("direction", "call");
  58. };
  59. buyActive();
  60. };
  61. };
  62. };
  63. };
Advertisement
Add Comment
Please, Sign In to add comment