Hi,

I have a few questions about a trading algorithm I came up with.

 1. I am getting a NoneType error during different time periods and I have seen other responses saying to do "If something is None: Return" but, this does not help in my situation. 

2. I am hoping to get this algrothim to buy and sell during the trading hours when an if statement is executed instead of just at midnight.

 3. Lastly, I am unsure if the elif statement off of the initial if statement will be executed? I am thinking it may not get executed due to the NoneType error. Any help is much appreciated.

Thanks,

Ken

-only pay attention to the main.py the other ones are scratch work