add a folder TodayInHistory.
the candlepredict.m predicts the candle chart by finding the similar candle chart in the previous days
the typematch.m predicts the afternoon trend by finding the most similar morning trend
these programs are not fully vectorized......