added ability to determine to buy or sell using last 5 measures. UNTESTED!