We proposed an integrated approach to optimize trading rules in EUA futures market. Adaptive moving average rules with different weights are used to make decision. The integrated rule is adjusted dynamically with PSO and genetic algorithms. Our results show generated trading rules can adapt price changes and make profits. This approach is helpful for traders in choosing trading rules and evading risks.