Pine script for a particular candle

Hi
need to plot close price of a particular candle in a day for eg: 12 pm candle on 5 min chart for everyday on TV chart. is it possible to do with pine script? please help

What have you tried?

getting day close with " security(syminfo.tickerid, ā€œDā€, close) " but it gives the daily close with extented hrs though i need the last candle close ( lets say close of 3:15 candle on 15 mins) which is different

thanks for the reply btw