Hello, so I am currently using the calendar.type shortcut to make consolidated weekly tradebars. In addition, I am using a basic rolling windows functions to get past data.

The probelm is when I check the logs for the rolling windows, it is logging in daily data which tells me that it is using the resolution.Daily instead of the consolidated weekly tradebar. So my question is what  input should I replace "[TradeBar]" with or what additions and/or changes do I need to make. 

Before anyone says it. Yes, I have looked through many discussions, documents, and templates. I haven't been able to find what seemingly lookings like a small fix 

You can view the code on my sample backtest attachment. Any backtest or code templates attached with your response would be much appreciated. Thank you.

 

Author