Updating SMA to use time periods, only keeping the trades for the last 7 days
Fixing bugs, adding comments, etc.