Hello Guest

as possible by presetlist in programmer mode?

  • 2 Replies
  • 195 Views
*

Gustafff

  • **
  • 10
  • +1/-0
    • View Profile
as possible by presetlist in programmer mode?
« on: April 26, 2019, 12:57:48 pm »
I would like to put the following presetlist as nextbet, and reset only when the profit is greater than 0
presetlist {
0.00000005
0.00000005
0.00000005
0.00000010
0.00000010
0.00000010
0.00000020
0.00000020
0.00000020
0.00000040
0.00000040
0.00000040
0.00000080
0.00000080
0.00000080
0.00000160
0.00000160
0.00000160
0.00000320
0.00000320
0.00000320
0.00000640
0.00000640
0.00000640
0.00001280
0.00001280
0.00001280
0.00002560
0.00002560
0.00002560
0.00005120
0.00005120
0.00005120
0.00010240
0.00010240
0.00010240
0.00020480
0.00020480
0.00020480
0.00040960
0.00040960
0.00040960
0.00081920
0.00081920
0.00081920
}
if profit >0 reset

how can I turn this into a code?

*

PMG

  • **
  • 38
  • +0/-0
    • View Profile
Re: as possible by presetlist in programmer mode?
« Reply #1 on: May 05, 2019, 08:36:18 pm »

write your list in presetlist = {} (each element separated by a comma)

for instance  presetlist = {0.00000005 ,0.00000005 ,0.00000005 ,0.00000010 ,0.00000010}

Code: [Select]
enablezz=false --set to true to use high/low switching
--settings from advanced mode
enablesrc=false --set to true to use stop/reset conditions
--settings from advanced mode

presetlist = {
0.00000011 , 0.00000022 , 0.00000033 ,0.00000044
} -- write your list

profitUpdated = 0
counter = 1

bethigh = false --bet high when true, bet low when false
chance = 90 --sets your chance for placing a bet

nextbet = presetlist[counter]

function dobet()

profitUpdated += currentprofit
counter +=1

if profitUpdated > 0 then
profitUpdated = 0
counter = 1
end

nextbet = presetlist[counter]

if presetlist[counter] == nil then
print("                                               ")
print("==================END OF LIST==================")
print("                                               ")
stop()
end

end

*

Seuntjie

  • *****
  • 323
  • +5/-2
    • View Profile
Re: as possible by presetlist in programmer mode?
« Reply #2 on: May 06, 2019, 07:29:59 am »
Always use math if you can, it greatly reduces the length and complexity of your scripts. Since you're only multiplying your bet by 2 every 3 bets, you can completely do away with the preset list part of the script and replace it with

Code: [Select]
if counter%3==0 then
nextbet = previousbet*2
end

No need to maintain the list, no need to have hundreds of values in the list to ensure it can handle long losing streaks, easier to change if you want it to repeat bets every 4 bets instead of 3 etc etc.