I've been playing around with a few more options of the bot.
It seems when you run the simulator and it ends, the profit reported is the total profit from the stat's info. I was expecting it to just be the profit from the current run.
The same thing with the profit variable. It's not set to zero when you start() your script. I believe bets, wins, and loses are also from stats.
I'm not sure whether or not you should clear it. But maybe making a resetstats() function in the programmer mode function could be an option. I personally would always call that at the beginning of my script. But some might like the way it behaves now.