Anyone has any idea how to do this?
I'm thinking I would first need to find the bar index of the highest high and lowest low of the previous day and then use the ta.pivothigh and ta.pivotlow function to see if they were pivots on the 15minute timeframe.
It sounds pretty simple but I can't seem to find a way to identify the previous day high or low's bar index on a lower timeframe.