I can't delete this post, but wanted to put a note in here acknowledging that I realized the error in my code. I was not using .Symbol in my two new scheduled events, causing them to fail. Once added back in, I was able to add multiple lines for multiple securities. Thanks!

I'd like to have my algorithm close all positions at the end of the day using the ode below. However, it seems to only work for single security objects and having duplicate schedules for individual securities does not seem to work. Am I able to modified this code so it doesn't just close out “SPY” positions, rather, it closes out all equity positions?? 

# schedule an event to fire every trading day for a security the
# time rule here tells it to fire 10 minutes before SPY's market close
self.Schedule.On(self.DateRules.EveryDay("SPY"), self.TimeRules.BeforeMarketClose("SPY", 0), self.EveryDayAfterMarketClose)