- If for the past 1/2 hour, the # of pluses is greater than minuses + 10, the last price is greater than the first price, and the date this stock was sold is not the same day as today ==> buy
- If a different day and if the number of pluses is less than minuses and the last price is less than the first price ==> sell
Simple Algorithm 2
- If the last one hour of stock date, pluses > minuses ==> buy
- If the next day, minuses > pluses ==> sell
- JUNIT tests with a set of 10 stocks per month. The end result is printed as the aggregate gainLoss and compared to other Algorithms for the same stocks.
No comments:
Post a Comment