Added function dataSelect.  Corrected calcProfitLoss 'abs' function.  Added <cmath> header.

Signed-off-by: Mark Tompkins <mtompkins@firmusgrp.com>