Guys I am in some trouble here, 

I have a strategy that needs a minute res in the initialize function but I cannot for the life of me figure out how to be able to get the 14 day ATR every single day. I am getting something to do with the minute res every single time. 

Does anyone know the answer to this? 

Here is the code I was working with!

Thank you!

Author