dryxro
Newbie
Offline
Activity: 5
Merit: 0
|
|
January 29, 2017, 03:36:43 AM Last edit: January 29, 2017, 03:52:06 AM by dryxro |
|
Hi all! I don't understand coding but I managed to write a simple martingale version thanks to other people's code
chance=49.5 function dobet() base=0.00000100 nextbet=base
if win then
nextbet=base
else
nextbet=(previousbet*2)+base
end
end
What I would like to add is to change bet type (high/low) on every win but continue with the last bet's type if it was a loss. If the last bet is high and if it's a win, change the next bet to low If the last bet is high and if it's a loss, continue to the next bet to high If the last bet is low and if it's a win, change the next bet to high If the last bet is low and if it's a loss, continue to the next bet to low
and I also would like to add, change seed on every 250 bet
thank you for your help!
counter=0 chance=49.5 function dobet() base=0.00000100 nextbet=base bethigh = true if win then nextbet=base else nextbet=(previousbet*2)+base ----btw you want to triple your next bet if you lose? just try *2 only so you can just double your bet end if (bethigh == true) then if (win == true) then bethigh = false else bethigh = true) end end if (bethigh ==false) then if (win == true) then bethigh == true else bethigh = false end end counter = counter + 1 if (counter == 250) then resetseed() counter = 0 end end Try this, hope it works.
|
|
|
|
adaseb
Legendary
Offline
Activity: 3878
Merit: 1733
|
|
January 30, 2017, 11:09:11 AM |
|
Hi all! I don't understand coding but I managed to write a simple martingale version thanks to other people's code
chance=49.5 function dobet() base=0.00000100 nextbet=base
if win then
nextbet=base
else
nextbet=(previousbet*2)+base
end
end
What I would like to add is to change bet type (high/low) on every win but continue with the last bet's type if it was a loss. If the last bet is high and if it's a win, change the next bet to low If the last bet is high and if it's a loss, continue to the next bet to high If the last bet is low and if it's a win, change the next bet to high If the last bet is low and if it's a loss, continue to the next bet to low
and I also would like to add, change seed on every 250 bet
thank you for your help!
Regarding the changing seed every few bets, I honestly would just avoid that and just make it use 1 type of seed for every session. You might not realize it or not but as long as you are given the hashed seed before the bet, there is no chance the website can cheat you with the next few hundred or thousands of bets you are about to take. The results are all there even before you start betting. If you don't believe me there is a thread with a website Dice Site Verifier and it has the 3rd party independent code and you can verify your bets there. But changing your seed every few bets or so won't help you at all because its all completely randomized.
|
|
|
|
CiderWaffles
Member
Offline
Activity: 64
Merit: 10
|
|
March 04, 2017, 01:28:26 PM |
|
how do i reduce a bet by a certain percentage or fraction in the martingale section, I've read the steemit post but can't work it out.
say if i want to reduce the bet by 20% or 1/5, how do i do that??
|
|
|
|
shintosai
|
|
March 04, 2017, 01:42:09 PM |
|
how do i reduce a bet by a certain percentage or fraction in the martingale section, I've read the steemit post but can't work it out.
say if i want to reduce the bet by 20% or 1/5, how do i do that??
hope to see answer from this good question it would be a good information likewise im also trying to to figure out what would be a better settings not to lose with martingale set up if we can lessen it up using the bot what would be the best approach.
|
|
|
|
freemanjackal
|
|
March 04, 2017, 04:55:43 PM |
|
is there a way to relate different strategies for instance if am running martingale and when i reach some profit change to another strategy and so on an maybe make a loop with 3 or 4 strategies, is that possible?
|
|
|
|
CiderWaffles
Member
Offline
Activity: 64
Merit: 10
|
|
March 05, 2017, 12:47:35 AM |
|
how do i reduce a bet by a certain percentage or fraction in the martingale section, I've read the steemit post but can't work it out.
say if i want to reduce the bet by 20% or 1/5, how do i do that??
hope to see answer from this good question it would be a good information likewise im also trying to to figure out what would be a better settings not to lose with martingale set up if we can lessen it up using the bot what would be the best approach. reply from Seuntjie how do i reduce a bet by a certain percentage or fraction in the martingale section, I've read the steemit post but can't work it out.
say if i want to reduce the bet by 20% or 1/5, how do i do that??
multiplier = (100+percentage increase)/100 thus multiplier = (100+(-20))/100 = 80/100=0.8 Algebra.
|
|
|
|
seuntjie
Legendary
Offline
Activity: 1717
Merit: 1125
|
|
March 05, 2017, 08:30:19 AM |
|
how do i reduce a bet by a certain percentage or fraction in the martingale section, I've read the steemit post but can't work it out.
say if i want to reduce the bet by 20% or 1/5, how do i do that??
hope to see answer from this good question it would be a good information likewise im also trying to to figure out what would be a better settings not to lose with martingale set up if we can lessen it up using the bot what would be the best approach. reply from Seuntjie how do i reduce a bet by a certain percentage or fraction in the martingale section, I've read the steemit post but can't work it out.
say if i want to reduce the bet by 20% or 1/5, how do i do that??
multiplier = (100+percentage increase)/100 thus multiplier = (100+(-20))/100 = 80/100=0.8 Algebra. I gave the same information as I gave is THIS steemit article on how the math works
|
|
|
|
seuntjie
Legendary
Offline
Activity: 1717
Merit: 1125
|
|
March 05, 2017, 08:43:17 AM |
|
is there a way to relate different strategies for instance if am running martingale and when i reach some profit change to another strategy and so on an maybe make a loop with 3 or 4 strategies, is that possible?
Yes. In the programmer mode, you can use the martingale(win:bool), labouchere(win:bool), presetlist(win:bool), and dalembert(win:bool) functions. These will execute the built in advanced mode functions as the are set up at that moment. You can then use setvalue functions (setvalueint(name:string, value:int), setvaluestring(name:string, value:string),setvaluedecimal(name:string, value:decimal),setvaluebool(name:string, value:bool)) in combination with the settings name as they are found in the exported settings files (case sensitive) to set different values in the advanced mode. For example setvaluedecimal('Multiplier'),2.5) changes the multiplier on loss in the advanced mode to 2.5. Alternatively, you can use the loadstrategy(file:string) function, which will load an exported settings file. Here's a basic script that will loop through 3 advanced mode settings after every 1000 satoshi profit: nextbet=0.000000001 chance=49.5 files = {'settings1','settings2','settings3'} --your list of files currentfile=1 --which file you're using settingsprofit=0 --track profit so you know when to change settings. loadsettings(files[currentfile]) function dobet
setttingsprofit += currentprofit --add the profit from the current bet to the profit tracking if (settingsprofit>0.00001000) then currentfile+=1 --move to the next file if (currentfile>3) then currentfile = 1 end --make sure you go back to the first file if you were using the last one. loadsettings(files[currentfile]) end nextbet=martingale(win) --get the value from the built in settings end Disclaimer: I wrote this code here on this page. I did't test it so there might be a mistake or 5.
|
|
|
|
AMONRA75
|
|
March 11, 2017, 10:34:00 PM |
|
hi,
i need to set negative multipler (increase/decrease) when i winning event anyone help me???
|
|
|
|
chilly2k (OP)
Legendary
Offline
Activity: 1007
Merit: 1000
|
|
March 11, 2017, 11:04:52 PM |
|
hi,
i need to set negative multipler (increase/decrease) when i winning event anyone help me???
x = x * .5 makes x = 1/2 x
|
|
|
|
AMONRA75
|
|
March 11, 2017, 11:19:05 PM |
|
hi,
i need to set negative multipler (increase/decrease) when i winning event anyone help me???
x = x * .5 makes x = 1/2 x if example i need to set... if win then nextbet = previousbet * -22%
|
|
|
|
chilly2k (OP)
Legendary
Offline
Activity: 1007
Merit: 1000
|
|
March 11, 2017, 11:58:32 PM |
|
hi,
i need to set negative multipler (increase/decrease) when i winning event anyone help me???
x = x * .5 makes x = 1/2 x if example i need to set... if win then nextbet = previousbet * -22% 22% is .22 I'll assume your trying to subtract 22% from your previous bet. Another way to think of that is you want to keep 78% (.78) of the previousbet so nextbet = previousbet * .78 if it helps you could code (1 - .22) instead of .78
|
|
|
|
seuntjie
Legendary
Offline
Activity: 1717
Merit: 1125
|
|
March 12, 2017, 08:14:14 AM |
|
how do i reduce a bet by a certain percentage or fraction in the martingale section, I've read the steemit post but can't work it out.
say if i want to reduce the bet by 20% or 1/5, how do i do that??
hope to see answer from this good question it would be a good information likewise im also trying to to figure out what would be a better settings not to lose with martingale set up if we can lessen it up using the bot what would be the best approach. reply from Seuntjie how do i reduce a bet by a certain percentage or fraction in the martingale section, I've read the steemit post but can't work it out.
say if i want to reduce the bet by 20% or 1/5, how do i do that??
multiplier = (100+percentage increase)/100 thus multiplier = (100+(-20))/100 = 80/100=0.8 Algebra. I gave the same information as I gave is THIS steemit article on how the math works
|
|
|
|
AMONRA75
|
|
March 12, 2017, 12:04:44 PM |
|
hi,
i need to stop my bet when my current profit is egual or superior at 0.00100000
i have write
if (currentprofit >= 0.00100000 ) then stop() end
but don't work
anyone help me
|
|
|
|
chilly2k (OP)
Legendary
Offline
Activity: 1007
Merit: 1000
|
|
March 12, 2017, 12:51:10 PM |
|
hi,
i need to stop my bet when my current profit is egual or superior at 0.00100000
i have write
if (currentprofit >= 0.00100000 ) then stop() end
but don't work
anyone help me
currentprofit is the profit from the last bet. You need to keep track of it. Create a variable, I'll call it myprofit. init it to Zero in the beginning of the script. Then at the beginning of the do bet function add in the currentprofit from the last bet. so myprofit = 0 in the start of the script. then myprofit += currentprofit at the beginning of the dobet function add in the profit from the last bet. then add your code to check.... if (myprofit >= 0.00100000 ) then stop() end
|
|
|
|
1982dre
|
|
March 12, 2017, 01:48:36 PM |
|
Maybe this is a better topic for this question Is there a way to let the bot stop on one or multiple numbers. Let's see, can I let it stop after a 99.99 or 0.00? Even without betting on 9900x.
|
|
|
|
AMONRA75
|
|
March 12, 2017, 01:53:52 PM |
|
hi,
i need to stop my bet when my current profit is egual or superior at 0.00100000
i have write
if (currentprofit >= 0.00100000 ) then stop() end
but don't work
anyone help me
currentprofit is the profit from the last bet. You need to keep track of it. Create a variable, I'll call it myprofit. init it to Zero in the beginning of the script. Then at the beginning of the do bet function add in the currentprofit from the last bet. so myprofit = 0 in the start of the script. then myprofit += currentprofit at the beginning of the dobet function add in the profit from the last bet. then add your code to check.... if (myprofit >= 0.00100000 ) then stop() end tnx a lot!
|
|
|
|
seuntjie
Legendary
Offline
Activity: 1717
Merit: 1125
|
|
March 12, 2017, 03:53:26 PM |
|
hi,
i need to stop my bet when my current profit is egual or superior at 0.00100000
i have write
if (currentprofit >= 0.00100000 ) then stop() end
but don't work
anyone help me
currentprofit is the profit from the last bet. You need to keep track of it. Create a variable, I'll call it myprofit. init it to Zero in the beginning of the script. Then at the beginning of the do bet function add in the currentprofit from the last bet. so myprofit = 0 in the start of the script. then myprofit += currentprofit at the beginning of the dobet function add in the profit from the last bet. then add your code to check.... if (myprofit >= 0.00100000 ) then stop() end What about just using the profit variable which is the overall profit of your current session? if (profit >= 0.00100000 ) then stop() end
|
|
|
|
seuntjie
Legendary
Offline
Activity: 1717
Merit: 1125
|
|
March 12, 2017, 03:54:15 PM |
|
Maybe this is a better topic for this question Is there a way to let the bot stop on one or multiple numbers. Let's see, can I let it stop after a 99.99 or 0.00? Even without betting on 9900x.
Is there a way to let the bot stop on one or multiple numbers. Let's see, can I let it stop after a 99.99 or 0.00? Even without betting on 9900x.
If you use the programmer mode with the lastBet object (specifically the lastBet.Roll property) you can do this.
|
|
|
|
AMONRA75
|
|
March 12, 2017, 07:39:08 PM |
|
this is my script: chance = 90 basebet = .00000050 startbalance = balance nextbet = basebet bethigh = true rollcount = 0 myprofit = 0
function dobet() rollcount += 1 myprofit += currentprofit
if (myprofit >= 0.00000200 ) then stop() print("profit ok") resetseed(); end
if win then nextbet = previousbet
else nextbet = previousbet * 1.22 end end
but when i start the script with start() the bet is non continuous execute only 1 bet why?
|
|
|
|
|