Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- edited by DICEKODE
- -- youtube: https://www.youtube.com/channel/UC-BpueviNmn12aV_pBRY3gQ
- -- blog: https://dicekode.blogspot.com
- -- whatsapp: https://chat.whatsapp.com/Faes925uLw9HkhZeFHchFf
- -- linkdonasi: berikan pada yang "berhak"
- -- This is GAMBLING! -- DWYOR (Do With Your Own Risk)
- -- Double martingale. Main one with high chance of winning and Bonus one with a 990 factor.
- -- Best to use with a balance of at least 0.1 BTC or 1 ETH (or anything equivalent in other cryptos)
- -- The main martingale stops when the threshold is reached, this will kick in the bonus martingale.
- -- The profits from the main martingale will fund the bonus martingale.
- -- If during the bonus martingale the profit goes negative, the robot will return to the main martingale.
- -- Main Martingale. Return is x2.
- chance = 49.5
- revchance = 50.5
- -- Bonus martingale. When the threshold is reached the robot switches to this x990 martingale
- -- If the martingale does not succeed it stops when profit from the main martingale has been consumed.
- -- Hopefully this should be rare and the consequence is not dramatic anyway.
- jackpot = 99.89
- revjackpot = 0.1
- -- Main martingale uses a x2.05 to increase profits when there is a streak of losses/wins.
- -- Bonus martingale uses a 0.14% increase for the x990.
- multup = 2.05
- multjackpot = 1.0014
- -- Base bet as calculated below allows to sustain 19 consecutive losses on the main martingale. This corresponds to 1 chance out of 433,000 to go bust.
- -- You can adjust the number of sustained losses by increasing/decreasing the "20" in the base expression
- -- Bonus martingale uses the same base as the main one, but this can be set to anything you like. I recommend using the same one.
- base = balance*1.1/(multup^20-1)
- basejackpot = base
- -- Main martingale kicks in only after 3 consecutive losses or wins to increase average profit. You can adjust this but I found 3 is the optimal value.
- initial = 3
- -- Bonus martigale kicks in after 2000 pre-rolls. You can increase/decrease the threshold at your convenience.
- threshold = 2000
- -- Technical variables to make the two martingales properly work together
- -- don't touch.
- bethigh = true
- currentstreak = 0
- counter = 1
- reversecounter = 0
- countjackpot = 1
- revcountjackpot = 0
- nextbet = base
- main = 1
- function dobet()
- -- Technical part of the code to set the counters which will determine the chance, bet amount and direction
- if bethigh then
- if lastBet.roll>revchance then
- counter = 0
- else
- counter = counter+1
- end
- if lastBet.roll<chance then
- reversecounter = 0
- else
- reversecounter = reversecounter+1
- end
- else
- if lastBet.roll<chance then
- counter = 0
- else
- counter = counter+1
- end
- if lastBet.roll>revchance then
- reversecounter = 0
- else
- reversecounter = reversecounter+1
- end
- end
- if lastBet.roll>=revjackpot then
- revcountjackpot = revcountjackpot+1
- else
- revcountjackpot = 0
- end
- if lastBet.roll<=jackpot then
- countjackpot = countjackpot+1
- else
- countjackpot = 0
- end
- -- --------------------------------------
- -- Main Martingale ----------------------
- -- --------------------------------------
- if (main==1) then
- if win then
- if reversecounter<initial then
- counter = 0
- nextbet = base
- else
- bethigh = !bethigh
- counter = reversecounter
- reversecounter = 0
- if counter>=initial then
- nextbet = base*(multup^counter)
- else
- nextbet = base
- end
- end
- if countjackpot>threshold then
- bethigh = true
- chance = revjackpot
- nextbet = basejackpot
- main = 2
- end
- if revcountjackpot>threshold then
- bethigh = false
- chance = revjackpot
- nextbet = basejackpot
- main = 2
- end
- else
- if counter>=initial then
- nextbet = base*(multup^counter)
- else
- nextbet = base
- end
- end
- else
- -- -------------------
- -- Bonus martingale --
- -- -------------------
- if win then
- --ching()
- main = 1
- nextbet = base
- chance = 49.5
- bethigh = true
- else
- nextbet = previousbet*multjackpot
- end
- -- ----------------------------------
- -- Stop Loss for the bonus martingale
- -- ----------------------------------
- if profit<0 then
- --ching()
- main = 1
- nextbet = base
- chance = 49.5
- bethigh = true
- countjackpot = 0
- revcountjackpot = 0
- end
- end
- print("streak " ..counter)
- print("reverse streak " ..reversecounter)
- print("jackpot " ..countjackpot .." " ..revcountjackpot)
- -- ------------------
- -- Take Profit ------
- ---------------------
- if profit>balance*5 then stop() end
- end
Add Comment
Please, Sign In to add comment