Although there is little academic research that supports the usefulness of technical analysis, its use remains widespread in commodity markets. Much prior research into technical analysis suffered from data-snooping biases. Using genetic programming, ex ante optimal technical trading strategies are identified. Because they are mechanically generated from simple arithmetic operators, they are fr...