new to pine. I can get the open/close of the previous trading day no problem as follows:
openprice = request.security(syminfo.tickerid, "D", open[1])
But what I want is the previous weeks open and close. So if today is Wednesday I'm looking for the close on the previous friday.