Simulation and testing for trading and betting environments