The following code will create two labels that display the 52 week high and low on any time frame. Please note: you must have at least 2 Days of data. In other words, this works on 2D:1M not 1D:1M. It works on 5D:5M, 5D:15M, 10D:30M, 20D:1H, 180D:4H, 1Y:1D and 3Y:1W. Again, to use this on the 1 min chart you need to create a custom time frame of at least 2D:1M for it to work.
#CODE BELOW AddLabel(1, "52Week HIGH = " + Highest(high(period = AggregationPeriod.Week),52), Color.green); AddLabel(1, "52Week LOW = " + Lowest(low(period = AggregationPeriod.Week),52), Color.red); #END CODE