fix open portfolio, add movingaverage strat

Does this guy really know what he's doing? Calculation of
portfolio/holdings/cash was pretty much nonsensical.