Spent many hours working on a script to find out when the next earnings report is.. there should be a builtin feature but anyways, it's done now.. The strat is to buy and sell based on the EMA (Whatever that is) and to exit all entries if the Earnings report is within a week.