I have been struggling with this for a while. I am trying to plot on a daily chart a 3 week pivot point. Using the High, Low and Last weekly close / 3. It should only look at the last completed week ( so not the current).
I am sure this is easy for someone but excruciating difficult for me. I havent been able to find any help on this forum or anywhere else.
Adding to what Snoopy has mentioned, let me give you a hint. The solution to your query lies here - Multiple Time Frame support in AFL. You need to try out the examples in this tutorial and understand how to compress and expand slower (higher) timeframes within faster (lower) ones.
If you manage to solve on how to plot previous week's OHLC onto the current week's daily chart, you will easily figure out on how to tweak it for Previous N period anyways and can calculate anything out of it.
@smedlex It is great that you have found your solution! May I suggest you mark this thread as "solved" but also post your solution so that in the future another newbie looking into a similar question (your question will turn up on future searches) can learn from your experience.