Mastering Trading Rules