var macro


SUBMITTED BY: moud75og

DATE: Oct. 9, 2016, 8:49 a.m.

FORMAT: Text only

SIZE: 2.1 kB

HITS: 2094

  1. var macro;
  2. var pesan, jLoss=0, jWin=0, profit, jHasil=0, amount;
  3. var panjang, buffpo;
  4. var direction = Number(prompt("Direction :\nUP : 1\nDOWN : 2\n",1));
  5. var duration= Number(prompt("Duration (in minutes) : ",2));
  6. var modalawal = Number(prompt("Amount / Stake : ",0.5));
  7. amount=modalawal;
  8. var haisl1, hasil2, hasil3;
  9. for (i=1; ;i++) {
  10. macro = "CODE:";
  11. macro+= "TAG POS=1 TYPE=SELECT FORM=ID:websocket_form ATTR=ID:duration_units CONTENT=%m\n";
  12. macro+= "TAG POS=1 TYPE=INPUT:NUMBER FORM=ID:websocket_form ATTR=ID:duration_amount CONTENT="+duration+"\n";
  13. macro+= "TAG POS=1 TYPE=SELECT FORM=ID:websocket_form ATTR=ID:amount_type CONTENT=%stake\n";
  14. macro+= "TAG POS=1 TYPE=INPUT:TEXT FORM=ID:websocket_form ATTR=ID:amount CONTENT="+amount+"\n";
  15. macro+= "WAIT SECONDS=2\n";
  16. if (direction == 1) {
  17. macro+= "TAG POS=1 TYPE=BUTTON ATTR=ID:purchase_button_top\n";
  18. macro+= "WAIT SECONDS=2\n";
  19. } else {
  20. macro+= "TAG POS=1 TYPE=BUTTON ATTR=ID:purchase_button_bottom\n";
  21. macro+= "WAIT SECONDS=2\n";
  22. }
  23. iimPlay(macro);
  24. pesan = ">> RF Minutes FREE <<\n";
  25. pesan += "Win : " + jWin + "x || Loss : " + jLoss + "x\n";
  26. pesan += "Result : $" + jHasil.toFixed(2);
  27. iimDisplay(pesan);
  28. macro = "CODE:";
  29. macro+= "TAG POS=1 TYPE=BUTTON ATTR=ID:contract_purchase_button\n";
  30. macro+= "WAIT SECONDS="+ (duration * 60) +"\n";
  31. iimPlay(macro);
  32. macro = "CODE:";
  33. macro += "TAG POS=1 TYPE=TD ATTR=ID:trade_details_profit_loss extract=txt\n";
  34. macro+= "WAIT SECONDS=1\n";
  35. iimPlay(macro);
  36. hasil = iimGetLastExtract(1);
  37. j = 0;
  38. panjang = 0;
  39. while (hasil[j] != "(")
  40. {
  41. panjang++;
  42. j++;
  43. }
  44. buff="";
  45. for(k=4;k<panjang;k++)
  46. {
  47. buff += hasil[k];
  48. }
  49. profit=Number(buff);
  50. jHasil += profit;
  51. if (profit > 0)
  52. {
  53. jWin++;
  54. amount=modalawal;
  55. }
  56. else
  57. {
  58. jLoss++;
  59. amount=amount*2.1;
  60. }
  61. pesan = ">> RF Minutes FREE <<\n";
  62. pesan += "Win : " + jWin + "x || Loss : " + jLoss + "x\n";
  63. pesan += "Result : $" + jHasil.toFixed(2);
  64. iimDisplay(pesan);
  65. if (jHasil > 0) {break;}
  66. //macro = "CODE:";
  67. //macro+= "TAG POS=2 TYPE=A ATTR=TXT:x\n";
  68. //iimPlay(macro);
  69. }

comments powered by Disqus