Correct numTicksProfit.cpp so that loops exit when a list has no more elements.
New strategy for 3 input moving average, William's Percent R with profit taking.

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