Hello everyone!

I'm new to algo trading and this is my first try automating a strategy. It's a simple: If price falls between a specific time, go long. But I can't get it to work. I get a Attribute Error and don't know why.

Please check out my code, I would be very grateful.

Thank you in advance