Automated trade section - metaprogramming!