Hello, thank you for the program.

I know nothing about lua scriptis, I tryed learning but it is not my field.

The idea I am trying to implement is extremely simple and has worked on binary options, I am trying to implement it on crypto dice.

Basically, if there are more wins then losses overall, you bet less. If there are more losses than wins, you bet more. The logic is that wins and losses tend to be in equilibrium, if you had a lot of losses you will have a lot of wins and vice versa, so you bet accordingly.

I tryed using the "wins" and "losses" variables but it doesnt seem to work and I don't know why.

The code I wrote is the following:

chance = 49.95

function dobet()

if (wins > losses) then

nextbet = 0.0000007

end

if (wins < losses) then

nextbet = 0.0000009

end

end

The problem is that the betting never goes above 0.0000007 even when there are more losses than wins and I downt know why. If anyone could help me I would greatly appreciate it and fell free to use this idea yourself.