bet 1sat
on win decrise 10%
on loose increase 100%
reset to the base and start from 1sat when wins 10 000 sat
so how to reset it once reaches that 10k sat from the base bet and do it each loop?
I got to this but i have an error insufficient funds it is trying to bet some large amounts like 8000sat
Also, i do not know how to make the first bet base bet not the previous one as it is different it is from the previous bet in a different strategy.
base=0.00000001
function dobet()
if win then
nextbet=previousbet*0.9
else
nextbet=previousbet*2
end
if profit > 0.00001000 then
resetstats()
print("Reset")
end
end
Seems like your very close.
Try this.
base=0.00000001
nextbet = base
myprofit = 0
function dobet()
myprofit += currentprofit
if win then
nextbet=previousbet*0.9
else
nextbet=previousbet*2
end
if myprofit > 0.00001000 then
resetstats()
print("Reset")
myprofit = 0
nextbet = base
end
if nextbet < base then
nextbet = base
end
end