Advertisement
cryptomonkey

Elmo's 66

Dec 30th, 2019
543
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.57 KB | None | 0 0
  1. -- Set Win Chance
  2. chance= 66.0
  3.  
  4. --Enable betting speed:
  5. setvaluebool('BotSpeedEnabled',true)
  6.  
  7. --set betting speed to 10 bets per second
  8. setvaluedecimal('BetSpeedValue',10)
  9.  
  10. -- Set BaseBet
  11. div     = (balance*100)/1
  12. base = balance/div
  13.  
  14. nextbet = base
  15. initbalance=balance
  16. first = true
  17. second = false
  18. secondwin = false
  19. third = false
  20.  
  21. betcount = 100
  22. resetstats();
  23.  
  24. -- Before you START, check your Stop Conditions and ZigZag Settings in the Advance Mode
  25.  
  26. -- Set Stop Conditions and Zigzag Settings  Enabled = true Disabled=false
  27.  
  28. enablezz = false
  29. enablesrc = false
  30.  
  31. -- set profit target here
  32. profittarget = balance+50
  33. stoploss     = balance-66
  34.  
  35. function dobet()
  36.  
  37. if betcount == 100 then
  38.   betcount=0
  39.   resetseed();
  40. else
  41.   betcount=betcount+1
  42. end
  43.  
  44. if (balance) - (nextbet)>= profittarget then
  45.   stop();
  46.   print(balance)
  47.   print("TARGET ACHIEVED!!!")
  48.   print("You Won")
  49.   print("Profit: " .. string.format("%9.8f", profit) )
  50.   print("for this Session")
  51. end
  52.  
  53. if (balance) - (nextbet)<= stoploss then
  54.   stop();
  55.   print(balance)
  56.   print("Profit: " .. string.format("%9.8f", profit) )
  57.   stop()
  58. end
  59.  
  60. if (stoponwin == true and lastBet.Profit > 0) then stop() end
  61.  
  62. done = false
  63.  
  64. --Randomizer
  65. r=math.random(2)
  66.  
  67. if r == 1 then
  68.      bethigh=true
  69. else
  70.      bethigh=false
  71. end
  72.    
  73. if win then
  74.          
  75.          if(first) then
  76.             nextbet = base          
  77.          end
  78.  
  79.          if(second) then
  80.             secondwin = true
  81.             second = false
  82.             third = true
  83.             done = true
  84.          end
  85.  
  86.          if(third and !done) then
  87.             if (secondwin) then
  88.                nextbet = base
  89.             else          
  90.                nextbet = previousbet * 7
  91.             end
  92.  
  93.              third = false
  94.              first = true
  95.          end
  96.  
  97. else
  98.  
  99.       if(first and !done) then
  100.           first = false
  101.           second = true
  102.           done = true
  103.        end
  104.  
  105.        if(second and !done) then
  106.  
  107.            secondwin = false
  108.            second = false
  109.            third = true
  110.            done = true
  111.        end
  112.  
  113.        if(third and !done) then
  114.  
  115.             third = false
  116.             first = true
  117.             print("GOING 4 THE WIN!!!")
  118.  
  119.             if (secondwin) then
  120.                 nextbet = previousbet * 7
  121.             else
  122.                 nextbet = previousbet * 12
  123.              end
  124.  
  125.             done = true
  126.        end
  127.    end
  128.  
  129.     if ((initbalance)/2 < (nextbet)) then
  130.       stop();
  131.       print(balance)
  132.       print("Emergency Stop")
  133.       print("Large Bet Amount Occurred!")
  134.    end
  135. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement