Hey, I apologize for bumping an old thread and pinging you here, but I was wondering if you ever got around to figuring out OP/your own study? I too am doing something similar to OP's original query - basically wanting to plot levels of significance (high, low, POCs of day bars) dating back from two Sundays ago to current. For example, if today is Monday (8/23), then ideally, the study would be plotting levels up to the second previous Sunday (8/15) on today's chart. However, I'm not quite sure how to even approach this. I started by trying to define the Sunday as an offset to input in the look back of the variable, but quickly learned thats not how it worked. A friend of mine, though not familiar with thinkscript, told me that a fold function might work. I looked into this on ToS' TLC website and from what I can tell, if I define the days as numbers with Sunday being the start, it could loop until the 14th day? I'm not even sure if that makes sense.
If possible, any help and/or advice here is greatly appreciated. Again, sorry to ping and bump this old thread.
@ktrades sorry i haven't posted up my code yet. i tend to take on new challenges sometimes before i finish up existing ones. i've come across a couple of posts, where people say it can't be done, so i figure out how to.
i just posted a mvp study. tomorrow i will look at my to do list of a half dozen or so studies i am in the middle of, and try to finish them up. i will get back to this.
@ComfyCouch see above. it's late, i will read your post in the morning