Need a code.. experts kindly help

What would be the code to create a set that contains the 2nd 15minute candle of every day on a chart of a particular stock.?
So that the data of that set can be used to backtest some startegy.

U already have the other parts of the code ?
You have candles data of which time frame ?

Like in pi if i load the chart of infosys, on a 15 minute time frame.
Now i want to make a strategy on the high and low of the second 15 minute candle made on the trading day.
So i think a set needs to be created that would contain the data of 2nd 15minute candle of trading day.
How shall i code it?

@AlgoGeek kindly help .