Trading with optimized uptrend and downtrend pattern templates using a genetic algorithm kernel | IEEE Conference Publication | IEEE Xplore