Testing and Tuning Market Trading Systems