hello, thanks for your help, but the code still needs a bit of work, it enters the pause mode after just 3 attempts at 33.33 instead of 5 attempts, can you please help me to rectify this, so i can resume testing. thanks a lot for your help
Probably because the losscount is only reset on a win if the betting was paused... so loss, loss, loss, win, loss, loss would count as 5...

you can try taking "losscount = 0" out and putting it before "if paused then"... so that the losscount is reset on ANY win